secretbackendmanager

package
v0.0.0-...-56cb166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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

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

WatchSecretBackendRotationChanges indicates an expected call of WatchSecretBackendRotationChanges.

type MockBackendServiceRotateBackendTokenCall

type MockBackendServiceRotateBackendTokenCall struct {
	*gomock.Call
}

MockBackendServiceRotateBackendTokenCall wrap *gomock.Call

func (*MockBackendServiceRotateBackendTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendServiceRotateBackendTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendServiceRotateBackendTokenCall) Return

Return rewrite *gomock.Call.Return

type MockBackendServiceWatchSecretBackendRotationChangesCall

type MockBackendServiceWatchSecretBackendRotationChangesCall struct {
	*gomock.Call
}

MockBackendServiceWatchSecretBackendRotationChangesCall wrap *gomock.Call

func (*MockBackendServiceWatchSecretBackendRotationChangesCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendServiceWatchSecretBackendRotationChangesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendServiceWatchSecretBackendRotationChangesCall) Return

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

Changes mocks base method.

func (*MockSecretBackendRotateWatcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSecretBackendRotateWatcher) Kill

Kill mocks base method.

func (*MockSecretBackendRotateWatcher) Wait

Wait mocks base method.

type MockSecretBackendRotateWatcherChangesCall

type MockSecretBackendRotateWatcherChangesCall struct {
	*gomock.Call
}

MockSecretBackendRotateWatcherChangesCall wrap *gomock.Call

func (*MockSecretBackendRotateWatcherChangesCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretBackendRotateWatcherChangesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretBackendRotateWatcherChangesCall) Return

Return rewrite *gomock.Call.Return

type MockSecretBackendRotateWatcherKillCall

type MockSecretBackendRotateWatcherKillCall struct {
	*gomock.Call
}

MockSecretBackendRotateWatcherKillCall wrap *gomock.Call

func (*MockSecretBackendRotateWatcherKillCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretBackendRotateWatcherKillCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretBackendRotateWatcherKillCall) Return

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

Changes indicates an expected call of Changes.

func (*MockSecretBackendRotateWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockSecretBackendRotateWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockSecretBackendRotateWatcherWaitCall

type MockSecretBackendRotateWatcherWaitCall struct {
	*gomock.Call
}

MockSecretBackendRotateWatcherWaitCall wrap *gomock.Call

func (*MockSecretBackendRotateWatcherWaitCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretBackendRotateWatcherWaitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretBackendRotateWatcherWaitCall) Return

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL