Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (v *Client) CheckTokenPermissions(p string, checks int, name string) error
- func (v *Client) DeepListPaths(path string) ([]string, []string, error)
- func (v *Client) GetAllPaths(metaPaths []string) ([]string, []error)
- func (v *Client) GetMount(m string) (*api.MountOutput, error)
- func (v *Client) IsSecretKvV2(p string) error
- func (v *Client) MountChecks(mount string, checks int, name string) error
- func (v *Client) TokenRenewer(ctx context.Context, errCh chan error)
Constants ¶
View Source
const ( ReadCheck = 1 << iota WriteCheck ListCheck DeleteCheck StdCheck = ReadCheck | WriteCheck | ListCheck | DeleteCheck )
Variables ¶
View Source
var ( ErrInitialize = fmt.Errorf("cannot initialize vault client") ErrInvalidToken = fmt.Errorf("check token permission") ErrConnection = fmt.Errorf("vault connection refused") ErrInvalidPath = fmt.Errorf("invalid path") ErrCastPathData = fmt.Errorf("type cast errors on data from path") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CheckTokenPermissions ¶
Check if we can create, list, read, delete in data paths assumes kv v2
func (*Client) DeepListPaths ¶
DeepListPaths returns set of paths and folders path is a single path which has key value pairs folder is a parent set of individual paths, it can have more folders and paths
func (*Client) GetAllPaths ¶
GetAllSecretPaths recursively lists all absolute paths given a root vault kv v2 path Note: do not convert this into go routines as we dont know how to kill the goroutine
func (*Client) IsSecretKvV2 ¶
func (*Client) MountChecks ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.