Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultClient ¶
type VaultClient interface { Sys() VaultSysClient Logical() VaultLogicalClient }
VaultClient wraps the vault client
func NewVaultClient ¶
func NewVaultClient(ctx context.Context, kube client.Client, mg resource.Managed) (VaultClient, error)
NewVaultClient creates a new Vault client. This function should be used in the Connect method of controller connectors.
type VaultClientWrapper ¶
VaultClientWrapper implements the VaultClient interface and provides the subclient abstractions
func (*VaultClientWrapper) Logical ¶ added in v0.2.0
func (vc *VaultClientWrapper) Logical() VaultLogicalClient
Logical returns the vault logical subclient
func (*VaultClientWrapper) Sys ¶
func (vc *VaultClientWrapper) Sys() VaultSysClient
Sys returns the vault sys subclient
type VaultLogicalClient ¶ added in v0.2.0
type VaultLogicalClient interface { Write(path string, data map[string]interface{}) (*vault.Secret, error) Delete(path string) (*vault.Secret, error) Read(path string) (*vault.Secret, error) }
VaultLogicalClient is the interface that wraps the vault Logical subclient
Click to show internal directories.
Click to hide internal directories.