Versions in this module Expand all Collapse all v0 v0.5.8 Aug 23, 2022 Changes in this version + type Auth struct + LoginFn LoginFn + func NewVaultAuth() Auth + func (f Auth) Login(ctx context.Context, authMethod vault.AuthMethod) (*vault.Secret, error) + type ListWithContextFn func(ctx context.Context, path string) (*vault.Secret, error) + type Logical struct + ListWithContextFn ListWithContextFn + ReadWithDataWithContextFn ReadWithDataWithContextFn + WriteWithContextFn WriteWithContextFn + func NewVaultLogical() Logical + func (f Logical) ListWithContext(ctx context.Context, path string) (*vault.Secret, error) + func (f Logical) ReadWithDataWithContext(ctx context.Context, path string, data map[string][]string) (*vault.Secret, error) + func (f Logical) WriteWithContext(ctx context.Context, path string, data map[string]interface{}) (*vault.Secret, error) + type LoginFn func(ctx context.Context, authMethod vault.AuthMethod) (*vault.Secret, error) + type LookupSelfWithContextFn func(ctx context.Context) (*vault.Secret, error) + type MockAddHeaderFn func(key, value string) + func NewAddHeaderFn() MockAddHeaderFn + type MockClearTokenFn func() + func NewClearTokenFn() MockClearTokenFn + type MockSetNamespaceFn func(namespace string) + func NewSetNamespaceFn() MockSetNamespaceFn + type MockSetTokenFn func(v string) + func NewSetTokenFn(ofn ...func(v string)) MockSetTokenFn + type MockTokenFn func() string + func NewTokenFn(v string) MockTokenFn + type ReadWithDataWithContextFn func(ctx context.Context, path string, data map[string][]string) (*vault.Secret, error) + func NewReadWithContextFn(secret map[string]interface{}, err error) ReadWithDataWithContextFn + type RevokeSelfWithContextFn func(ctx context.Context, token string) error + type Token struct + LookupSelfWithContextFn LookupSelfWithContextFn + RevokeSelfWithContextFn RevokeSelfWithContextFn + func (f Token) LookupSelfWithContext(ctx context.Context) (*vault.Secret, error) + func (f Token) RevokeSelfWithContext(ctx context.Context, token string) error + type VaultClient struct + MockAddHeader MockAddHeaderFn + MockAuth Auth + MockAuthToken Token + MockClearToken MockClearTokenFn + MockLogical Logical + MockSetNamespace MockSetNamespaceFn + MockSetToken MockSetTokenFn + MockToken MockTokenFn + func (c *VaultClient) AddHeader(key, value string) + func (c *VaultClient) Auth() Auth + func (c *VaultClient) AuthToken() Token + func (c *VaultClient) ClearToken() + func (c *VaultClient) Logical() Logical + func (c *VaultClient) SetNamespace(namespace string) + func (c *VaultClient) SetToken(v string) + func (c *VaultClient) Token() string + type VaultListResponse struct + Data *vault.Response + Metadata *vault.Response + type WriteWithContextFn func(ctx context.Context, path string, data map[string]interface{}) (*vault.Secret, error)