Documentation ¶
Index ¶
- Constants
- func GetListenerConfig() string
- func NewConfigWithDefaultParams() string
- func NewVaultClient(hostname string, port string, tlsConfig *vaultapi.TLSConfig) (*vaultapi.Client, error)
- func PodDNSName(p core.Pod) string
- func VaultConfigFromAppBinding(app *appcat.AppBinding) (*vaultapi.Config, error)
- func VaultServiceURL(name, namespace string, port int) string
Constants ¶
View Source
const ( VaultContainerName = "vault" VaultUnsealerContainerName = "vault-unsealer" VaultInitContainerName = "vault-config" VaultExporterContainerName = "vault-exporter" )
View Source
const ( // VaultConfigFile is the file that vault pod uses to read config from VaultConfigFile = "/etc/vault/config/vault.hcl" // VaultTLSAssetDir is the dir where vault's server TLS sits VaultTLSAssetDir = "/etc/vault/tls/" )
Variables ¶
This section is empty.
Functions ¶
func NewConfigWithDefaultParams ¶
func NewConfigWithDefaultParams() string
NewConfigWithDefaultParams appends to given config data some default params: - tcp listener
func NewVaultClient ¶
func PodDNSName ¶
PodDNSName constructs the dns name on which a pod can be addressed
func VaultConfigFromAppBinding ¶
func VaultConfigFromAppBinding(app *appcat.AppBinding) (*vaultapi.Config, error)
func VaultServiceURL ¶
VaultServiceURL returns the DNS record of the vault service in the given namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.