Documentation
¶
Index ¶
- type SecretStorage
- func (SecretStorage) CaddyModule() caddy.ModuleInfo
- func (s *SecretStorage) CertMagicStorage() (certmagic.Storage, error)
- func (s *SecretStorage) Delete(key string) error
- func (s *SecretStorage) Exists(key string) bool
- func (s *SecretStorage) List(prefix string, recursive bool) ([]string, error)
- func (s *SecretStorage) Load(key string) ([]byte, error)
- func (s *SecretStorage) Lock(ctx context.Context, key string) error
- func (s *SecretStorage) Provision(ctx caddy.Context) error
- func (s *SecretStorage) Stat(key string) (certmagic.KeyInfo, error)
- func (s *SecretStorage) Store(key string, value []byte) error
- func (s *SecretStorage) Unlock(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
KubeClient *kubernetes.Clientset
LeaseId string
// contains filtered or unexported fields
}
SecretStorage facilitates storing certificates retrieved by certmagic in kubernetes secrets.
func (SecretStorage) CaddyModule ¶
func (SecretStorage) CaddyModule() caddy.ModuleInfo
func (*SecretStorage) CertMagicStorage ¶
func (s *SecretStorage) CertMagicStorage() (certmagic.Storage, error)
CertMagicStorage returns a certmagic storage type to be used by caddy.
func (*SecretStorage) Delete ¶
func (s *SecretStorage) Delete(key string) error
Delete deletes the value at the given key.
func (*SecretStorage) Exists ¶
func (s *SecretStorage) Exists(key string) bool
Exists returns true if key exists in fs.
func (*SecretStorage) List ¶
func (s *SecretStorage) List(prefix string, recursive bool) ([]string, error)
List returns all keys that match prefix.
func (*SecretStorage) Load ¶
func (s *SecretStorage) Load(key string) ([]byte, error)
Load retrieves the value at the given key.
func (*SecretStorage) Provision ¶
func (s *SecretStorage) Provision(ctx caddy.Context) error
Provisions the SecretStorage instance.
func (*SecretStorage) Stat ¶
func (s *SecretStorage) Stat(key string) (certmagic.KeyInfo, error)
Stat returns information about key.
func (*SecretStorage) Store ¶
func (s *SecretStorage) Store(key string, value []byte) error
Store saves value at key. More than certs and keys are stored by certmagic in secrets.
func (*SecretStorage) Unlock ¶
func (s *SecretStorage) Unlock(key string) error
Click to show internal directories.
Click to hide internal directories.