vaultutil

package
v0.0.0-...-0697a21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VaultTLSAssetDir is the dir where vault's server TLS and etcd TLS assets sits
	VaultTLSAssetDir = "/run/vault/tls/"
	// ServerTLSCertName is the filename of the vault server cert
	ServerTLSCertName = "server.crt"
	// ServerTLSKeyName is the filename of the vault server key
	ServerTLSKeyName = "server.key"
)

Variables

This section is empty.

Functions

func AutoUnsealConfig

func AutoUnsealConfig(kubecli kubernetes.Interface, data string, v *api.VaultService) string

Auto Unseal Data

func EnableWebUIConfig

func EnableWebUIConfig(kubecli kubernetes.Interface, data string, v *api.VaultService) string

func NewClient

func NewClient(hostname string, port string, tlsConfig *vaultapi.TLSConfig) (*vaultapi.Client, error)

func NewConfigWithDefaultParams

func NewConfigWithDefaultParams(data string) string

NewConfigWithDefaultParams appends to given config data some default params: - telemetry setting - tcp listener

func NewConfigWithEtcd

func NewConfigWithEtcd(data, etcdURL string) string

NewConfigWithEtcd returns the new config data combining original config and new etcd storage section.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL