Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SecretUnsealKeys name of the secret for unsealing keys SecretUnsealKeys = "vault-unseal-keys" // KeyUnsealKeys secret key for the unseal key KeyUnsealKeys = "vault-root" // SecretVaultTLS secret name for TLS SecretVaultTLS = "vault-tls" // KeyVaultTLS secret key for TLS cert KeyVaultTLS = "ca.crt" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { // Read reads a tree of values from the vault Read(name string) (map[string]interface{}, error) // Write writes the given tree of values to the given name Write(name string, values map[string]interface{}) error // String returns the textual representation String() string }
Client interface for vault clients
func NewVaultClient ¶
NewVaultClient creates a new client from the factory
type Factory ¶
Factory is a simple vault client factory which initialises a vault client
func NewFactory ¶
func NewFactory(kubeClient kubernetes.Interface, namespace string) *Factory
NewFactory creates a new factory
func NewFactoryFromJX ¶
NewFactoryFromJX creates a new vault factory from a jx client factory
type VaultClient ¶
type VaultClient struct {
// contains filtered or unexported fields
}
VaultClient a client for vault
func (*VaultClient) Read ¶
func (v *VaultClient) Read(name string) (map[string]interface{}, error)
Read reads a tree of data from a path
func (*VaultClient) String ¶
func (v *VaultClient) String() string
String returns a textual representation
Click to show internal directories.
Click to hide internal directories.