Documentation ¶
Index ¶
- func MakeEnrollEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetCAsEndpoint(s service.Service) endpoint.Endpoint
- func MakeHealthEndpoint(s service.Service) endpoint.Endpoint
- func MakeReenrollEndpoint(s service.Service) endpoint.Endpoint
- func MakeServerKeyGenEndpoint(s service.Service) endpoint.Endpoint
- func ValidateServerKeyGenRequest(request ServerKeyGenRequest) error
- func ValidatetEnrollRequest(request EnrollRequest) error
- func ValidatetReenrollRequest(request ReenrollRequest) error
- type EmptyRequest
- type Endpoints
- type EnrollReenrollResponse
- type EnrollRequest
- type GetCasResponse
- type HealthResponse
- type ReenrollRequest
- type ServerKeyGenRequest
- type ServerKeyGenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateServerKeyGenRequest ¶
func ValidateServerKeyGenRequest(request ServerKeyGenRequest) error
func ValidatetEnrollRequest ¶
func ValidatetEnrollRequest(request EnrollRequest) error
func ValidatetReenrollRequest ¶
func ValidatetReenrollRequest(request ReenrollRequest) error
Types ¶
type EmptyRequest ¶
type EmptyRequest struct{}
type Endpoints ¶
type Endpoints struct { HealthEndpoint endpoint.Endpoint GetCAsEndpoint endpoint.Endpoint EnrollerEndpoint endpoint.Endpoint ReenrollerEndpoint endpoint.Endpoint ServerKeyGenEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
func MakeServerEndpoints(s service.Service, otTracer stdopentracing.Tracer) Endpoints
type EnrollReenrollResponse ¶
type EnrollReenrollResponse struct { Cert *x509.Certificate CaCert *x509.Certificate }
type EnrollRequest ¶
type EnrollRequest struct { Csr *x509.CertificateRequest `validate:"required"` Aps string `validate:"required"` Crt *x509.Certificate `validate:"required"` }
type GetCasResponse ¶
type GetCasResponse struct {
Certs []*x509.Certificate
}
type HealthResponse ¶
type ReenrollRequest ¶
type ReenrollRequest struct { Csr *x509.CertificateRequest `validate:"required"` Crt *x509.Certificate `validate:"required"` }
type ServerKeyGenRequest ¶
type ServerKeyGenRequest struct { Csr *x509.CertificateRequest `validate:"required"` Aps string `validate:"required"` Crt *x509.Certificate `validate:"required"` }
type ServerKeyGenResponse ¶
type ServerKeyGenResponse struct { Cert *x509.Certificate Key []byte CaCert *x509.Certificate }
Click to show internal directories.
Click to hide internal directories.