Documentation ¶
Index ¶
- Variables
- type Data
- type VaultClient
- func (vc *VaultClient) CreatePolicy(ctx context.Context, path string, policy string) error
- func (vc *VaultClient) CreateSecret(ctx context.Context, secretName string, path string, ...) (*vault.KVSecret, error)
- func (vc *VaultClient) Delete(ctx context.Context, path string) (*vault.Secret, error)
- func (vc *VaultClient) DeletePolicy(ctx context.Context, path string) error
- func (vc *VaultClient) DeleteSecret(ctx context.Context, secretName string, path string) error
- func (vc *VaultClient) DisableAuth(ctx context.Context, path string) error
- func (vc *VaultClient) EnableAuth(ctx context.Context, path string, authOptions *vault.MountInput) error
- func (vc *VaultClient) GetPolicy(ctx context.Context, path string) (string, error)
- func (vc *VaultClient) GetSecret(ctx context.Context, secretname, path string) (*vault.KVSecret, error)
- func (vc *VaultClient) GetSecretVersionList(ctx context.Context, secretName string, path string) ([]vault.KVVersionMetadata, error)
- func (vc *VaultClient) Health() bool
- func (vc *VaultClient) Read(ctx context.Context, path string) (*vault.Secret, error)
- func (vc *VaultClient) RollBackSecret(ctx context.Context, secretName string, path string, toVersion int) error
- func (vc *VaultClient) Write(ctx context.Context, path string, data map[string]interface{}) (*vault.Secret, error)
- type VaultClientInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewVaultClient)
ProviderSet is data providers.
Functions ¶
This section is empty.
Types ¶
type VaultClient ¶
func (*VaultClient) CreatePolicy ¶
func (*VaultClient) CreateSecret ¶
func (*VaultClient) DeletePolicy ¶
func (vc *VaultClient) DeletePolicy(ctx context.Context, path string) error
func (*VaultClient) DeleteSecret ¶
func (*VaultClient) DisableAuth ¶
func (vc *VaultClient) DisableAuth(ctx context.Context, path string) error
func (*VaultClient) EnableAuth ¶
func (vc *VaultClient) EnableAuth(ctx context.Context, path string, authOptions *vault.MountInput) error
func (*VaultClient) GetSecretVersionList ¶
func (vc *VaultClient) GetSecretVersionList(ctx context.Context, secretName string, path string) ([]vault.KVVersionMetadata, error)
func (*VaultClient) Health ¶
func (vc *VaultClient) Health() bool
func (*VaultClient) RollBackSecret ¶
type VaultClientInterface ¶
type VaultClientInterface interface { CreateSecret(ctx context.Context, secretName string, path string, data map[string]interface{}) (*vault.KVSecret, error) GetSecret(ctx context.Context, secretName, path string) (*vault.KVSecret, error) DeleteSecret(ctx context.Context, secretName string, path string) error RollBackSecret(ctx context.Context, secretName string, path string, toVersion int) error GetSecretVersionList(ctx context.Context, secretName string, path string) ([]vault.KVVersionMetadata, error) CreatePolicy(ctx context.Context, path string, policy string) error GetPolicy(ctx context.Context, path string) (string, error) DeletePolicy(ctx context.Context, path string) error Read(ctx context.Context, path string) (*vault.Secret, error) Write(ctx context.Context, path string, data map[string]interface{}) (*vault.Secret, error) Delete(ctx context.Context, path string) (*vault.Secret, error) EnableAuth(ctx context.Context, path string, authOptions *vault.MountInput) error DisableAuth(ctx context.Context, path string) error Health() bool }
func NewVaultClient ¶
func NewVaultClient(c *conf.Data, logger log.Logger) VaultClientInterface
Click to show internal directories.
Click to hide internal directories.