secrets

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusValid   = "V"
	StatusRevoked = "R"
	StatusExpired = "E"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CAImport

type CAImport struct {
	PEMBundle string `json:"pem_bundle"`
	TTL       int    `json:"ttl"`
}

type Secrets

type Secrets interface {
	GetSecretProviderName(ctx context.Context) string

	GetCAs(ctx context.Context, caType dto.CAType) ([]dto.Cert, error)
	GetCA(ctx context.Context, caType dto.CAType, caName string) (dto.Cert, 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, serialnumbers []ca.IssuedCerts) ([]dto.Cert, 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, CAcaName string, csr *x509.CertificateRequest, signVerbatim bool, cn string) (dto.SignResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL