vault

package
v0.0.0-...-d92abce Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataToSet

type DataToSet struct {
	Data InternalData `json:"data"`
}

func NewVaultData

func NewVaultData(data string) (retVal DataToSet)

type InternalData

type InternalData struct {
	Key string `json:"key"`
}

type VaultClient

type VaultClient struct {
	ServerURL  string
	Token      string
	UserDomain string
	// contains filtered or unexported fields
}

func NewVaultClient

func NewVaultClient(serverURL string, logPar logs.Logger) (retVal *VaultClient)

func NewVaultClientInitialized

func NewVaultClientInitialized(logPar logs.Logger) (retVal *VaultClient)

func (VaultClient) CreateDefaultPolicyForUser

func (this VaultClient) CreateDefaultPolicyForUser(userName string) (err error)

func (VaultClient) CreateUser

func (this VaultClient) CreateUser(userName string) (initialPassword string, err error)

func (VaultClient) DeleteUser

func (this VaultClient) DeleteUser(userName string) (err error)

func (VaultClient) DeleteUserPolicy

func (this VaultClient) DeleteUserPolicy(userName string) (err error)

func (VaultClient) GetUserName

func (this VaultClient) GetUserName() string

func (VaultClient) GetUserToken

func (this VaultClient) GetUserToken() string

func (VaultClient) GetValue

func (this VaultClient) GetValue(secretPath string) (retVal string, err error)

func (VaultClient) Initialize

func (this VaultClient) Initialize() (keys []string, token string, err error)

func (VaultClient) IsInitialized

func (this VaultClient) IsInitialized() (retVal bool, err error)

func (VaultClient) IsSealed

func (this VaultClient) IsSealed() (retVal bool, err error)

func (VaultClient) LogIn

func (this VaultClient) LogIn(userName string, password string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)

func (VaultClient) LogInCached

func (this VaultClient) LogInCached(userName string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)

func (VaultClient) LookupToken

func (this VaultClient) LookupToken(token string) (retVal string, err error)

func (VaultClient) RenewToken

func (this VaultClient) RenewToken() (err error)

func (VaultClient) SaveCachedToken

func (this VaultClient) SaveCachedToken(userName string, token string) (err error)

func (VaultClient) Seal

func (this VaultClient) Seal() (err error)

func (*VaultClient) SetToken

func (this *VaultClient) SetToken(tokenPar string)

func (VaultClient) SetValue

func (this VaultClient) SetValue(secretPath string, secretValue string) (err error)

func (VaultClient) Unseal

func (this VaultClient) Unseal(keys []string) (err error)

type VaultTestKit

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

func NewVaultTestKit

func NewVaultTestKit() (retVal *VaultTestKit)

func (VaultTestKit) GetUserName

func (this VaultTestKit) GetUserName() (retVal string)

func (VaultTestKit) GetUserToken

func (this VaultTestKit) GetUserToken() (retVal string)

func (VaultTestKit) GetValue

func (this VaultTestKit) GetValue(path string) (retVal string, err error)

func (VaultTestKit) LogIn

func (this VaultTestKit) LogIn(userName string, password string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)

func (VaultTestKit) LogInCached

func (this VaultTestKit) LogInCached(userName string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)

func (VaultTestKit) RenewToken

func (this VaultTestKit) RenewToken() (err error)

func (VaultTestKit) SaveCachedToken

func (this VaultTestKit) SaveCachedToken(userName string, token string) (err error)

func (VaultTestKit) SetErrorEmulation

func (this VaultTestKit) SetErrorEmulation(path string, value error)

func (*VaultTestKit) SetLogiResult

func (this *VaultTestKit) SetLogiResult(newRes bool)

func (*VaultTestKit) SetTokenToReturn

func (this *VaultTestKit) SetTokenToReturn(newRes string)

func (VaultTestKit) SetValue

func (this VaultTestKit) SetValue(path string, value string) (err error)

Jump to

Keyboard shortcuts

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