Documentation ¶
Index ¶
- func CreateWrappedAppRoleToken(vaultClient *api.Client, appRole string) (string, error)
- func NewVaultLowlevelClient(token, vaultAddr string, logBase *logrus.Entry) (*api.Client, error)
- func TemplateFuncs(client *vault.Client) template.FuncMap
- type GetOrUpdateVaultSecretAction
- type VaultInitializer
- type VaultLayout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWrappedAppRoleToken ¶
CreateWrappedAppRoleToken creates a wrapped logged in token for the provided appRole.
func NewVaultLowlevelClient ¶
Types ¶
type GetOrUpdateVaultSecretAction ¶
type GetOrUpdateVaultSecretAction struct { Path string Key string DefaultValue string Replace bool Client *vault.Client }
func (GetOrUpdateVaultSecretAction) Execute ¶
func (g GetOrUpdateVaultSecretAction) Execute() (string, error)
type VaultInitializer ¶
func (VaultInitializer) Init ¶
func (v VaultInitializer) Init(forceGenerateTokenRoot bool) error
func (VaultInitializer) InstallJose ¶
func (v VaultInitializer) InstallJose() error
func (VaultInitializer) Unseal ¶
func (v VaultInitializer) Unseal() error
type VaultLayout ¶
type VaultLayout struct { Auth map[string]map[string]interface{} Mounts map[string]map[string]interface{} Resources map[string]map[string]interface{} Policies map[string]interface{} }
func LoadVaultLayoutFromBytes ¶
func LoadVaultLayoutFromBytes(label string, data []byte, templateArgs templating.TemplateValues, client *api.Client) (*VaultLayout, error)
func LoadVaultLayoutFromFiles ¶
func LoadVaultLayoutFromFiles(globs []string, templateArgs templating.TemplateValues, client *api.Client) (*VaultLayout, error)
func (VaultLayout) Apply ¶
func (v VaultLayout) Apply(hashKey string, force bool, client *api.Client, logBase *logrus.Entry) error
Apply applies the vault layout to vault, first checking if it has changed since the last time it was applied based on the hashKey. If hashKey is empty, or force is true, the change detection step is skipped.
func (VaultLayout) MarshalJSON ¶
func (v VaultLayout) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.