Documentation ¶
Index ¶
Constants ¶
View Source
const ( PasswordPrefix = "pkcs12" CertificatePrefix = "certificate" )
Variables ¶
View Source
var (
ErrNotFound = errors.New("resource not found in store")
)
Functions ¶
This section is empty.
Types ¶
type CertificateStore ¶
type CertificateStore interface { GetCertificate(ctx context.Context, name string) ([]byte, error) UpdateCertificate(ctx context.Context, name string, cert []byte) error }
CertificateStore is a generic interface for storing and retrieving certificates.
type PasswordStore ¶
type PasswordStore interface { GetPassword(ctx context.Context, name string) ([]byte, error) UpdatePassword(ctx context.Context, name string, password []byte) error }
PasswordStore is a generic interface for storing and retrieving passwords.
type Store ¶
type Store interface { io.Closer PasswordStore CertificateStore }
Store is a generic interface for storing and retrieving data.
Click to show internal directories.
Click to hide internal directories.