Versions in this module Expand all Collapse all v1 v1.0.2 Aug 31, 2020 Changes in this version + func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware + func MakeHTTPHandler(e *Endpoints, svc Service, logger kitlog.Logger) http.Handler + func MakeSCEPEndpoint(svc Service) endpoint.Endpoint + type Endpoints struct + GetEndpoint endpoint.Endpoint + PostEndpoint endpoint.Endpoint + func MakeClientEndpoints(instance string) (*Endpoints, error) + func MakeServerEndpoints(svc Service) *Endpoints + func (e *Endpoints) GetCACaps(ctx context.Context) ([]byte, error) + func (e *Endpoints) GetCACert(ctx context.Context) ([]byte, int, error) + func (e *Endpoints) GetNextCACert(ctx context.Context) ([]byte, error) + func (e *Endpoints) PKIOperation(ctx context.Context, msg []byte) ([]byte, error) + func (e *Endpoints) Supports(cap string) bool type ServiceOption + func WithCSRVerifier(csrVerifier csrverifier.CSRVerifier) ServiceOption + func WithDynamicChallenges(cache challenge.Store) ServiceOption + func WithLogger(logger log.Logger) ServiceOption v1.0.0 Mar 17, 2017 Changes in this version + func DecodeSCEPResponse(ctx context.Context, r *http.Response) (interface{}, error) + func EncodeSCEPRequest(ctx context.Context, r *http.Request, request interface{}) error + func ServiceHandler(ctx context.Context, svc Service, logger kitlog.Logger) http.Handler + type SCEPRequest struct + Err error + Message []byte + Operation string + type SCEPResponse struct + CACertNum int + Data []byte + Err error + type Service interface + GetCACaps func(ctx context.Context) ([]byte, error) + GetCACert func(ctx context.Context) ([]byte, int, error) + GetNextCACert func(ctx context.Context) ([]byte, error) + PKIOperation func(ctx context.Context, msg []byte) ([]byte, error) + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(depot depot.Depot, opts ...ServiceOption) (Service, error) + type ServiceOption func(*service) error + func AllowRenewal(duration int) ServiceOption + func CAKeyPassword(pw []byte) ServiceOption + func ChallengePassword(pw string) ServiceOption + func ClientValidity(duration int) ServiceOption