Documentation
¶
Index ¶
- type SecretStorage
- func (s *SecretStorage) CertMagicStorage() (certmagic.Storage, error)
- func (s *SecretStorage) Delete(ctx context.Context, key string) error
- func (s *SecretStorage) Exists(ctx context.Context, key string) bool
- func (SecretStorage) KengineModule() kengine.ModuleInfo
- func (s *SecretStorage) List(ctx context.Context, prefix string, recursive bool) ([]string, error)
- func (s *SecretStorage) Load(ctx context.Context, key string) ([]byte, error)
- func (s *SecretStorage) Lock(ctx context.Context, key string) error
- func (s *SecretStorage) Provision(ctx kengine.Context) error
- func (s *SecretStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (s *SecretStorage) Store(ctx context.Context, key string, value []byte) error
- func (s *SecretStorage) Unlock(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretStorage ¶
type SecretStorage struct { Namespace string LeaseId string // contains filtered or unexported fields }
SecretStorage facilitates storing certificates retrieved by certmagic in kubernetes secrets.
func (*SecretStorage) CertMagicStorage ¶
func (s *SecretStorage) CertMagicStorage() (certmagic.Storage, error)
CertMagicStorage returns a certmagic storage type to be used by kengine.
func (*SecretStorage) Delete ¶
func (s *SecretStorage) Delete(ctx context.Context, key string) error
Delete deletes the value at the given key.
func (*SecretStorage) Exists ¶
func (s *SecretStorage) Exists(ctx context.Context, key string) bool
Exists returns true if key exists in fs.
func (SecretStorage) KengineModule ¶
func (SecretStorage) KengineModule() kengine.ModuleInfo
func (*SecretStorage) Provision ¶
func (s *SecretStorage) Provision(ctx kengine.Context) error
Provisions the SecretStorage instance.
Click to show internal directories.
Click to hide internal directories.