vault

package
v0.0.0-...-e13db15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(props map[string][]byte) (common.SecretManager, error)

func NewVaultPolicyManager

func NewVaultPolicyManager(props map[string][]byte) (clients.PolicyManager, error)

Types

type PolicyManager

type PolicyManager struct {
	// contains filtered or unexported fields
}

func NewPolicyManager

func NewPolicyManager(host string, port string, token string) (*PolicyManager, error)

func (*PolicyManager) Delete

func (p *PolicyManager) Delete(ctx context.Context, name string) error

func (*PolicyManager) Get

func (p *PolicyManager) Get(ctx context.Context, name string) ([]clients.Policy, error)

func (*PolicyManager) Put

func (p *PolicyManager) Put(ctx context.Context, name string, policy clients.Policy) error

type VaultSecretManager

type VaultSecretManager struct {
	// contains filtered or unexported fields
}

func NewVaultSecretManager

func NewVaultSecretManager(host, port, token string) (*VaultSecretManager, error)

func (*VaultSecretManager) CreateEngine

func (m *VaultSecretManager) CreateEngine(ctx context.Context, engine string, engineType string, options map[string]string) error

func (*VaultSecretManager) DeleteEngine

func (m *VaultSecretManager) DeleteEngine(ctx context.Context, engine string) error

func (*VaultSecretManager) DeletePath

func (m *VaultSecretManager) DeletePath(ctx context.Context, engine string, secretPath string, options map[string]string) error

func (*VaultSecretManager) ExistEngine

func (m *VaultSecretManager) ExistEngine(ctx context.Context, engine string) (bool, error)

func (*VaultSecretManager) GetSecrets

func (m *VaultSecretManager) GetSecrets(ctx context.Context, engine string, secretPath string, options map[string]string) (map[string]interface{}, error)

func (*VaultSecretManager) Put

func (m *VaultSecretManager) Put(ctx context.Context, engine string, secretPath string, data map[string]interface{}, options map[string]string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL