vault

package
v0.0.0-...-049935a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewData

func NewData(cas int, data map[string]interface{}) map[string]interface{}

NewData is a helper function for Vault KV Version two secret data creation

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Client is a Vault client with Kubernetes support and token automatic renewing

func NewClient

func NewClient(role string) (*Client, error)

NewClient creates a new Vault client

func NewClientWithConfig

func NewClientWithConfig(config *vaultapi.Config, role string) (*Client, error)

NewClientWithConfig creates a new Vault client with custom configuration

func (*Client) Close

func (client *Client) Close()

Close stops the token renewing process of this client

func (*Client) Vault

func (client *Client) Vault() *vaultapi.Client

Vault returns the underlying hashicorp Vault client

Jump to

Keyboard shortcuts

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