vault

package
v0.0.0-...-151872f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const (
	VaultStateSealed = iota
	VaultStateUnsealed
	VaultStateUnintialised
	VaultStateErr
)
View Source
const (
	Retries = 60
)

Variables

This section is empty.

Functions

func NewTunnel

func NewTunnel(
	tunnel interfaces.Tunnel, fqdn string, vaultCA *x509.CertPool,
) (*vaultTunnel, error)

Types

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

func NewFromCluster

func NewFromCluster(cluster interfaces.Cluster) (*Vault, error)

func (*Vault) RootToken

func (v *Vault) RootToken() (string, error)

func (*Vault) Tunnel

func (v *Vault) Tunnel() (interfaces.VaultTunnel, error)

create tunnels

func (*Vault) TunnelFromFQDNs

func (v *Vault) TunnelFromFQDNs(vaultInternalFQDNs []string, vaultCA string) (interfaces.VaultTunnel, error)

returns the active vault tunnel for the whole cluster with provided FQDNs

func (*Vault) VerifyInitFromFQDNs

func (v *Vault) VerifyInitFromFQDNs(instances []string, vaultCA, vaultKMSKeyID, vaultUnsealKeyName string) error

Jump to

Keyboard shortcuts

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