store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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