Documentation ¶
Index ¶
- type Config
- type Plugin
- func (Plugin) CaddyModule() caddy.ModuleInfo
- func (p *Plugin) GetConfig(ctx context.Context) map[string]interface{}
- func (p *Plugin) GetSecret(ctx context.Context) (map[string]interface{}, error)
- func (p *Plugin) GetSecretByKey(ctx context.Context, key string) (interface{}, error)
- func (p *Plugin) Provision(ctx caddy.Context) error
- func (p *Plugin) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (p *Plugin) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID string `json:"id,omitempty" xml:"id,omitempty" yaml:"id,omitempty"` Secret map[string]interface{} `json:"secret,omitempty" xml:"secret,omitempty" yaml:"secret,omitempty"` }
Config represents provisioned configuration value of statically configured secret.
type Plugin ¶
type Plugin struct { Name string `json:"-"` ConfigRaw json.RawMessage `json:"config,omitempty" caddy:"namespace=security.secrets.static_secrets_manager"` Config Config `json:"-"` // contains filtered or unexported fields }
Plugin manages statically configured secrets.
func (Plugin) CaddyModule ¶
func (Plugin) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Plugin) GetSecretByKey ¶
GetSecretByKey returns a value of key in the secret key-value map.
func (*Plugin) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.