Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
func NewAmqpMiddleware ¶
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 Stats(ctx context.Context) dto.Stats GetCAs(ctx context.Context, caType dto.CAType, queryparameters filters.QueryParameters) ([]dto.Cert, int, error) CreateCA(ctx context.Context, caType dto.CAType, caName string, privateKeyMetadata dto.PrivateKeyMetadata, subject dto.Subject, caTTL int, enrollerTTL int) (dto.Cert, error) ImportCA(ctx context.Context, caType dto.CAType, caName string, certificate x509.Certificate, privateKey dto.PrivateKey, enrollerTTL int) (dto.Cert, error) DeleteCA(ctx context.Context, caType dto.CAType, caName string) error GetIssuedCerts(ctx context.Context, caType dto.CAType, caName string, queryParameters filters.QueryParameters) ([]dto.Cert, int, error) GetCert(ctx context.Context, caType dto.CAType, caName string, serialNumber string) (dto.Cert, error) DeleteCert(ctx context.Context, caType dto.CAType, caName string, serialNumber string) error SignCertificate(ctx context.Context, caType dto.CAType, signingCaName string, csr x509.CertificateRequest, signVerbatim bool, cn string) (dto.SignResponse, error) }
Click to show internal directories.
Click to hide internal directories.