Documentation ¶
Index ¶
Constants ¶
View Source
const (
FromPathEnv = "BAO_FROM_PATH"
)
View Source
const (
ProviderType = "bao"
)
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
Types ¶
type Config ¶
type Config struct { IsLogin bool `json:"is_login"` Token string `json:"token"` TokenFile string `json:"token_file"` Role string `json:"role"` AuthPath string `json:"auth_path"` AuthMethod string `json:"auth_method"` TransitKeyID string `json:"transit_key_id"` TransitPath string `json:"transit_path"` TransitBatchSize int `json:"transit_batch_size"` IgnoreMissingSecrets bool `json:"ignore_missing_secrets"` FromPath string `json:"from_path"` RevokeToken bool `json:"revoke_token"` }
func LoadConfig ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) LoadSecrets ¶
LoadSecret's path formatting: <key>=<path> This formatting is necessary because the injector expects a map of key=value pairs. It also returns a map of key:value pairs, where the key is the environment variable name and the value is the secret value E.g. paths: MYSQL_PASSWORD=secret/data/mysql/password returns: []provider.Secret{provider.Secret{Path: "MYSQL_PASSWORD", Value: "password"}}
Click to show internal directories.
Click to hide internal directories.