Documentation ¶
Index ¶
- type VaultClient
- func (c *VaultClient) CreatePolicy(policy vaultpolicy.VaultPolicy) (token string, err error)
- func (c *VaultClient) Init(shares int, threshold int) (token string, keys []string, err error)
- func (c *VaultClient) InitStatus() (initState bool, err error)
- func (c *VaultClient) LeaderStatus() (leaderState bool, err error)
- func (c *VaultClient) SealStatus() (sealState bool, err error)
- func (c *VaultClient) Unseal(unsealKeys string) (sealState bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultClient ¶
func NewVaultClient ¶
func NewVaultClient(address string, token string) (*VaultClient, error)
func (*VaultClient) CreatePolicy ¶
func (c *VaultClient) CreatePolicy(policy vaultpolicy.VaultPolicy) (token string, err error)
CRUD Policy functions
func (*VaultClient) InitStatus ¶
func (c *VaultClient) InitStatus() (initState bool, err error)
func (*VaultClient) LeaderStatus ¶
func (c *VaultClient) LeaderStatus() (leaderState bool, err error)
Ready returns true if vault is unsealed
func (*VaultClient) SealStatus ¶
func (c *VaultClient) SealStatus() (sealState bool, err error)
SealStatus returns true if vault is unsealed
Click to show internal directories.
Click to hide internal directories.