Documentation ¶
Index ¶
- func Backend(c *logical.BackendConfig) *backend
- func CreateTestAppRoleVault(t *testing.T) (*vault.TestCluster, string, string)
- func CreateTestAuthVault(t *testing.T) *vault.TestCluster
- func CreateTestVault(t *testing.T) (net.Listener, *api.Client, string)
- func Factory(ctx context.Context, c *logical.BackendConfig) (logical.Backend, error)
- type MockVault
- func (v *MockVault) GetIndividualSecret(path, secret, version string, annotations map[string]string) (interface{}, error)
- func (v *MockVault) GetSecrets(path string, version string, annotations map[string]string) (map[string]interface{}, error)
- func (v *MockVault) LoadData(data map[string]interface{})
- func (v *MockVault) Login() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Backend ¶
func Backend(c *logical.BackendConfig) *backend
func CreateTestAppRoleVault ¶
CreateTestAppRoleVault initializes a new test vault with AppRole and Kv v2
func CreateTestAuthVault ¶
func CreateTestAuthVault(t *testing.T) *vault.TestCluster
CreateTestGithubVault initializes a new test vault with AppRole and Kv v2
func CreateTestVault ¶
CreateTestVault initializes a test vault with kv v2
Types ¶
type MockVault ¶
type MockVault struct { GetSecretsCalled bool GetIndividualSecretCalled bool Data []map[string]interface{} }
MockVault is used to mock out a generic SM Backend It's useful for testing replacement behavior
func (*MockVault) GetIndividualSecret ¶
func (*MockVault) GetSecrets ¶
Click to show internal directories.
Click to hide internal directories.