Documentation ¶
Index ¶
- Variables
- type CaddyGcpSecretManagerStorage
- func (c CaddyGcpSecretManagerStorage) CaddyModule() caddy.ModuleInfo
- func (c CaddyGcpSecretManagerStorage) Cleanup() error
- func (c CaddyGcpSecretManagerStorage) Provision(context caddy.Context) error
- func (c *CaddyGcpSecretManagerStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (c CaddyGcpSecretManagerStorage) Validate() error
- type SecretManagerStorage
- func (s SecretManagerStorage) Close() error
- func (s SecretManagerStorage) Delete(ctx context.Context, key string) error
- func (s SecretManagerStorage) Exists(ctx context.Context, key string) bool
- func (s SecretManagerStorage) List(ctx context.Context, prefix string, recursive bool) (list []string, err error)
- func (s SecretManagerStorage) Load(ctx context.Context, key string) ([]byte, error)
- func (s *SecretManagerStorage) Lock(ctx context.Context, name string) error
- func (s SecretManagerStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (s SecretManagerStorage) Store(ctx context.Context, key string, value []byte) error
- func (s *SecretManagerStorage) Unlock(ctx context.Context, name string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidJSON = errors.New("invalid JSON") ErrCredentialsFile = errors.New("unable to read credentials file") )
View Source
var ErrKeyNotFound = errors.New("unable to find key")
Functions ¶
This section is empty.
Types ¶
type CaddyGcpSecretManagerStorage ¶
type CaddyGcpSecretManagerStorage struct { Fs fs.FS ProjectID string CredentialsFile string // contains filtered or unexported fields }
func (CaddyGcpSecretManagerStorage) CaddyModule ¶
func (c CaddyGcpSecretManagerStorage) CaddyModule() caddy.ModuleInfo
func (CaddyGcpSecretManagerStorage) Cleanup ¶
func (c CaddyGcpSecretManagerStorage) Cleanup() error
func (CaddyGcpSecretManagerStorage) Provision ¶
func (c CaddyGcpSecretManagerStorage) Provision(context caddy.Context) error
func (*CaddyGcpSecretManagerStorage) UnmarshalCaddyfile ¶
func (c *CaddyGcpSecretManagerStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (CaddyGcpSecretManagerStorage) Validate ¶
func (c CaddyGcpSecretManagerStorage) Validate() error
type SecretManagerStorage ¶
type SecretManagerStorage struct {
// contains filtered or unexported fields
}
func NewSecretManagerStorage ¶
func NewSecretManagerStorage(projectID string, opts ...option.ClientOption) (*SecretManagerStorage, error)
func (SecretManagerStorage) Close ¶
func (s SecretManagerStorage) Close() error
func (SecretManagerStorage) Delete ¶
func (s SecretManagerStorage) Delete(ctx context.Context, key string) error
func (SecretManagerStorage) Exists ¶
func (s SecretManagerStorage) Exists(ctx context.Context, key string) bool
func (*SecretManagerStorage) Lock ¶
func (s *SecretManagerStorage) Lock(ctx context.Context, name string) error
Click to show internal directories.
Click to hide internal directories.