Documentation ¶
Index ¶
- type Client
- func (c Client) AsProvider() SecretsProvider
- func (c Client) CreateAppRole(roleName, ttl, maxTTL string, policies ...string) (string, string, error)
- func (c Client) DeleteSecret(path string) error
- func (c Client) ListPolicies() ([]string, error)
- func (c Client) ListSecret(path string) ([]string, error)
- func (c Client) LoadSecret(path string) (*Secret, error)
- func (c Client) ReadJWTRoleClaims(roleName string) (JWTBoundClaims, error)
- func (c Client) ReadValue(path, field string) (interface{}, bool, error)
- func (c Client) SwitchVault(newAddr string) (*Client, error)
- func (c Client) WriteJWTRole(roleName string, roleConfig JWTRoleConfig) error
- func (c Client) WriteSecret(path string, data map[string]interface{}) error
- type JWTBoundClaims
- type JWTRoleConfig
- type Option
- type Prompter
- type Secret
- type SecretsProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { AppRoleAuth string // TODO JWTAuth string // TODO // contains filtered or unexported fields }
func (Client) AsProvider ¶
func (c Client) AsProvider() SecretsProvider
func (Client) CreateAppRole ¶
func (Client) DeleteSecret ¶
func (Client) ListPolicies ¶
func (Client) ReadJWTRoleClaims ¶
func (c Client) ReadJWTRoleClaims(roleName string) (JWTBoundClaims, error)
func (Client) WriteJWTRole ¶
func (c Client) WriteJWTRole(roleName string, roleConfig JWTRoleConfig) error
type JWTBoundClaims ¶
type JWTRoleConfig ¶
type SecretsProvider ¶
type SecretsProvider Client
func (SecretsProvider) LoadSecret ¶
func (p SecretsProvider) LoadSecret(uri string) (string, error)
Click to show internal directories.
Click to hide internal directories.