Documentation ¶
Overview ¶
Package localfiles hosts the LocalFiles type.
Package localfiles hosts the LocalFiles type.
Package localfiles hosts the LocalFiles type.
Package localfiles hosts the LocalFiles type.
Package localfiles hosts the LocalFiles type.
Index ¶
- type AutoCertCache
- type LocalFiles
- func (l *LocalFiles) CreateToken(ctx context.Context, id string, displayName string, numUses int, ...) (token string, err error)
- func (l *LocalFiles) DeleteSecret(ctx context.Context, path string) error
- func (l *LocalFiles) GetAutoCertCache(ctx context.Context) secretprovidertype.AutoCertCache
- func (l *LocalFiles) ListSecrets(ctx context.Context, pathChannel chan string, errorChannel chan error)
- func (l *LocalFiles) ReadAllSecrets(ctx context.Context, secretChannel chan *secretprovidertype.Secret, ...)
- func (l *LocalFiles) ReadSecret(ctx context.Context, path string) (secret *secretprovidertype.Secret, err error)
- func (l *LocalFiles) UpsertSecret(ctx context.Context, path string, data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCertCache ¶
type AutoCertCache string
AutoCertCache implements AutoCertCache using a local directory.
func (AutoCertCache) Delete ¶
func (a AutoCertCache) Delete(ctx context.Context, name string) error
Delete removes the specified file name.
type LocalFiles ¶
type LocalFiles struct { ID string // contains filtered or unexported fields }
LocalFiles provides methods for interacting with LocalFiles.
func New ¶
func New(ctx context.Context, secretStore *secretprovidertype.SecretProvider) (*LocalFiles, error)
New creates a matching secret store implementation.
func (*LocalFiles) CreateToken ¶
func (l *LocalFiles) CreateToken(ctx context.Context, id string, displayName string, numUses int, policies []string) (token string, err error)
CreateToken creates a token.
func (*LocalFiles) DeleteSecret ¶
func (l *LocalFiles) DeleteSecret(ctx context.Context, path string) error
DeleteSecret deletes a secret.
func (*LocalFiles) GetAutoCertCache ¶
func (l *LocalFiles) GetAutoCertCache(ctx context.Context) secretprovidertype.AutoCertCache
GetAutoCertCache returns an autocert-compatible cache.
func (*LocalFiles) ListSecrets ¶
func (l *LocalFiles) ListSecrets(ctx context.Context, pathChannel chan string, errorChannel chan error)
ListSecrets lists secret paths.
func (*LocalFiles) ReadAllSecrets ¶
func (l *LocalFiles) ReadAllSecrets(ctx context.Context, secretChannel chan *secretprovidertype.Secret, errorChannel chan error)
ReadAllSecrets reads all secrets.
func (*LocalFiles) ReadSecret ¶
func (l *LocalFiles) ReadSecret(ctx context.Context, path string) (secret *secretprovidertype.Secret, err error)
ReadSecret returns a secret.
func (*LocalFiles) UpsertSecret ¶
func (l *LocalFiles) UpsertSecret(ctx context.Context, path string, data map[string]interface{}) error
UpsertSecret creates or updates a secret.