ca

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI() *API

func (*API) IntermediateTopology

func (a *API) IntermediateTopology(c *helper.HTTPWrapContext) (interface{}, error)

IntermediateTopology Sub-CA topology @Tags CA @Summary Sub-CA topology @Description Sub-CA topology @Produce json @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=[]logic.IntermediateObject} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /ca/intermediate_topology [get]

func (*API) OverallCertsCount

func (a *API) OverallCertsCount(c *helper.HTTPWrapContext) (interface{}, error)

OverallCertsCount Certificate classification @Tags CA @Summary (p2)Certificate classification @Description Total number of certificates, number by classification, number of corresponding services @Produce json @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=OverallCertsCountResponse} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /ca/overall_certs_count [get]

func (*API) OverallExpiryCerts

func (a *API) OverallExpiryCerts(c *helper.HTTPWrapContext) (interface{}, error)

OverallExpiryCerts Certificate validity @Tags CA @Summary (p2)Certificate validity @Description Number of certificates expired: within one week, within 1/3 months and after 3 months @Produce json @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=OverallExpiryCertsResponse} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /ca/overall_expiry_certs [get]

func (*API) OverallUnitsEnableStatus

func (a *API) OverallUnitsEnableStatus(c *helper.HTTPWrapContext) (interface{}, error)

OverallUnitsEnableStatus Enabling condition @Tags CA @Summary (p2)Enabling condition @Description Total enabled, total disabled, corresponding services @Produce json @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=OverallUnitsEnableStatus} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /ca/overall_units_enable_status [get]

func (*API) RoleProfiles

func (a *API) RoleProfiles(c *helper.HTTPWrapContext) (interface{}, error)

RoleProfiles Environmental isolation type @Tags CA @Summary (p1)Environmental isolation type @Description Environmental isolation type @Produce json @Param short query bool false "Only a list of types is returned for search criteria" @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=logic.RoleProfile} " " @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=[]string} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /ca/role_profiles [get]

func (*API) UpperCaIntermediateTopology

func (a *API) UpperCaIntermediateTopology(c *helper.HTTPWrapContext) (interface{}, error)

UpperCaIntermediateTopology Upper CA topology @Tags CA @Summary Upper CA topology @Description Upper CA topology @Produce json @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=[]logic.IntermediateObject} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /ca/upper_ca_intermediate_topology [get]

type OverallCertsCountItem

type OverallCertsCountItem struct {
	Role       string `json:"role"`
	Total      int64  `json:"total"`       // Total number of certificates
	UnitsCount int64  `json:"units_count"` // number of services
}

type OverallCertsCountResponse

type OverallCertsCountResponse struct {
	Total int64                   `json:"total"`
	Certs []OverallCertsCountItem `json:"certs"`
}

type OverallExpiryCertsResponse

type OverallExpiryCertsResponse struct {
	ExpiryTotal int64                `json:"expiry_total"`
	ExpiryCerts []OverallExpiryGroup `json:"expiry_certs"`
}

type OverallExpiryGroup

type OverallExpiryGroup struct {
	Name  string `json:"name"`
	Count int64  `json:"count"`
}

type OverallUnitsEnableItem

type OverallUnitsEnableItem struct {
	CertsCount int64 `json:"certs_count"`
	UnitsCount int64 `json:"units_count"`
}

type OverallUnitsEnableStatus

type OverallUnitsEnableStatus struct {
	Enable  OverallUnitsEnableItem `json:"enable"`
	Disable OverallUnitsEnableItem `json:"disable"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL