vault

package
v0.0.0-...-127562d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(vaultAddr, rootToken string) (*Client, error)

func (*Client) GetAppRoleList

func (c *Client) GetAppRoleList() ([]string, error)

func (*Client) GetLoginClientToken

func (c *Client) GetLoginClientToken(role, defaultAccountToken string) (string, error)

func (*Client) GetPolicy

func (c *Client) GetPolicy(name string) (string, error)

func (*Client) ListPolicy

func (c *Client) ListPolicy() ([]string, error)

func (*Client) WritePolicy

func (c *Client) WritePolicy(name, rules string) error

Jump to

Keyboard shortcuts

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