Documentation
¶
Index ¶
- Constants
- func NewClient(logger *slog.Logger, maxConcurrentRequests int) (types.Client, error)
- type MockClient
- func (m *MockClient) DeleteKVSecret(uuid string, _ *types.Mount, _ string, _ ...int) tea.Cmd
- func (m *MockClient) DestroyKVSecret(uuid string, _ *types.Mount, _ string, _ ...int) tea.Cmd
- func (m *MockClient) ErrorOr(uuid string, msg tea.Msg) tea.Cmd
- func (m *MockClient) GetACLPolicy(uuid, policyName string) tea.Cmd
- func (m *MockClient) GetConfigState(uuid string) tea.Cmd
- func (m *MockClient) GetHealth(uuid string) tea.Cmd
- func (m *MockClient) GetKVSecret(uuid string, mount *types.Mount, path string, _ int) tea.Cmd
- func (m *MockClient) GetKVv2Metadata(uuid string, mount *types.Mount, path string) tea.Cmd
- func (m *MockClient) Init() tea.Cmd
- func (m *MockClient) ListACLPolicies(uuid string) tea.Cmd
- func (m *MockClient) ListAllSecretsRecursive(uuid string, _ *types.Mount) tea.Cmd
- func (m *MockClient) ListKVv2Versions(uuid string, mount *types.Mount, path string) tea.Cmd
- func (m *MockClient) ListMounts(uuid string) tea.Cmd
- func (m *MockClient) ListSecrets(uuid string, mount *types.Mount, path string) tea.Cmd
- func (m *MockClient) PutKVSecret(uuid string, _ *types.Mount, _ string, _ map[string]any) tea.Cmd
- func (m *MockClient) TokenLookupSelf(uuid string) tea.Cmd
- func (m *MockClient) UndeleteKVSecret(uuid string, _ *types.Mount, _ string, _ ...int) tea.Cmd
- func (m *MockClient) Update(msg tea.Msg) tea.Cmd
Constants ¶
View Source
const ( HealthCheckInterval = 5 * time.Second TokenLookupInterval = 1 * time.Minute )
View Source
const MaxRecursiveRequests = 300
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockClient ¶
type MockClient struct {
ShouldError bool
// contains filtered or unexported fields
}
func NewMockClient ¶
func NewMockClient() *MockClient
func (*MockClient) DeleteKVSecret ¶
func (*MockClient) DestroyKVSecret ¶
func (*MockClient) GetACLPolicy ¶
func (m *MockClient) GetACLPolicy(uuid, policyName string) tea.Cmd
func (*MockClient) GetConfigState ¶
func (m *MockClient) GetConfigState(uuid string) tea.Cmd
func (*MockClient) GetKVSecret ¶
func (*MockClient) GetKVv2Metadata ¶
func (*MockClient) Init ¶
func (m *MockClient) Init() tea.Cmd
func (*MockClient) ListACLPolicies ¶
func (m *MockClient) ListACLPolicies(uuid string) tea.Cmd
func (*MockClient) ListAllSecretsRecursive ¶
func (*MockClient) ListKVv2Versions ¶
func (*MockClient) ListMounts ¶
func (m *MockClient) ListMounts(uuid string) tea.Cmd
func (*MockClient) ListSecrets ¶
func (*MockClient) PutKVSecret ¶
func (*MockClient) TokenLookupSelf ¶
func (m *MockClient) TokenLookupSelf(uuid string) tea.Cmd
func (*MockClient) UndeleteKVSecret ¶
Click to show internal directories.
Click to hide internal directories.