Documentation ¶
Index ¶
- Variables
- func HTTPToContext(logger log.Logger) httptransport.RequestFunc
- func MakeCertEndpoint(s Service) endpoint.Endpoint
- func MakeCreateCAEndpoint(s Service) endpoint.Endpoint
- func MakeDeleteCAEndpoint(s Service) endpoint.Endpoint
- func MakeDeleteCertEndpoint(s Service) endpoint.Endpoint
- func MakeGetCAsEndpoint(s Service) endpoint.Endpoint
- func MakeHTTPHandler(s Service, logger log.Logger, otTracer stdopentracing.Tracer) http.Handler
- func MakeHealthEndpoint(s Service) endpoint.Endpoint
- func MakeImportCAEndpoint(s Service) endpoint.Endpoint
- func MakeIssuedCertsEndpoint(s Service) endpoint.Endpoint
- func MakeSignCertEndpoint(s Service) endpoint.Endpoint
- type CaRequest
- type CreateCARequest
- type CreateCAResponse
- type DeleteCARequest
- type DeleteCertRequest
- type Endpoints
- type GetCAsRequest
- type GetCAsResponse
- type GetCertRequest
- type HealthResponse
- type ImportCARequest
- type Middleware
- type Service
- type SignCertificateResponse
- type SignCertificateRquest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Server ErrGetCAs = errors.New("unable to get CAs from secret engine") //ErrDeleteCA = errors.New("unable to delete CA from secret engine") ErrEmptyCA = errors.New("CA name not defined") ErrEmtySerialNumber = errors.New("Certificate without Serial Number") ErrDeleteCA = errors.New("could not delete certificate from Vault") ErrDeleteCert = errors.New("Could not revoke cert from CA") ErrImportCA = errors.New("Could no create CA. Already exists") )
Functions ¶
func HTTPToContext ¶ added in v1.0.1
func HTTPToContext(logger log.Logger) httptransport.RequestFunc
func MakeCertEndpoint ¶ added in v1.0.1
func MakeCreateCAEndpoint ¶ added in v1.0.1
func MakeDeleteCAEndpoint ¶
func MakeDeleteCertEndpoint ¶ added in v1.0.1
func MakeGetCAsEndpoint ¶
func MakeHTTPHandler ¶
func MakeHealthEndpoint ¶
func MakeImportCAEndpoint ¶ added in v1.0.1
func MakeIssuedCertsEndpoint ¶ added in v1.0.1
func MakeSignCertEndpoint ¶ added in v1.0.1
Types ¶
type CreateCARequest ¶ added in v1.0.1
type CreateCAResponse ¶ added in v1.0.1
type DeleteCARequest ¶ added in v1.0.1
type DeleteCertRequest ¶ added in v1.0.1
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, otTracer stdopentracing.Tracer) Endpoints
type GetCAsRequest ¶ added in v1.0.1
type GetCAsResponse ¶ added in v1.0.1
type GetCertRequest ¶ added in v1.0.1
type HealthResponse ¶ added in v1.0.1
type ImportCARequest ¶ added in v1.0.1
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
func NewAmqpMiddleware ¶ added in v1.0.1
func NewAmqpMiddleware(channel *amqp.Channel, logger log.Logger) Middleware
func NewInstrumentingMiddleware ¶
func NewInstrumentingMiddleware(counter metrics.Counter, latency metrics.Histogram) Middleware
type Service ¶
type Service interface { GetSecretProviderName(ctx context.Context) string Health(ctx context.Context) bool GetCAs(ctx context.Context, caType secrets.CAType) (secrets.Certs, error) CreateCA(ctx context.Context, caType secrets.CAType, caName string, ca secrets.Cert) (secrets.Cert, error) ImportCA(ctx context.Context, caType secrets.CAType, caName string, ca secrets.CAImport) error DeleteCA(ctx context.Context, caType secrets.CAType, caName string) error GetIssuedCerts(ctx context.Context, caType secrets.CAType, caName string) (secrets.Certs, error) GetCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) (secrets.Cert, error) DeleteCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) error SignCertificate(ctx context.Context, caType secrets.CAType, signingCaName string, csr x509.CertificateRequest) (string, error) }
type SignCertificateResponse ¶ added in v1.0.1
type SignCertificateResponse struct {
Crt string `json:"crt"`
}
type SignCertificateRquest ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.