posix

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

func (s *IssuersStorage) AddIfNotExist(ctx context.Context, kv []storage.KV) error

AddIfNotExist stores values under their Key if there isn't an object under Key already.

func (*IssuersStorage) LoadAll added in v0.1.2

func (s *IssuersStorage) LoadAll(ctx context.Context) ([]storage.KV, error)

Jump to

Keyboard shortcuts

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