Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppRole = "approle" Kubernetes = "kubernetes" UserPass = "userpass" Token = "token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthAppRole ¶
type AuthAppRole struct { RoleID string `yaml:"role_id" category:"experimental"` SecretID flagext.Secret `yaml:"secret_id" category:"experimental"` WrappingToken bool `yaml:"wrapping_token,omitempty" category:"experimental"` MountPath string `yaml:"mount_path,omitempty" category:"experimental"` }
func (*AuthAppRole) RegisterFlagsWithPrefix ¶
func (cfg *AuthAppRole) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix string)
type AuthConfig ¶
type AuthConfig struct { AuthType string `yaml:"type" category:"experimental"` AuthAppRole AuthAppRole `yaml:"approle,omitempty" category:"experimental"` AuthKubernetes AuthKubernetes `yaml:"kubernetes,omitempty" category:"experimental"` AuthUserPass AuthUserPass `yaml:"userpass,omitempty" category:"experimental"` AuthToken AuthToken `yaml:"token,omitempty" category:"experimental"` }
func (*AuthConfig) RegisterFlagsWithPrefix ¶
func (cfg *AuthConfig) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix string)
type AuthKubernetes ¶
type AuthKubernetes struct { RoleName string `yaml:"role_name" category:"experimental"` ServiceAccountToken flagext.Secret `yaml:"service_account_token,omitempty" category:"experimental"` ServiceAccountTokenPath string `yaml:"service_account_token_path,omitempty" category:"experimental"` MountPath string `yaml:"mount_path,omitempty" category:"experimental"` }
func (*AuthKubernetes) RegisterFlagsWithPrefix ¶
func (cfg *AuthKubernetes) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix string)
type AuthUserPass ¶
type AuthUserPass struct { Username string `yaml:"username" category:"experimental"` Password flagext.Secret `yaml:"password" category:"experimental"` MountPath string `yaml:"mount_path,omitempty" category:"experimental"` }
func (*AuthUserPass) RegisterFlagsWithPrefix ¶
func (cfg *AuthUserPass) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix string)
type Config ¶
type Config struct { Enabled bool `yaml:"enabled" category:"experimental"` URL string `yaml:"url" category:"experimental"` MountPath string `yaml:"mount_path" category:"experimental"` Auth AuthConfig `yaml:"auth" category:"experimental"` Mock SecretsEngine `yaml:"-"` }
Config for the Vault used to fetch secrets
func (*Config) RegisterFlags ¶
type SecretsEngine ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func NewVault ¶
func NewVault(cfg Config, l log.Logger, registerer prometheus.Registerer) (*Vault, error)
func (*Vault) KeepRenewingTokenLease ¶
Click to show internal directories.
Click to hide internal directories.