Documentation ¶
Index ¶
- func Decode(s string) string
- func Encode(s string, n int) string
- func Stream(enctype string, key, iv []byte) (cipher.Stream, cipher.Stream, error)
- func WriteCrypt(path, master string, creds *Credentials) error
- type Client
- func (c *Client) Delete(path string) error
- func (c *Client) Do(method, url string, data interface{}) (*http.Response, error)
- func (c *Client) Get(path string, out interface{}) (bool, error)
- func (c *Client) Initialize(crypt, master string) (string, error)
- func (c *Client) Initialized() (bool, error)
- func (c *Client) NewParameters(id, typ string, fixed bool) (Parameters, error)
- func (c *Client) Post(path string, in, out interface{}) error
- func (c *Client) Put(path string, in, out interface{}) error
- func (c *Client) Rekey(path, current, proposed string, rotate bool) (string, error)
- func (c *Client) Retrieve(id string) (Parameters, error)
- func (c *Client) RetrieveFixed() (Parameters, error)
- func (c *Client) Seal() error
- func (c *Client) Sealed() (bool, error)
- func (vault *Client) Status() (string, error)
- func (c *Client) Store(id string, params Parameters) error
- func (c *Client) StoreFixed(p Parameters) error
- func (c *Client) Unseal(crypt, master string) error
- type Credentials
- type Parameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteCrypt ¶
func WriteCrypt(path, master string, creds *Credentials) error
Types ¶
type Client ¶
func (*Client) Initialized ¶
func (*Client) NewParameters ¶
func (c *Client) NewParameters(id, typ string, fixed bool) (Parameters, error)
func (*Client) RetrieveFixed ¶
func (c *Client) RetrieveFixed() (Parameters, error)
func (*Client) StoreFixed ¶
func (c *Client) StoreFixed(p Parameters) error
type Credentials ¶
func ReadCrypt ¶
func ReadCrypt(path, master string) (*Credentials, error)
type Parameters ¶
type Parameters struct { Key string `json:"key"` IV string `json:"iv"` Type string `json:"type"` UUID string `json:"uuid"` }
func DeriveFixedParameters ¶
func DeriveFixedParameters(key []byte) (Parameters, error)
func GenerateFixedParameters ¶
func GenerateFixedParameters() (string, Parameters, error)
func GenerateRandomParameters ¶
func GenerateRandomParameters(typ string) (Parameters, error)
Click to show internal directories.
Click to hide internal directories.