vaultclient

package
v2.0.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

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

func (*Auth) IsTokenExpired

func (v *Auth) IsTokenExpired() bool

type AuthType

type AuthType int
const (
	Token AuthType = iota + 1
	Iam
	AppRole
)

type Config

type Config struct {
	*api.Config
	AuthType        AuthType
	Token           string
	IamRole         string
	AppRole         string
	AppRoleId       string
	AppRoleSecretId string
}

func BaseConfig

func BaseConfig() *Config

func NewDefaultConfig

func NewDefaultConfig() *Config

type VaultAuth

type VaultAuth interface {
	VaultClient() (*api.Client, error)
	VaultClientOrPanic() *api.Client
}

func NewVaultAuth

func NewVaultAuth(cfg *Config) (VaultAuth, error)

Jump to

Keyboard shortcuts

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