Documentation
¶
Overview ¶
Package file provides a Storage implementation for storing x509 certificates as files
Index ¶
- Variables
- type Options
- type Store
- func (m *Store) Delete(_ context.Context, name string) error
- func (m *Store) DeleteCert(_ context.Context, cert *x509.Certificate) error
- func (m *Store) ForEach(_ context.Context, f x509utils.StoreIterFunc) error
- func (m *Store) Get(_ context.Context, name string) (*x509.Certificate, error)
- func (m *Store) Put(_ context.Context, name string, cert *x509.Certificate) error
Constants ¶
This section is empty.
Variables ¶
var DefaultOptions = Options{
Directory: "darvaza_store",
DirMode: 0700,
}
DefaultOptions for FileStorage Options
Functions ¶
This section is empty.
Types ¶
type Options ¶
Options is a struct containing the storage options in the case of FileStorage it only contains a directory name and the file mode
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a darvaza Storage implementation for storing x509 certificates as files
func NewStore ¶
NewStore will create a new File Storage. If no options are given it will use the DefaultOptions
func (*Store) Delete ¶
Delete will delete the first certificate with the same common name as the given parameter
func (*Store) DeleteCert ¶
DeleteCert will delete from the store the certificate given as parameter
func (*Store) ForEach ¶
ForEach will walk the store and ececute the StoreIterFunc for each certificate it can decode