Documentation
¶
Overview ¶
Package secretbackendmanager provides the backend implementation for the secretbackendmanager facade.
Package secretbackendmanager is a generated GoMock package.
Package secretbackendmanager is a generated GoMock package.
Index ¶
- Variables
- func Register(registry facade.FacadeRegistry)
- type BackendService
- type MockBackendService
- type MockBackendServiceMockRecorder
- type MockBackendServiceRotateBackendTokenCall
- func (c *MockBackendServiceRotateBackendTokenCall) Do(f func(context.Context, string) error) *MockBackendServiceRotateBackendTokenCall
- func (c *MockBackendServiceRotateBackendTokenCall) DoAndReturn(f func(context.Context, string) error) *MockBackendServiceRotateBackendTokenCall
- func (c *MockBackendServiceRotateBackendTokenCall) Return(arg0 error) *MockBackendServiceRotateBackendTokenCall
- type MockBackendServiceWatchSecretBackendRotationChangesCall
- func (c *MockBackendServiceWatchSecretBackendRotationChangesCall) Do(f func(context.Context) (watcher.SecretBackendRotateWatcher, error)) *MockBackendServiceWatchSecretBackendRotationChangesCall
- func (c *MockBackendServiceWatchSecretBackendRotationChangesCall) DoAndReturn(f func(context.Context) (watcher.SecretBackendRotateWatcher, error)) *MockBackendServiceWatchSecretBackendRotationChangesCall
- func (c *MockBackendServiceWatchSecretBackendRotationChangesCall) Return(arg0 watcher.SecretBackendRotateWatcher, arg1 error) *MockBackendServiceWatchSecretBackendRotationChangesCall
- type MockSecretBackendRotateWatcher
- type MockSecretBackendRotateWatcherChangesCall
- func (c *MockSecretBackendRotateWatcherChangesCall) Do(f func() <-chan []watcher.SecretBackendRotateChange) *MockSecretBackendRotateWatcherChangesCall
- func (c *MockSecretBackendRotateWatcherChangesCall) DoAndReturn(f func() <-chan []watcher.SecretBackendRotateChange) *MockSecretBackendRotateWatcherChangesCall
- func (c *MockSecretBackendRotateWatcherChangesCall) Return(arg0 <-chan []watcher.SecretBackendRotateChange) *MockSecretBackendRotateWatcherChangesCall
- type MockSecretBackendRotateWatcherKillCall
- func (c *MockSecretBackendRotateWatcherKillCall) Do(f func()) *MockSecretBackendRotateWatcherKillCall
- func (c *MockSecretBackendRotateWatcherKillCall) DoAndReturn(f func()) *MockSecretBackendRotateWatcherKillCall
- func (c *MockSecretBackendRotateWatcherKillCall) Return() *MockSecretBackendRotateWatcherKillCall
- type MockSecretBackendRotateWatcherMockRecorder
- func (mr *MockSecretBackendRotateWatcherMockRecorder) Changes() *MockSecretBackendRotateWatcherChangesCall
- func (mr *MockSecretBackendRotateWatcherMockRecorder) Kill() *MockSecretBackendRotateWatcherKillCall
- func (mr *MockSecretBackendRotateWatcherMockRecorder) Wait() *MockSecretBackendRotateWatcherWaitCall
- type MockSecretBackendRotateWatcherWaitCall
- func (c *MockSecretBackendRotateWatcherWaitCall) Do(f func() error) *MockSecretBackendRotateWatcherWaitCall
- func (c *MockSecretBackendRotateWatcherWaitCall) DoAndReturn(f func() error) *MockSecretBackendRotateWatcherWaitCall
- func (c *MockSecretBackendRotateWatcherWaitCall) Return(arg0 error) *MockSecretBackendRotateWatcherWaitCall
- type SecretBackendsManagerAPI
Constants ¶
This section is empty.
Variables ¶
var (
GetProvider = provider.Provider
)
For testing.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type BackendService ¶
type BackendService interface { RotateBackendToken(ctx context.Context, backendID string) error WatchSecretBackendRotationChanges(context.Context) (watcher.SecretBackendRotateWatcher, error) }
BackendService defines the service methods that the secret backend manager facade uses.
type MockBackendService ¶
type MockBackendService struct {
// contains filtered or unexported fields
}
MockBackendService is a mock of BackendService interface.
func NewMockBackendService ¶
func NewMockBackendService(ctrl *gomock.Controller) *MockBackendService
NewMockBackendService creates a new mock instance.
func (*MockBackendService) EXPECT ¶
func (m *MockBackendService) EXPECT() *MockBackendServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackendService) RotateBackendToken ¶
func (m *MockBackendService) RotateBackendToken(ctx context.Context, backendID string) error
RotateBackendToken mocks base method.
func (*MockBackendService) WatchSecretBackendRotationChanges ¶
func (m *MockBackendService) WatchSecretBackendRotationChanges(arg0 context.Context) (watcher.SecretBackendRotateWatcher, error)
WatchSecretBackendRotationChanges mocks base method.
type MockBackendServiceMockRecorder ¶
type MockBackendServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendServiceMockRecorder is the mock recorder for MockBackendService.
func (*MockBackendServiceMockRecorder) RotateBackendToken ¶
func (mr *MockBackendServiceMockRecorder) RotateBackendToken(ctx, backendID any) *MockBackendServiceRotateBackendTokenCall
RotateBackendToken indicates an expected call of RotateBackendToken.
func (*MockBackendServiceMockRecorder) WatchSecretBackendRotationChanges ¶
func (mr *MockBackendServiceMockRecorder) WatchSecretBackendRotationChanges(arg0 any) *MockBackendServiceWatchSecretBackendRotationChangesCall
WatchSecretBackendRotationChanges indicates an expected call of WatchSecretBackendRotationChanges.
type MockBackendServiceRotateBackendTokenCall ¶
MockBackendServiceRotateBackendTokenCall wrap *gomock.Call
func (*MockBackendServiceRotateBackendTokenCall) Do ¶
func (c *MockBackendServiceRotateBackendTokenCall) Do(f func(context.Context, string) error) *MockBackendServiceRotateBackendTokenCall
Do rewrite *gomock.Call.Do
func (*MockBackendServiceRotateBackendTokenCall) DoAndReturn ¶
func (c *MockBackendServiceRotateBackendTokenCall) DoAndReturn(f func(context.Context, string) error) *MockBackendServiceRotateBackendTokenCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendServiceRotateBackendTokenCall) Return ¶
func (c *MockBackendServiceRotateBackendTokenCall) Return(arg0 error) *MockBackendServiceRotateBackendTokenCall
Return rewrite *gomock.Call.Return
type MockBackendServiceWatchSecretBackendRotationChangesCall ¶
MockBackendServiceWatchSecretBackendRotationChangesCall wrap *gomock.Call
func (*MockBackendServiceWatchSecretBackendRotationChangesCall) Do ¶
func (c *MockBackendServiceWatchSecretBackendRotationChangesCall) Do(f func(context.Context) (watcher.SecretBackendRotateWatcher, error)) *MockBackendServiceWatchSecretBackendRotationChangesCall
Do rewrite *gomock.Call.Do
func (*MockBackendServiceWatchSecretBackendRotationChangesCall) DoAndReturn ¶
func (c *MockBackendServiceWatchSecretBackendRotationChangesCall) DoAndReturn(f func(context.Context) (watcher.SecretBackendRotateWatcher, error)) *MockBackendServiceWatchSecretBackendRotationChangesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendServiceWatchSecretBackendRotationChangesCall) Return ¶
func (c *MockBackendServiceWatchSecretBackendRotationChangesCall) Return(arg0 watcher.SecretBackendRotateWatcher, arg1 error) *MockBackendServiceWatchSecretBackendRotationChangesCall
Return rewrite *gomock.Call.Return
type MockSecretBackendRotateWatcher ¶
type MockSecretBackendRotateWatcher struct {
// contains filtered or unexported fields
}
MockSecretBackendRotateWatcher is a mock of SecretBackendRotateWatcher interface.
func NewMockSecretBackendRotateWatcher ¶
func NewMockSecretBackendRotateWatcher(ctrl *gomock.Controller) *MockSecretBackendRotateWatcher
NewMockSecretBackendRotateWatcher creates a new mock instance.
func (*MockSecretBackendRotateWatcher) Changes ¶
func (m *MockSecretBackendRotateWatcher) Changes() <-chan []watcher.SecretBackendRotateChange
Changes mocks base method.
func (*MockSecretBackendRotateWatcher) EXPECT ¶
func (m *MockSecretBackendRotateWatcher) EXPECT() *MockSecretBackendRotateWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretBackendRotateWatcher) Kill ¶
func (m *MockSecretBackendRotateWatcher) Kill()
Kill mocks base method.
func (*MockSecretBackendRotateWatcher) Wait ¶
func (m *MockSecretBackendRotateWatcher) Wait() error
Wait mocks base method.
type MockSecretBackendRotateWatcherChangesCall ¶
MockSecretBackendRotateWatcherChangesCall wrap *gomock.Call
func (*MockSecretBackendRotateWatcherChangesCall) Do ¶
func (c *MockSecretBackendRotateWatcherChangesCall) Do(f func() <-chan []watcher.SecretBackendRotateChange) *MockSecretBackendRotateWatcherChangesCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendRotateWatcherChangesCall) DoAndReturn ¶
func (c *MockSecretBackendRotateWatcherChangesCall) DoAndReturn(f func() <-chan []watcher.SecretBackendRotateChange) *MockSecretBackendRotateWatcherChangesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendRotateWatcherChangesCall) Return ¶
func (c *MockSecretBackendRotateWatcherChangesCall) Return(arg0 <-chan []watcher.SecretBackendRotateChange) *MockSecretBackendRotateWatcherChangesCall
Return rewrite *gomock.Call.Return
type MockSecretBackendRotateWatcherKillCall ¶
MockSecretBackendRotateWatcherKillCall wrap *gomock.Call
func (*MockSecretBackendRotateWatcherKillCall) Do ¶
func (c *MockSecretBackendRotateWatcherKillCall) Do(f func()) *MockSecretBackendRotateWatcherKillCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendRotateWatcherKillCall) DoAndReturn ¶
func (c *MockSecretBackendRotateWatcherKillCall) DoAndReturn(f func()) *MockSecretBackendRotateWatcherKillCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendRotateWatcherKillCall) Return ¶
func (c *MockSecretBackendRotateWatcherKillCall) Return() *MockSecretBackendRotateWatcherKillCall
Return rewrite *gomock.Call.Return
type MockSecretBackendRotateWatcherMockRecorder ¶
type MockSecretBackendRotateWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretBackendRotateWatcherMockRecorder is the mock recorder for MockSecretBackendRotateWatcher.
func (*MockSecretBackendRotateWatcherMockRecorder) Changes ¶
func (mr *MockSecretBackendRotateWatcherMockRecorder) Changes() *MockSecretBackendRotateWatcherChangesCall
Changes indicates an expected call of Changes.
func (*MockSecretBackendRotateWatcherMockRecorder) Kill ¶
func (mr *MockSecretBackendRotateWatcherMockRecorder) Kill() *MockSecretBackendRotateWatcherKillCall
Kill indicates an expected call of Kill.
func (*MockSecretBackendRotateWatcherMockRecorder) Wait ¶
func (mr *MockSecretBackendRotateWatcherMockRecorder) Wait() *MockSecretBackendRotateWatcherWaitCall
Wait indicates an expected call of Wait.
type MockSecretBackendRotateWatcherWaitCall ¶
MockSecretBackendRotateWatcherWaitCall wrap *gomock.Call
func (*MockSecretBackendRotateWatcherWaitCall) Do ¶
func (c *MockSecretBackendRotateWatcherWaitCall) Do(f func() error) *MockSecretBackendRotateWatcherWaitCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendRotateWatcherWaitCall) DoAndReturn ¶
func (c *MockSecretBackendRotateWatcherWaitCall) DoAndReturn(f func() error) *MockSecretBackendRotateWatcherWaitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendRotateWatcherWaitCall) Return ¶
func (c *MockSecretBackendRotateWatcherWaitCall) Return(arg0 error) *MockSecretBackendRotateWatcherWaitCall
Return rewrite *gomock.Call.Return
type SecretBackendsManagerAPI ¶
type SecretBackendsManagerAPI struct {
// contains filtered or unexported fields
}
SecretBackendsManagerAPI is the implementation for the SecretsManager facade.
func NewSecretBackendsManagerAPI ¶
func NewSecretBackendsManagerAPI(ctx facade.ModelContext) (*SecretBackendsManagerAPI, error)
NewSecretBackendsManagerAPI creates a SecretBackendsManagerAPI.
func (*SecretBackendsManagerAPI) RotateBackendTokens ¶
func (s *SecretBackendsManagerAPI) RotateBackendTokens(ctx context.Context, args params.RotateSecretBackendArgs) (params.ErrorResults, error)
RotateBackendTokens rotates the tokens for the specified backends.
func (*SecretBackendsManagerAPI) WatchSecretBackendsRotateChanges ¶
func (s *SecretBackendsManagerAPI) WatchSecretBackendsRotateChanges(ctx context.Context) (params.SecretBackendRotateWatchResult, error)
WatchSecretBackendsRotateChanges sets up a watcher to notify of changes to secret backend rotations.