Documentation ¶
Index ¶
- type API
- func (a *API) IntermediateTopology(c *helper.HTTPWrapContext) (interface{}, error)
- func (a *API) OverallCertsCount(c *helper.HTTPWrapContext) (interface{}, error)
- func (a *API) OverallExpiryCerts(c *helper.HTTPWrapContext) (interface{}, error)
- func (a *API) OverallUnitsEnableStatus(c *helper.HTTPWrapContext) (interface{}, error)
- func (a *API) RoleProfiles(c *helper.HTTPWrapContext) (interface{}, error)
- func (a *API) UpperCaIntermediateTopology(c *helper.HTTPWrapContext) (interface{}, error)
- type OverallCertsCountItem
- type OverallCertsCountResponse
- type OverallExpiryCertsResponse
- type OverallExpiryGroup
- type OverallUnitsEnableItem
- type OverallUnitsEnableStatus
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 (*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 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 OverallUnitsEnableItem ¶
type OverallUnitsEnableStatus ¶
type OverallUnitsEnableStatus struct { Enable OverallUnitsEnableItem `json:"enable"` Disable OverallUnitsEnableItem `json:"disable"` }