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 MakeStatsEndpoint(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 GetIssuedCertsRequest
- type HealthRequest
- type HealthResponse
- type ImportCARequest
- type SignCertificateRquest
- type StatsRequest
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 dto.CreateCARequestPayload }
type DeleteCARequest ¶
type DeleteCertRequest ¶
type Endpoints ¶
type Endpoints struct { HealthEndpoint endpoint.Endpoint StatsEndpoint 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 QueryParameters filters.QueryParameters }
type GetCertRequest ¶
type GetIssuedCertsRequest ¶
type GetIssuedCertsRequest struct { CaType dto.CAType CA string QueryParameters filters.QueryParameters }
type HealthRequest ¶
type HealthRequest struct{}
type HealthResponse ¶
type ImportCARequest ¶
type ImportCARequest struct { CaType string `validate:"oneof='pki' 'dmsenroller'"` CaName string `validate:"required"` CaPayload dto.ImportCARequestPayload }
type SignCertificateRquest ¶
type SignCertificateRquest struct { CaType string `validate:"oneof='pki' 'dmsenroller'"` CaName string `validate:"required"` SignPayload dto.SignPayload }
type StatsRequest ¶
type StatsRequest struct {
ForceRefesh bool
}
Click to show internal directories.
Click to hide internal directories.