Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssuersStorage ¶
type IssuersStorage struct {
// contains filtered or unexported fields
}
IssuersStorage is a key value store backed by files to store issuer chains.
func NewIssuerStorage ¶
func NewIssuerStorage(ctx context.Context, root string) (*IssuersStorage, error)
NewIssuerStorage creates a new POSIX based issuer storage.
If the directory doesn't exists, NewIssuerStorage creates it and its parents. The issuers will be stored in a directory called "issuer" within the provided root directory.
func NewRootsStorage ¶ added in v0.1.2
func NewRootsStorage(ctx context.Context, parent string) (*IssuersStorage, error)
NewRootsStorage creates a new POSIX based root storage.
If the directory doesn't exist, NewRootsStorage creates it and its parents. Root certs will be stored in a directory called "roots" within the provided root directory.
func (*IssuersStorage) AddIfNotExist ¶ added in v0.1.2
AddIfNotExist stores values under their Key if there isn't an object under Key already.
Click to show internal directories.
Click to hide internal directories.