storage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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) 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(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) List

func (s *SecretStorage) List(ctx context.Context, prefix string, recursive bool) ([]string, error)

List returns all keys that match prefix.

func (*SecretStorage) Load

func (s *SecretStorage) Load(ctx context.Context, key string) ([]byte, error)

Load retrieves the value at the given key.

func (*SecretStorage) Lock

func (s *SecretStorage) Lock(ctx context.Context, key string) error

func (*SecretStorage) Provision

func (s *SecretStorage) Provision(ctx caddy.Context) error

Provisions the SecretStorage instance.

func (*SecretStorage) Stat

func (s *SecretStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)

Stat returns information about key.

func (*SecretStorage) Store

func (s *SecretStorage) Store(ctx context.Context, 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(ctx context.Context, key string) error

Jump to

Keyboard shortcuts

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