Documentation
¶
Index ¶
- func MakeCertEndpoint(s service.Service) endpoint.Endpoint
- func MakeCreateCAEndpoint(s service.Service) endpoint.Endpoint
- func MakeDeleteCAEndpoint(s service.Service) endpoint.Endpoint
- func MakeDeleteCertEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetCAsEndpoint(s service.Service) endpoint.Endpoint
- func MakeHealthEndpoint(s service.Service) endpoint.Endpoint
- func MakeImportCAEndpoint(s service.Service) endpoint.Endpoint
- func MakeIssuedCertsEndpoint(s service.Service) endpoint.Endpoint
- func MakeSignCertEndpoint(s service.Service) endpoint.Endpoint
- func ValidateCreatrCARequest(request CreateCARequest) error
- func ValidateImportCARequest(request ImportCARequest) error
- func ValidateSignCertificateRquest(request SignCertificateRquest) error
- type CaRequest
- type CreateCARequest
- type DeleteCARequest
- type DeleteCertRequest
- type Endpoints
- type GetCAsRequest
- type GetCertRequest
- type HealthRequest
- type HealthResponse
- type ImportCARequest
- type SignCertificateRquest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCreatrCARequest ¶
func ValidateCreatrCARequest(request CreateCARequest) error
func ValidateImportCARequest ¶
func ValidateImportCARequest(request ImportCARequest) error
func ValidateSignCertificateRquest ¶
func ValidateSignCertificateRquest(request SignCertificateRquest) error
Types ¶
type CreateCARequest ¶
type CreateCARequest struct {
CaType string `validate:"oneof='pki' 'dmsenroller'"`
CaName string `validate:"required"`
CaPayload struct {
KeyMetadata struct {
KeyType string `json:"type" validate:"oneof='rsa' 'ec'"`
KeyBits int `json:"bits" validate:"required"`
} `json:"key_metadata" validate:"required"`
Subject struct {
CN string `json:"common_name" validate:"required"`
O string `json:"organization"`
OU string `json:"organization_unit"`
C string `json:"country"`
ST string `json:"state"`
L string `json:"locality"`
} `json:"subject"`
CaTTL int `json:"ca_ttl" validate:"required"`
EnrollerTTL int `json:"enroller_ttl" validate:"gt=0"`
}
}
type DeleteCARequest ¶
type DeleteCertRequest ¶
type Endpoints ¶
type Endpoints struct {
HealthEndpoint endpoint.Endpoint
GetCAsEndpoint endpoint.Endpoint
CreateCAEndpoint endpoint.Endpoint
ImportCAEndpoint endpoint.Endpoint
DeleteCAEndpoint endpoint.Endpoint
GetIssuedCertsEndpoint endpoint.Endpoint
GetCertEndpoint endpoint.Endpoint
SignCertEndpoint endpoint.Endpoint
DeleteCertEndpoint endpoint.Endpoint
}
func MakeServerEndpoints ¶
func MakeServerEndpoints(s service.Service, otTracer stdopentracing.Tracer) Endpoints
type GetCAsRequest ¶
type GetCAsRequest struct {
CaType string
}
type GetCertRequest ¶
type HealthRequest ¶
type HealthRequest struct{}
type HealthResponse ¶
type ImportCARequest ¶
Click to show internal directories.
Click to hide internal directories.