Documentation ¶
Index ¶
- type Auth
- type ListWithContextFn
- type 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
- type LookupSelfWithContextFn
- type MockAddHeaderFn
- type MockClearTokenFn
- type MockSetNamespaceFn
- type MockSetTokenFn
- type MockTokenFn
- type ReadWithDataWithContextFn
- type RevokeSelfWithContextFn
- type Token
- type VaultClient
- 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
- type WriteWithContextFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListWithContextFn ¶
type Logical ¶
type Logical struct { ReadWithDataWithContextFn ReadWithDataWithContextFn ListWithContextFn ListWithContextFn WriteWithContextFn WriteWithContextFn }
func NewVaultLogical ¶
func NewVaultLogical() Logical
func (Logical) ListWithContext ¶
func (Logical) ReadWithDataWithContext ¶
type LookupSelfWithContextFn ¶
type MockAddHeaderFn ¶
type MockAddHeaderFn func(key, value string)
func NewAddHeaderFn ¶
func NewAddHeaderFn() MockAddHeaderFn
type MockClearTokenFn ¶
type MockClearTokenFn func()
func NewClearTokenFn ¶
func NewClearTokenFn() MockClearTokenFn
type MockSetNamespaceFn ¶
type MockSetNamespaceFn func(namespace string)
func NewSetNamespaceFn ¶
func NewSetNamespaceFn() MockSetNamespaceFn
type MockSetTokenFn ¶
type MockSetTokenFn func(v string)
func NewSetTokenFn ¶
func NewSetTokenFn(ofn ...func(v string)) MockSetTokenFn
type MockTokenFn ¶
type MockTokenFn func() string
func NewTokenFn ¶
func NewTokenFn(v string) MockTokenFn
type ReadWithDataWithContextFn ¶
type ReadWithDataWithContextFn func(ctx context.Context, path string, data map[string][]string) (*vault.Secret, error)
func NewReadWithContextFn ¶
func NewReadWithContextFn(secret map[string]interface{}, err error) ReadWithDataWithContextFn
type RevokeSelfWithContextFn ¶
type Token ¶
type Token struct { RevokeSelfWithContextFn RevokeSelfWithContextFn LookupSelfWithContextFn LookupSelfWithContextFn }
func (Token) LookupSelfWithContext ¶
type VaultClient ¶
type VaultClient struct { MockLogical Logical MockAuth Auth MockAuthToken Token MockSetToken MockSetTokenFn MockToken MockTokenFn MockClearToken MockClearTokenFn MockSetNamespace MockSetNamespaceFn MockAddHeader MockAddHeaderFn }
func (*VaultClient) AddHeader ¶
func (c *VaultClient) AddHeader(key, value string)
func (*VaultClient) Auth ¶
func (c *VaultClient) Auth() Auth
func (*VaultClient) AuthToken ¶
func (c *VaultClient) AuthToken() Token
func (*VaultClient) ClearToken ¶
func (c *VaultClient) ClearToken()
func (*VaultClient) Logical ¶
func (c *VaultClient) Logical() Logical
func (*VaultClient) SetNamespace ¶
func (c *VaultClient) SetNamespace(namespace string)
func (*VaultClient) SetToken ¶
func (c *VaultClient) SetToken(v string)
func (*VaultClient) Token ¶
func (c *VaultClient) Token() string
type VaultListResponse ¶
Click to show internal directories.
Click to hide internal directories.