Documentation ¶
Index ¶
- func New(c *config.AppConfig) (client *api.Client, err error)
- func NewDest(c *config.AppConfig) (*api.Client, error)
- func ToJson(o interface{}) (j []byte, err error)
- type Client
- func (v *Client) DeleteSecret(appConfig *config.AppConfig, secretPath string, destinationVault bool) error
- func (v *Client) DumpSecrets(appConfig *config.AppConfig, destinationVault bool)
- func (v *Client) GetClient() *api.Client
- func (v *Client) HealthCheck(appConfig *config.AppConfig, destinationVault bool) (status string, err error)
- func (v *Client) ListSecrets(appConfig *config.AppConfig, destinationVault bool)
- func (v *Client) ListVaultMounts(appConfig *config.AppConfig, destinationVault bool) (vaultMounts map[string]*api.MountOutput, err error)
- func (v *Client) ReadSecret(appConfig *config.AppConfig, path string, destinationVault bool) (*api.Secret, error)
- func (v *Client) RemoveOrphans(appConfig *config.AppConfig, path string) (secretPaths []string, err error)
- func (v *Client) Request(appConfig *config.AppConfig, destinationVault bool, method, uri string, ...) (*http.Response, error)
- func (v *Client) SyncSecret(appConfig *config.AppConfig, path string) error
- func (v *Client) SyncSecrets(appConfig *config.AppConfig)
- func (v *Client) WriteSecret(appConfig *config.AppConfig, secret *Secret, destinationVault bool) error
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) DeleteSecret ¶
func (v *Client) DeleteSecret(appConfig *config.AppConfig, secretPath string, destinationVault bool) error
DeleteSecret delets a single secret from the vault
func (*Client) DumpSecrets ¶
DumpSecrets dumps all the secrets within the vault recursiviely
func (*Client) HealthCheck ¶
func (v *Client) HealthCheck(appConfig *config.AppConfig, destinationVault bool) (status string, err error)
HealthCheck performs a health check on the vault server
func (*Client) ListSecrets ¶
ListSecrets lists secrets located at the provided path
func (*Client) ListVaultMounts ¶
func (v *Client) ListVaultMounts(appConfig *config.AppConfig, destinationVault bool) (vaultMounts map[string]*api.MountOutput, err error)
ListVaultMounts lists the mounts within the vault
func (*Client) ReadSecret ¶
func (v *Client) ReadSecret(appConfig *config.AppConfig, path string, destinationVault bool) (*api.Secret, error)
ReadSecret reads a single secret from the vault
func (*Client) RemoveOrphans ¶
func (v *Client) RemoveOrphans(appConfig *config.AppConfig, path string) (secretPaths []string, err error)
RemoveOprhans removes secret paths in the destination vault that no longer exist in the source vault
func (*Client) Request ¶
func (v *Client) Request(appConfig *config.AppConfig, destinationVault bool, method, uri string, body interface{}) (*http.Response, error)
Request performs a request with a vault client
func (*Client) SyncSecret ¶
SyncSecret syncs a single secret from source to destination vault
func (*Client) SyncSecrets ¶
SyncSecrets syncs all secrets from source to destination vault
Source Files ¶
Click to show internal directories.
Click to hide internal directories.