Documentation ¶
Index ¶
- func Initialize() (string, string, error)
- func Stream(enctype string, key, iv []byte) (cipher.Stream, cipher.Stream, error)
- type Vault
- func (vault *Vault) ASCIIHexDecode(s string) string
- func (vault *Vault) ASCIIHexEncode(s string, n int) string
- func (vault *Vault) CreateBackupEncryptionConfig(enctype string) (string, string, error)
- func (vault *Vault) Do(method, url string, data interface{}) (*http.Response, error)
- func (vault *Vault) FixedKeygen() (string, error)
- func (vault *Vault) Get(path string) (map[string]interface{}, bool, error)
- func (vault *Vault) Init(store string, master string) (string, error)
- func (vault *Vault) IsInitialized() (bool, error)
- func (vault *Vault) IsSealed() (bool, error)
- func (vault *Vault) Keygen(length int) (string, error)
- func (vault *Vault) NewRequest(method, url string, data interface{}) (*http.Request, error)
- func (vault *Vault) Put(path string, data interface{}) error
- func (vault *Vault) ReadConfig(store string, master string) (VaultCreds, error)
- func (vault *Vault) Status() (string, error)
- func (vault *Vault) Unseal(key string) error
- func (vault *Vault) WriteConfig(store string, master string, creds VaultCreds) error
- type VaultCreds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type Vault ¶
func (*Vault) ASCIIHexDecode ¶
func (*Vault) CreateBackupEncryptionConfig ¶
CreateBackupEncryptionConfig creats random keys and corresponding iv's for a given cipher It returns both a key and iv (hex format)
func (*Vault) FixedKeygen ¶
func (*Vault) IsInitialized ¶
func (*Vault) NewRequest ¶
func (*Vault) ReadConfig ¶
func (vault *Vault) ReadConfig(store string, master string) (VaultCreds, error)
func (*Vault) WriteConfig ¶
func (vault *Vault) WriteConfig(store string, master string, creds VaultCreds) error
type VaultCreds ¶
Click to show internal directories.
Click to hide internal directories.