Versions in this module Expand all Collapse all v0 v0.2.2 Dec 12, 2018 v0.2.1 Aug 20, 2018 Changes in this version + type CA struct + func InitCA() (*CA, error) + func (c *CA) CleanupCerts(crt, key string) error + func (c *CA) CreateSignedCert() (string, string, error) + func (c *CA) GenerateTLSConfig(certPath, keyPath string) (*tls.Config, error) + func (c *CA) GetCACertPath() (string, string) + type CAAPI interface + CleanupCerts func(crt, key string) error + CreateSignedCert func() (string, string, error) + GenerateTLSConfig func(certPath, keyPath string) (*tls.Config, error) + GetCACertPath func() (string, string) + type FileVaultStorer struct + func (fvs *FileVaultStorer) Init() error + func (fvs *FileVaultStorer) Read() ([]byte, error) + func (fvs *FileVaultStorer) Write(data []byte) error + type Vault struct + func NewVault(ca CAAPI, storer VaultStorer) (*Vault, error) + func (v *Vault) Add(key string, value []byte) + func (v *Vault) Get(key string) ([]byte, error) + func (v *Vault) GetAll() []string + func (v *Vault) LoadSecrets() error + func (v *Vault) Remove(key string) + func (v *Vault) SaveSecrets() error + type VaultAPI interface + Add func(key string, value []byte) + Get func(key string) ([]byte, error) + GetAll func() []string + LoadSecrets func() error + Remove func(key string) + SaveSecrets func() error + type VaultStorer interface + Init func() error + Read func() (data []byte, err error) + Write func(data []byte) error