mock_storage

package
v0.12.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrContext_TestKeyringStore_Get = context.WithValue(context.Background(), errContextValue, "error")
)

Functions

func InjectStorageError added in v0.9.2

func InjectStorageError(ctx context.Context, err error) context.Context

func InjectedStorageError added in v0.9.2

func InjectedStorageError(ctx context.Context) (error, bool)

func NewTestClusterStore added in v0.9.2

func NewTestClusterStore(ctrl *gomock.Controller) storage.ClusterStore

func NewTestKeyValueStore added in v0.9.2

func NewTestKeyValueStore[T any](ctrl *gomock.Controller, clone func(T) T) storage.KeyValueStoreT[T]

func NewTestKeyValueStoreBroker added in v0.9.2

func NewTestKeyValueStoreBroker(ctrl *gomock.Controller) storage.KeyValueStoreBroker

func NewTestKeyringStore added in v0.9.2

func NewTestKeyringStore(ctrl *gomock.Controller, prefix string, ref *v1.Reference) storage.KeyringStore

func NewTestKeyringStoreBroker added in v0.9.2

func NewTestKeyringStoreBroker(ctrl *gomock.Controller, handler ...KeyringStoreHandler) storage.KeyringStoreBroker

func NewTestRBACStore added in v0.9.2

func NewTestRBACStore(ctrl *gomock.Controller) storage.RBACStore

func NewTestStorageBackend added in v0.9.2

func NewTestStorageBackend(ctx context.Context, ctrl *gomock.Controller) storage.Backend

func NewTestTokenStore added in v0.9.2

func NewTestTokenStore(ctx context.Context, ctrl *gomock.Controller) storage.TokenStore

Types

type KeyringStoreHandler added in v0.9.2

type KeyringStoreHandler = func(prefix string, ref *v1.Reference) storage.KeyringStore

type Lease added in v0.9.2

type Lease struct {
	ID         int64
	Expiration time.Time
	TokenID    string
}

type LeaseStore added in v0.9.2

type LeaseStore struct {
	// contains filtered or unexported fields
}

func NewLeaseStore added in v0.9.2

func NewLeaseStore(ctx context.Context) *LeaseStore

func (*LeaseStore) LeaseExpired added in v0.9.2

func (ls *LeaseStore) LeaseExpired() <-chan string

func (*LeaseStore) New added in v0.9.2

func (ls *LeaseStore) New(tokenID string, ttl time.Duration) *Lease

type MockBackend

type MockBackend struct {
	// contains filtered or unexported fields
}

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) CreateCluster

func (m *MockBackend) CreateCluster(ctx context.Context, cluster *v1.Cluster) error

CreateCluster mocks base method.

func (*MockBackend) CreateRole

func (m *MockBackend) CreateRole(arg0 context.Context, arg1 *v1.Role) error

CreateRole mocks base method.

func (*MockBackend) CreateRoleBinding

func (m *MockBackend) CreateRoleBinding(arg0 context.Context, arg1 *v1.RoleBinding) error

CreateRoleBinding mocks base method.

func (*MockBackend) CreateToken

func (m *MockBackend) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*v1.BootstrapToken, error)

CreateToken mocks base method.

func (*MockBackend) DeleteCluster

func (m *MockBackend) DeleteCluster(ctx context.Context, ref *v1.Reference) error

DeleteCluster mocks base method.

func (*MockBackend) DeleteRole

func (m *MockBackend) DeleteRole(arg0 context.Context, arg1 *v1.Reference) error

DeleteRole mocks base method.

func (*MockBackend) DeleteRoleBinding

func (m *MockBackend) DeleteRoleBinding(arg0 context.Context, arg1 *v1.Reference) error

DeleteRoleBinding mocks base method.

func (*MockBackend) DeleteToken

func (m *MockBackend) DeleteToken(ctx context.Context, ref *v1.Reference) error

DeleteToken mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) GetCluster

func (m *MockBackend) GetCluster(ctx context.Context, ref *v1.Reference) (*v1.Cluster, error)

GetCluster mocks base method.

func (*MockBackend) GetRole

func (m *MockBackend) GetRole(arg0 context.Context, arg1 *v1.Reference) (*v1.Role, error)

GetRole mocks base method.

func (*MockBackend) GetRoleBinding

func (m *MockBackend) GetRoleBinding(arg0 context.Context, arg1 *v1.Reference) (*v1.RoleBinding, error)

GetRoleBinding mocks base method.

func (*MockBackend) GetToken

func (m *MockBackend) GetToken(ctx context.Context, ref *v1.Reference) (*v1.BootstrapToken, error)

GetToken mocks base method.

func (*MockBackend) KeyValueStore

func (m *MockBackend) KeyValueStore(namespace string) storage.KeyValueStore

KeyValueStore mocks base method.

func (*MockBackend) KeyringStore

func (m *MockBackend) KeyringStore(namespace string, ref *v1.Reference) storage.KeyringStore

KeyringStore mocks base method.

func (*MockBackend) ListClusters

func (m *MockBackend) ListClusters(ctx context.Context, matchLabels *v1.LabelSelector, matchOptions v1.MatchOptions) (*v1.ClusterList, error)

ListClusters mocks base method.

func (*MockBackend) ListRoleBindings

func (m *MockBackend) ListRoleBindings(arg0 context.Context) (*v1.RoleBindingList, error)

ListRoleBindings mocks base method.

func (*MockBackend) ListRoles

func (m *MockBackend) ListRoles(arg0 context.Context) (*v1.RoleList, error)

ListRoles mocks base method.

func (*MockBackend) ListTokens

func (m *MockBackend) ListTokens(ctx context.Context) ([]*v1.BootstrapToken, error)

ListTokens mocks base method.

func (*MockBackend) UpdateCluster

func (m *MockBackend) UpdateCluster(ctx context.Context, ref *v1.Reference, mutator storage.ClusterMutator) (*v1.Cluster, error)

UpdateCluster mocks base method.

func (*MockBackend) UpdateRole added in v0.11.0

func (m *MockBackend) UpdateRole(ctx context.Context, ref *v1.Reference, mutator storage.RoleMutator) (*v1.Role, error)

UpdateRole mocks base method.

func (*MockBackend) UpdateRoleBinding added in v0.11.1

func (m *MockBackend) UpdateRoleBinding(ctx context.Context, ref *v1.Reference, mutator storage.RoleBindingMutator) (*v1.RoleBinding, error)

UpdateRoleBinding mocks base method.

func (*MockBackend) UpdateToken

func (m *MockBackend) UpdateToken(ctx context.Context, ref *v1.Reference, mutator storage.TokenMutator) (*v1.BootstrapToken, error)

UpdateToken mocks base method.

func (*MockBackend) WatchCluster added in v0.6.0

func (m *MockBackend) WatchCluster(ctx context.Context, cluster *v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)

WatchCluster mocks base method.

func (*MockBackend) WatchClusters added in v0.6.0

func (m *MockBackend) WatchClusters(ctx context.Context, known []*v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)

WatchClusters mocks base method.

type MockBackendMockRecorder

type MockBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) CreateCluster

func (mr *MockBackendMockRecorder) CreateCluster(ctx, cluster interface{}) *gomock.Call

CreateCluster indicates an expected call of CreateCluster.

func (*MockBackendMockRecorder) CreateRole

func (mr *MockBackendMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call

CreateRole indicates an expected call of CreateRole.

func (*MockBackendMockRecorder) CreateRoleBinding

func (mr *MockBackendMockRecorder) CreateRoleBinding(arg0, arg1 interface{}) *gomock.Call

CreateRoleBinding indicates an expected call of CreateRoleBinding.

func (*MockBackendMockRecorder) CreateToken

func (mr *MockBackendMockRecorder) CreateToken(ctx, ttl interface{}, opts ...interface{}) *gomock.Call

CreateToken indicates an expected call of CreateToken.

func (*MockBackendMockRecorder) DeleteCluster

func (mr *MockBackendMockRecorder) DeleteCluster(ctx, ref interface{}) *gomock.Call

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockBackendMockRecorder) DeleteRole

func (mr *MockBackendMockRecorder) DeleteRole(arg0, arg1 interface{}) *gomock.Call

DeleteRole indicates an expected call of DeleteRole.

func (*MockBackendMockRecorder) DeleteRoleBinding

func (mr *MockBackendMockRecorder) DeleteRoleBinding(arg0, arg1 interface{}) *gomock.Call

DeleteRoleBinding indicates an expected call of DeleteRoleBinding.

func (*MockBackendMockRecorder) DeleteToken

func (mr *MockBackendMockRecorder) DeleteToken(ctx, ref interface{}) *gomock.Call

DeleteToken indicates an expected call of DeleteToken.

func (*MockBackendMockRecorder) GetCluster

func (mr *MockBackendMockRecorder) GetCluster(ctx, ref interface{}) *gomock.Call

GetCluster indicates an expected call of GetCluster.

func (*MockBackendMockRecorder) GetRole

func (mr *MockBackendMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call

GetRole indicates an expected call of GetRole.

func (*MockBackendMockRecorder) GetRoleBinding

func (mr *MockBackendMockRecorder) GetRoleBinding(arg0, arg1 interface{}) *gomock.Call

GetRoleBinding indicates an expected call of GetRoleBinding.

func (*MockBackendMockRecorder) GetToken

func (mr *MockBackendMockRecorder) GetToken(ctx, ref interface{}) *gomock.Call

GetToken indicates an expected call of GetToken.

func (*MockBackendMockRecorder) KeyValueStore

func (mr *MockBackendMockRecorder) KeyValueStore(namespace interface{}) *gomock.Call

KeyValueStore indicates an expected call of KeyValueStore.

func (*MockBackendMockRecorder) KeyringStore

func (mr *MockBackendMockRecorder) KeyringStore(namespace, ref interface{}) *gomock.Call

KeyringStore indicates an expected call of KeyringStore.

func (*MockBackendMockRecorder) ListClusters

func (mr *MockBackendMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call

ListClusters indicates an expected call of ListClusters.

func (*MockBackendMockRecorder) ListRoleBindings

func (mr *MockBackendMockRecorder) ListRoleBindings(arg0 interface{}) *gomock.Call

ListRoleBindings indicates an expected call of ListRoleBindings.

func (*MockBackendMockRecorder) ListRoles

func (mr *MockBackendMockRecorder) ListRoles(arg0 interface{}) *gomock.Call

ListRoles indicates an expected call of ListRoles.

func (*MockBackendMockRecorder) ListTokens

func (mr *MockBackendMockRecorder) ListTokens(ctx interface{}) *gomock.Call

ListTokens indicates an expected call of ListTokens.

func (*MockBackendMockRecorder) UpdateCluster

func (mr *MockBackendMockRecorder) UpdateCluster(ctx, ref, mutator interface{}) *gomock.Call

UpdateCluster indicates an expected call of UpdateCluster.

func (*MockBackendMockRecorder) UpdateRole added in v0.11.0

func (mr *MockBackendMockRecorder) UpdateRole(ctx, ref, mutator interface{}) *gomock.Call

UpdateRole indicates an expected call of UpdateRole.

func (*MockBackendMockRecorder) UpdateRoleBinding added in v0.11.1

func (mr *MockBackendMockRecorder) UpdateRoleBinding(ctx, ref, mutator interface{}) *gomock.Call

UpdateRoleBinding indicates an expected call of UpdateRoleBinding.

func (*MockBackendMockRecorder) UpdateToken

func (mr *MockBackendMockRecorder) UpdateToken(ctx, ref, mutator interface{}) *gomock.Call

UpdateToken indicates an expected call of UpdateToken.

func (*MockBackendMockRecorder) WatchCluster added in v0.6.0

func (mr *MockBackendMockRecorder) WatchCluster(ctx, cluster interface{}) *gomock.Call

WatchCluster indicates an expected call of WatchCluster.

func (*MockBackendMockRecorder) WatchClusters added in v0.6.0

func (mr *MockBackendMockRecorder) WatchClusters(ctx, known interface{}) *gomock.Call

WatchClusters indicates an expected call of WatchClusters.

type MockClusterStore

type MockClusterStore struct {
	// contains filtered or unexported fields
}

MockClusterStore is a mock of ClusterStore interface.

func NewMockClusterStore

func NewMockClusterStore(ctrl *gomock.Controller) *MockClusterStore

NewMockClusterStore creates a new mock instance.

func (*MockClusterStore) CreateCluster

func (m *MockClusterStore) CreateCluster(ctx context.Context, cluster *v1.Cluster) error

CreateCluster mocks base method.

func (*MockClusterStore) DeleteCluster

func (m *MockClusterStore) DeleteCluster(ctx context.Context, ref *v1.Reference) error

DeleteCluster mocks base method.

func (*MockClusterStore) EXPECT

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

func (*MockClusterStore) GetCluster

func (m *MockClusterStore) GetCluster(ctx context.Context, ref *v1.Reference) (*v1.Cluster, error)

GetCluster mocks base method.

func (*MockClusterStore) ListClusters

func (m *MockClusterStore) ListClusters(ctx context.Context, matchLabels *v1.LabelSelector, matchOptions v1.MatchOptions) (*v1.ClusterList, error)

ListClusters mocks base method.

func (*MockClusterStore) UpdateCluster

func (m *MockClusterStore) UpdateCluster(ctx context.Context, ref *v1.Reference, mutator storage.ClusterMutator) (*v1.Cluster, error)

UpdateCluster mocks base method.

func (*MockClusterStore) WatchCluster added in v0.6.0

func (m *MockClusterStore) WatchCluster(ctx context.Context, cluster *v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)

WatchCluster mocks base method.

func (*MockClusterStore) WatchClusters added in v0.6.0

func (m *MockClusterStore) WatchClusters(ctx context.Context, known []*v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)

WatchClusters mocks base method.

type MockClusterStoreMockRecorder

type MockClusterStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockClusterStoreMockRecorder is the mock recorder for MockClusterStore.

func (*MockClusterStoreMockRecorder) CreateCluster

func (mr *MockClusterStoreMockRecorder) CreateCluster(ctx, cluster interface{}) *gomock.Call

CreateCluster indicates an expected call of CreateCluster.

func (*MockClusterStoreMockRecorder) DeleteCluster

func (mr *MockClusterStoreMockRecorder) DeleteCluster(ctx, ref interface{}) *gomock.Call

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockClusterStoreMockRecorder) GetCluster

func (mr *MockClusterStoreMockRecorder) GetCluster(ctx, ref interface{}) *gomock.Call

GetCluster indicates an expected call of GetCluster.

func (*MockClusterStoreMockRecorder) ListClusters

func (mr *MockClusterStoreMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call

ListClusters indicates an expected call of ListClusters.

func (*MockClusterStoreMockRecorder) UpdateCluster

func (mr *MockClusterStoreMockRecorder) UpdateCluster(ctx, ref, mutator interface{}) *gomock.Call

UpdateCluster indicates an expected call of UpdateCluster.

func (*MockClusterStoreMockRecorder) WatchCluster added in v0.6.0

func (mr *MockClusterStoreMockRecorder) WatchCluster(ctx, cluster interface{}) *gomock.Call

WatchCluster indicates an expected call of WatchCluster.

func (*MockClusterStoreMockRecorder) WatchClusters added in v0.6.0

func (mr *MockClusterStoreMockRecorder) WatchClusters(ctx, known interface{}) *gomock.Call

WatchClusters indicates an expected call of WatchClusters.

type MockGrpcTtlCache added in v0.9.2

type MockGrpcTtlCache[T any] struct {
	// contains filtered or unexported fields
}

MockGrpcTtlCache is a mock of GrpcTtlCache interface.

func NewMockGrpcTtlCache added in v0.9.2

func NewMockGrpcTtlCache[T any](ctrl *gomock.Controller) *MockGrpcTtlCache[T]

NewMockGrpcTtlCache creates a new mock instance.

func (*MockGrpcTtlCache[T]) Delete added in v0.9.2

func (m *MockGrpcTtlCache[T]) Delete(key string)

Delete mocks base method.

func (*MockGrpcTtlCache[T]) EXPECT added in v0.9.2

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

func (*MockGrpcTtlCache[T]) Get added in v0.9.2

func (m *MockGrpcTtlCache[T]) Get(key string) (T, bool)

Get mocks base method.

func (*MockGrpcTtlCache[T]) MaxAge added in v0.9.2

func (m *MockGrpcTtlCache[T]) MaxAge() time.Duration

MaxAge mocks base method.

func (*MockGrpcTtlCache[T]) Set added in v0.9.2

func (m *MockGrpcTtlCache[T]) Set(key string, resp T, ttl time.Duration)

Set mocks base method.

type MockGrpcTtlCacheMockRecorder added in v0.9.2

type MockGrpcTtlCacheMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockGrpcTtlCacheMockRecorder is the mock recorder for MockGrpcTtlCache.

func (*MockGrpcTtlCacheMockRecorder[T]) Delete added in v0.9.2

func (mr *MockGrpcTtlCacheMockRecorder[T]) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockGrpcTtlCacheMockRecorder[T]) Get added in v0.9.2

func (mr *MockGrpcTtlCacheMockRecorder[T]) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockGrpcTtlCacheMockRecorder[T]) MaxAge added in v0.9.2

func (mr *MockGrpcTtlCacheMockRecorder[T]) MaxAge() *gomock.Call

MaxAge indicates an expected call of MaxAge.

func (*MockGrpcTtlCacheMockRecorder[T]) Set added in v0.9.2

func (mr *MockGrpcTtlCacheMockRecorder[T]) Set(key, resp, ttl interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockHttpTtlCache added in v0.9.0

type MockHttpTtlCache[T any] struct {
	// contains filtered or unexported fields
}

MockHttpTtlCache is a mock of HttpTtlCache interface.

func NewMockHttpTtlCache added in v0.9.0

func NewMockHttpTtlCache[T any](ctrl *gomock.Controller) *MockHttpTtlCache[T]

NewMockHttpTtlCache creates a new mock instance.

func (*MockHttpTtlCache[T]) Delete added in v0.9.0

func (m *MockHttpTtlCache[T]) Delete(key string)

Delete mocks base method.

func (*MockHttpTtlCache[T]) EXPECT added in v0.9.0

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

func (*MockHttpTtlCache[T]) Get added in v0.9.0

func (m *MockHttpTtlCache[T]) Get(key string) (T, bool)

Get mocks base method.

func (*MockHttpTtlCache[T]) MaxAge added in v0.9.0

func (m *MockHttpTtlCache[T]) MaxAge() time.Duration

MaxAge mocks base method.

func (*MockHttpTtlCache[T]) Set added in v0.9.0

func (m *MockHttpTtlCache[T]) Set(key string, resp T)

Set mocks base method.

type MockHttpTtlCacheMockRecorder added in v0.9.0

type MockHttpTtlCacheMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockHttpTtlCacheMockRecorder is the mock recorder for MockHttpTtlCache.

func (*MockHttpTtlCacheMockRecorder[T]) Delete added in v0.9.0

func (mr *MockHttpTtlCacheMockRecorder[T]) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockHttpTtlCacheMockRecorder[T]) Get added in v0.9.0

func (mr *MockHttpTtlCacheMockRecorder[T]) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockHttpTtlCacheMockRecorder[T]) MaxAge added in v0.9.0

func (mr *MockHttpTtlCacheMockRecorder[T]) MaxAge() *gomock.Call

MaxAge indicates an expected call of MaxAge.

func (*MockHttpTtlCacheMockRecorder[T]) Set added in v0.9.0

func (mr *MockHttpTtlCacheMockRecorder[T]) Set(key, resp interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockKeyRevision added in v0.12.0

type MockKeyRevision[T any] struct {
	// contains filtered or unexported fields
}

MockKeyRevision is a mock of KeyRevision interface.

func NewMockKeyRevision added in v0.12.0

func NewMockKeyRevision[T any](ctrl *gomock.Controller) *MockKeyRevision[T]

NewMockKeyRevision creates a new mock instance.

func (*MockKeyRevision[T]) EXPECT added in v0.12.0

func (m *MockKeyRevision[T]) EXPECT() *MockKeyRevisionMockRecorder[T]

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

func (*MockKeyRevision[T]) Key added in v0.12.0

func (m *MockKeyRevision[T]) Key() string

Key mocks base method.

func (*MockKeyRevision[T]) Revision added in v0.12.0

func (m *MockKeyRevision[T]) Revision() int64

Revision mocks base method.

func (*MockKeyRevision[T]) Timestamp added in v0.12.0

func (m *MockKeyRevision[T]) Timestamp() time.Time

Timestamp mocks base method.

func (*MockKeyRevision[T]) Value added in v0.12.0

func (m *MockKeyRevision[T]) Value() T

Value mocks base method.

type MockKeyRevisionMockRecorder added in v0.12.0

type MockKeyRevisionMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockKeyRevisionMockRecorder is the mock recorder for MockKeyRevision.

func (*MockKeyRevisionMockRecorder[T]) Key added in v0.12.0

func (mr *MockKeyRevisionMockRecorder[T]) Key() *gomock.Call

Key indicates an expected call of Key.

func (*MockKeyRevisionMockRecorder[T]) Revision added in v0.12.0

func (mr *MockKeyRevisionMockRecorder[T]) Revision() *gomock.Call

Revision indicates an expected call of Revision.

func (*MockKeyRevisionMockRecorder[T]) Timestamp added in v0.12.0

func (mr *MockKeyRevisionMockRecorder[T]) Timestamp() *gomock.Call

Timestamp indicates an expected call of Timestamp.

func (*MockKeyRevisionMockRecorder[T]) Value added in v0.12.0

func (mr *MockKeyRevisionMockRecorder[T]) Value() *gomock.Call

Value indicates an expected call of Value.

type MockKeyValueStoreBroker

type MockKeyValueStoreBroker struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreBroker is a mock of KeyValueStoreBroker interface.

func NewMockKeyValueStoreBroker

func NewMockKeyValueStoreBroker(ctrl *gomock.Controller) *MockKeyValueStoreBroker

NewMockKeyValueStoreBroker creates a new mock instance.

func (*MockKeyValueStoreBroker) EXPECT

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

func (*MockKeyValueStoreBroker) KeyValueStore

func (m *MockKeyValueStoreBroker) KeyValueStore(namespace string) storage.KeyValueStore

KeyValueStore mocks base method.

type MockKeyValueStoreBrokerMockRecorder

type MockKeyValueStoreBrokerMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreBrokerMockRecorder is the mock recorder for MockKeyValueStoreBroker.

func (*MockKeyValueStoreBrokerMockRecorder) KeyValueStore

func (mr *MockKeyValueStoreBrokerMockRecorder) KeyValueStore(namespace interface{}) *gomock.Call

KeyValueStore indicates an expected call of KeyValueStore.

type MockKeyValueStoreT added in v0.6.0

type MockKeyValueStoreT[T any] struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreT is a mock of KeyValueStoreT interface.

func NewMockKeyValueStoreT added in v0.6.0

func NewMockKeyValueStoreT[T any](ctrl *gomock.Controller) *MockKeyValueStoreT[T]

NewMockKeyValueStoreT creates a new mock instance.

func (*MockKeyValueStoreT[T]) Delete added in v0.6.0

func (m *MockKeyValueStoreT[T]) Delete(ctx context.Context, key string, opts ...storage.DeleteOpt) error

Delete mocks base method.

func (*MockKeyValueStoreT[T]) EXPECT added in v0.6.0

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

func (*MockKeyValueStoreT[T]) Get added in v0.6.0

func (m *MockKeyValueStoreT[T]) Get(ctx context.Context, key string, opts ...storage.GetOpt) (T, error)

Get mocks base method.

func (*MockKeyValueStoreT[T]) History added in v0.12.0

func (m *MockKeyValueStoreT[T]) History(ctx context.Context, key string, opts ...storage.HistoryOpt) ([]storage.KeyRevision[T], error)

History mocks base method.

func (*MockKeyValueStoreT[T]) ListKeys added in v0.6.0

func (m *MockKeyValueStoreT[T]) ListKeys(ctx context.Context, prefix string, opts ...storage.ListOpt) ([]string, error)

ListKeys mocks base method.

func (*MockKeyValueStoreT[T]) Put added in v0.6.0

func (m *MockKeyValueStoreT[T]) Put(ctx context.Context, key string, value T, opts ...storage.PutOpt) error

Put mocks base method.

func (*MockKeyValueStoreT[T]) Watch added in v0.12.0

func (m *MockKeyValueStoreT[T]) Watch(ctx context.Context, key string, opts ...storage.WatchOpt) (<-chan storage.WatchEvent[storage.KeyRevision[T]], error)

Watch mocks base method.

type MockKeyValueStoreTBroker added in v0.12.0

type MockKeyValueStoreTBroker[T any] struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreTBroker is a mock of KeyValueStoreTBroker interface.

func NewMockKeyValueStoreTBroker added in v0.12.0

func NewMockKeyValueStoreTBroker[T any](ctrl *gomock.Controller) *MockKeyValueStoreTBroker[T]

NewMockKeyValueStoreTBroker creates a new mock instance.

func (*MockKeyValueStoreTBroker[T]) EXPECT added in v0.12.0

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

func (*MockKeyValueStoreTBroker[T]) KeyValueStore added in v0.12.0

func (m *MockKeyValueStoreTBroker[T]) KeyValueStore(namespace string) storage.KeyValueStoreT[T]

KeyValueStore mocks base method.

type MockKeyValueStoreTBrokerMockRecorder added in v0.12.0

type MockKeyValueStoreTBrokerMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreTBrokerMockRecorder is the mock recorder for MockKeyValueStoreTBroker.

func (*MockKeyValueStoreTBrokerMockRecorder[T]) KeyValueStore added in v0.12.0

func (mr *MockKeyValueStoreTBrokerMockRecorder[T]) KeyValueStore(namespace interface{}) *gomock.Call

KeyValueStore indicates an expected call of KeyValueStore.

type MockKeyValueStoreTMockRecorder added in v0.6.0

type MockKeyValueStoreTMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreTMockRecorder is the mock recorder for MockKeyValueStoreT.

func (*MockKeyValueStoreTMockRecorder[T]) Delete added in v0.6.0

func (mr *MockKeyValueStoreTMockRecorder[T]) Delete(ctx, key interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKeyValueStoreTMockRecorder[T]) Get added in v0.6.0

func (mr *MockKeyValueStoreTMockRecorder[T]) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyValueStoreTMockRecorder[T]) History added in v0.12.0

func (mr *MockKeyValueStoreTMockRecorder[T]) History(ctx, key interface{}, opts ...interface{}) *gomock.Call

History indicates an expected call of History.

func (*MockKeyValueStoreTMockRecorder[T]) ListKeys added in v0.6.0

func (mr *MockKeyValueStoreTMockRecorder[T]) ListKeys(ctx, prefix interface{}, opts ...interface{}) *gomock.Call

ListKeys indicates an expected call of ListKeys.

func (*MockKeyValueStoreTMockRecorder[T]) Put added in v0.6.0

func (mr *MockKeyValueStoreTMockRecorder[T]) Put(ctx, key, value interface{}, opts ...interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockKeyValueStoreTMockRecorder[T]) Watch added in v0.12.0

func (mr *MockKeyValueStoreTMockRecorder[T]) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type MockKeyringStore

type MockKeyringStore struct {
	// contains filtered or unexported fields
}

MockKeyringStore is a mock of KeyringStore interface.

func NewMockKeyringStore

func NewMockKeyringStore(ctrl *gomock.Controller) *MockKeyringStore

NewMockKeyringStore creates a new mock instance.

func (*MockKeyringStore) Delete added in v0.6.0

func (m *MockKeyringStore) Delete(ctx context.Context) error

Delete mocks base method.

func (*MockKeyringStore) EXPECT

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

func (*MockKeyringStore) Get

Get mocks base method.

func (*MockKeyringStore) Put

func (m *MockKeyringStore) Put(ctx context.Context, keyring keyring.Keyring) error

Put mocks base method.

type MockKeyringStoreBroker

type MockKeyringStoreBroker struct {
	// contains filtered or unexported fields
}

MockKeyringStoreBroker is a mock of KeyringStoreBroker interface.

func NewMockKeyringStoreBroker

func NewMockKeyringStoreBroker(ctrl *gomock.Controller) *MockKeyringStoreBroker

NewMockKeyringStoreBroker creates a new mock instance.

func (*MockKeyringStoreBroker) EXPECT

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

func (*MockKeyringStoreBroker) KeyringStore

func (m *MockKeyringStoreBroker) KeyringStore(namespace string, ref *v1.Reference) storage.KeyringStore

KeyringStore mocks base method.

type MockKeyringStoreBrokerMockRecorder

type MockKeyringStoreBrokerMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyringStoreBrokerMockRecorder is the mock recorder for MockKeyringStoreBroker.

func (*MockKeyringStoreBrokerMockRecorder) KeyringStore

func (mr *MockKeyringStoreBrokerMockRecorder) KeyringStore(namespace, ref interface{}) *gomock.Call

KeyringStore indicates an expected call of KeyringStore.

type MockKeyringStoreMockRecorder

type MockKeyringStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyringStoreMockRecorder is the mock recorder for MockKeyringStore.

func (*MockKeyringStoreMockRecorder) Delete added in v0.6.0

func (mr *MockKeyringStoreMockRecorder) Delete(ctx interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKeyringStoreMockRecorder) Get

func (mr *MockKeyringStoreMockRecorder) Get(ctx interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyringStoreMockRecorder) Put

func (mr *MockKeyringStoreMockRecorder) Put(ctx, keyring interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockLock added in v0.11.2

type MockLock struct {
	// contains filtered or unexported fields
}

MockLock is a mock of Lock interface.

func NewMockLock added in v0.11.2

func NewMockLock(ctrl *gomock.Controller) *MockLock

NewMockLock creates a new mock instance.

func (*MockLock) EXPECT added in v0.11.2

func (m *MockLock) EXPECT() *MockLockMockRecorder

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

func (*MockLock) Lock added in v0.11.2

func (m *MockLock) Lock() error

Lock mocks base method.

func (*MockLock) Unlock added in v0.11.2

func (m *MockLock) Unlock() error

Unlock mocks base method.

type MockLockManager added in v0.11.2

type MockLockManager struct {
	// contains filtered or unexported fields
}

MockLockManager is a mock of LockManager interface.

func NewMockLockManager added in v0.11.2

func NewMockLockManager(ctrl *gomock.Controller) *MockLockManager

NewMockLockManager creates a new mock instance.

func (*MockLockManager) EXPECT added in v0.11.2

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

func (*MockLockManager) Locker added in v0.11.2

func (m *MockLockManager) Locker(key string, opts ...lock.LockOption) storage.Lock

Locker mocks base method.

type MockLockManagerMockRecorder added in v0.11.2

type MockLockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockLockManagerMockRecorder is the mock recorder for MockLockManager.

func (*MockLockManagerMockRecorder) Locker added in v0.11.2

func (mr *MockLockManagerMockRecorder) Locker(key interface{}, opts ...interface{}) *gomock.Call

Locker indicates an expected call of Locker.

type MockLockMockRecorder added in v0.11.2

type MockLockMockRecorder struct {
	// contains filtered or unexported fields
}

MockLockMockRecorder is the mock recorder for MockLock.

func (*MockLockMockRecorder) Lock added in v0.11.2

func (mr *MockLockMockRecorder) Lock() *gomock.Call

Lock indicates an expected call of Lock.

func (*MockLockMockRecorder) Unlock added in v0.11.2

func (mr *MockLockMockRecorder) Unlock() *gomock.Call

Unlock indicates an expected call of Unlock.

type MockRBACStore

type MockRBACStore struct {
	// contains filtered or unexported fields
}

MockRBACStore is a mock of RBACStore interface.

func NewMockRBACStore

func NewMockRBACStore(ctrl *gomock.Controller) *MockRBACStore

NewMockRBACStore creates a new mock instance.

func (*MockRBACStore) CreateRole

func (m *MockRBACStore) CreateRole(arg0 context.Context, arg1 *v1.Role) error

CreateRole mocks base method.

func (*MockRBACStore) CreateRoleBinding

func (m *MockRBACStore) CreateRoleBinding(arg0 context.Context, arg1 *v1.RoleBinding) error

CreateRoleBinding mocks base method.

func (*MockRBACStore) DeleteRole

func (m *MockRBACStore) DeleteRole(arg0 context.Context, arg1 *v1.Reference) error

DeleteRole mocks base method.

func (*MockRBACStore) DeleteRoleBinding

func (m *MockRBACStore) DeleteRoleBinding(arg0 context.Context, arg1 *v1.Reference) error

DeleteRoleBinding mocks base method.

func (*MockRBACStore) EXPECT

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

func (*MockRBACStore) GetRole

func (m *MockRBACStore) GetRole(arg0 context.Context, arg1 *v1.Reference) (*v1.Role, error)

GetRole mocks base method.

func (*MockRBACStore) GetRoleBinding

func (m *MockRBACStore) GetRoleBinding(arg0 context.Context, arg1 *v1.Reference) (*v1.RoleBinding, error)

GetRoleBinding mocks base method.

func (*MockRBACStore) ListRoleBindings

func (m *MockRBACStore) ListRoleBindings(arg0 context.Context) (*v1.RoleBindingList, error)

ListRoleBindings mocks base method.

func (*MockRBACStore) ListRoles

func (m *MockRBACStore) ListRoles(arg0 context.Context) (*v1.RoleList, error)

ListRoles mocks base method.

func (*MockRBACStore) UpdateRole added in v0.11.0

func (m *MockRBACStore) UpdateRole(ctx context.Context, ref *v1.Reference, mutator storage.RoleMutator) (*v1.Role, error)

UpdateRole mocks base method.

func (*MockRBACStore) UpdateRoleBinding added in v0.11.0

func (m *MockRBACStore) UpdateRoleBinding(ctx context.Context, ref *v1.Reference, mutator storage.RoleBindingMutator) (*v1.RoleBinding, error)

UpdateRoleBinding mocks base method.

type MockRBACStoreMockRecorder

type MockRBACStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockRBACStoreMockRecorder is the mock recorder for MockRBACStore.

func (*MockRBACStoreMockRecorder) CreateRole

func (mr *MockRBACStoreMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call

CreateRole indicates an expected call of CreateRole.

func (*MockRBACStoreMockRecorder) CreateRoleBinding

func (mr *MockRBACStoreMockRecorder) CreateRoleBinding(arg0, arg1 interface{}) *gomock.Call

CreateRoleBinding indicates an expected call of CreateRoleBinding.

func (*MockRBACStoreMockRecorder) DeleteRole

func (mr *MockRBACStoreMockRecorder) DeleteRole(arg0, arg1 interface{}) *gomock.Call

DeleteRole indicates an expected call of DeleteRole.

func (*MockRBACStoreMockRecorder) DeleteRoleBinding

func (mr *MockRBACStoreMockRecorder) DeleteRoleBinding(arg0, arg1 interface{}) *gomock.Call

DeleteRoleBinding indicates an expected call of DeleteRoleBinding.

func (*MockRBACStoreMockRecorder) GetRole

func (mr *MockRBACStoreMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call

GetRole indicates an expected call of GetRole.

func (*MockRBACStoreMockRecorder) GetRoleBinding

func (mr *MockRBACStoreMockRecorder) GetRoleBinding(arg0, arg1 interface{}) *gomock.Call

GetRoleBinding indicates an expected call of GetRoleBinding.

func (*MockRBACStoreMockRecorder) ListRoleBindings

func (mr *MockRBACStoreMockRecorder) ListRoleBindings(arg0 interface{}) *gomock.Call

ListRoleBindings indicates an expected call of ListRoleBindings.

func (*MockRBACStoreMockRecorder) ListRoles

func (mr *MockRBACStoreMockRecorder) ListRoles(arg0 interface{}) *gomock.Call

ListRoles indicates an expected call of ListRoles.

func (*MockRBACStoreMockRecorder) UpdateRole added in v0.11.0

func (mr *MockRBACStoreMockRecorder) UpdateRole(ctx, ref, mutator interface{}) *gomock.Call

UpdateRole indicates an expected call of UpdateRole.

func (*MockRBACStoreMockRecorder) UpdateRoleBinding added in v0.11.0

func (mr *MockRBACStoreMockRecorder) UpdateRoleBinding(ctx, ref, mutator interface{}) *gomock.Call

UpdateRoleBinding indicates an expected call of UpdateRoleBinding.

type MockSubjectAccessCapableStore

type MockSubjectAccessCapableStore struct {
	// contains filtered or unexported fields
}

MockSubjectAccessCapableStore is a mock of SubjectAccessCapableStore interface.

func NewMockSubjectAccessCapableStore

func NewMockSubjectAccessCapableStore(ctrl *gomock.Controller) *MockSubjectAccessCapableStore

NewMockSubjectAccessCapableStore creates a new mock instance.

func (*MockSubjectAccessCapableStore) EXPECT

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

func (*MockSubjectAccessCapableStore) GetRole

GetRole mocks base method.

func (*MockSubjectAccessCapableStore) ListClusters

func (m *MockSubjectAccessCapableStore) ListClusters(ctx context.Context, matchLabels *v1.LabelSelector, matchOptions v1.MatchOptions) (*v1.ClusterList, error)

ListClusters mocks base method.

func (*MockSubjectAccessCapableStore) ListRoleBindings

ListRoleBindings mocks base method.

type MockSubjectAccessCapableStoreMockRecorder

type MockSubjectAccessCapableStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockSubjectAccessCapableStoreMockRecorder is the mock recorder for MockSubjectAccessCapableStore.

func (*MockSubjectAccessCapableStoreMockRecorder) GetRole

func (mr *MockSubjectAccessCapableStoreMockRecorder) GetRole(ctx, ref interface{}) *gomock.Call

GetRole indicates an expected call of GetRole.

func (*MockSubjectAccessCapableStoreMockRecorder) ListClusters

func (mr *MockSubjectAccessCapableStoreMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call

ListClusters indicates an expected call of ListClusters.

func (*MockSubjectAccessCapableStoreMockRecorder) ListRoleBindings

func (mr *MockSubjectAccessCapableStoreMockRecorder) ListRoleBindings(ctx interface{}) *gomock.Call

ListRoleBindings indicates an expected call of ListRoleBindings.

type MockTokenStore

type MockTokenStore struct {
	// contains filtered or unexported fields
}

MockTokenStore is a mock of TokenStore interface.

func NewMockTokenStore

func NewMockTokenStore(ctrl *gomock.Controller) *MockTokenStore

NewMockTokenStore creates a new mock instance.

func (*MockTokenStore) CreateToken

CreateToken mocks base method.

func (*MockTokenStore) DeleteToken

func (m *MockTokenStore) DeleteToken(ctx context.Context, ref *v1.Reference) error

DeleteToken mocks base method.

func (*MockTokenStore) EXPECT

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

func (*MockTokenStore) GetToken

func (m *MockTokenStore) GetToken(ctx context.Context, ref *v1.Reference) (*v1.BootstrapToken, error)

GetToken mocks base method.

func (*MockTokenStore) ListTokens

func (m *MockTokenStore) ListTokens(ctx context.Context) ([]*v1.BootstrapToken, error)

ListTokens mocks base method.

func (*MockTokenStore) UpdateToken

func (m *MockTokenStore) UpdateToken(ctx context.Context, ref *v1.Reference, mutator storage.TokenMutator) (*v1.BootstrapToken, error)

UpdateToken mocks base method.

type MockTokenStoreMockRecorder

type MockTokenStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockTokenStoreMockRecorder is the mock recorder for MockTokenStore.

func (*MockTokenStoreMockRecorder) CreateToken

func (mr *MockTokenStoreMockRecorder) CreateToken(ctx, ttl interface{}, opts ...interface{}) *gomock.Call

CreateToken indicates an expected call of CreateToken.

func (*MockTokenStoreMockRecorder) DeleteToken

func (mr *MockTokenStoreMockRecorder) DeleteToken(ctx, ref interface{}) *gomock.Call

DeleteToken indicates an expected call of DeleteToken.

func (*MockTokenStoreMockRecorder) GetToken

func (mr *MockTokenStoreMockRecorder) GetToken(ctx, ref interface{}) *gomock.Call

GetToken indicates an expected call of GetToken.

func (*MockTokenStoreMockRecorder) ListTokens

func (mr *MockTokenStoreMockRecorder) ListTokens(ctx interface{}) *gomock.Call

ListTokens indicates an expected call of ListTokens.

func (*MockTokenStoreMockRecorder) UpdateToken

func (mr *MockTokenStoreMockRecorder) UpdateToken(ctx, ref, mutator interface{}) *gomock.Call

UpdateToken indicates an expected call of UpdateToken.

type MockValueStoreT added in v0.12.0

type MockValueStoreT[T any] struct {
	// contains filtered or unexported fields
}

MockValueStoreT is a mock of ValueStoreT interface.

func NewMockValueStoreT added in v0.12.0

func NewMockValueStoreT[T any](ctrl *gomock.Controller) *MockValueStoreT[T]

NewMockValueStoreT creates a new mock instance.

func (*MockValueStoreT[T]) Delete added in v0.12.0

func (m *MockValueStoreT[T]) Delete(ctx context.Context, opts ...storage.DeleteOpt) error

Delete mocks base method.

func (*MockValueStoreT[T]) EXPECT added in v0.12.0

func (m *MockValueStoreT[T]) EXPECT() *MockValueStoreTMockRecorder[T]

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

func (*MockValueStoreT[T]) Get added in v0.12.0

func (m *MockValueStoreT[T]) Get(ctx context.Context, opts ...storage.GetOpt) (T, error)

Get mocks base method.

func (*MockValueStoreT[T]) History added in v0.12.0

func (m *MockValueStoreT[T]) History(ctx context.Context, opts ...storage.HistoryOpt) ([]storage.KeyRevision[T], error)

History mocks base method.

func (*MockValueStoreT[T]) Put added in v0.12.0

func (m *MockValueStoreT[T]) Put(ctx context.Context, value T, opts ...storage.PutOpt) error

Put mocks base method.

func (*MockValueStoreT[T]) Watch added in v0.12.0

func (m *MockValueStoreT[T]) Watch(ctx context.Context, opts ...storage.WatchOpt) (<-chan storage.WatchEvent[storage.KeyRevision[T]], error)

Watch mocks base method.

type MockValueStoreTMockRecorder added in v0.12.0

type MockValueStoreTMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockValueStoreTMockRecorder is the mock recorder for MockValueStoreT.

func (*MockValueStoreTMockRecorder[T]) Delete added in v0.12.0

func (mr *MockValueStoreTMockRecorder[T]) Delete(ctx interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockValueStoreTMockRecorder[T]) Get added in v0.12.0

func (mr *MockValueStoreTMockRecorder[T]) Get(ctx interface{}, opts ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockValueStoreTMockRecorder[T]) History added in v0.12.0

func (mr *MockValueStoreTMockRecorder[T]) History(ctx interface{}, opts ...interface{}) *gomock.Call

History indicates an expected call of History.

func (*MockValueStoreTMockRecorder[T]) Put added in v0.12.0

func (mr *MockValueStoreTMockRecorder[T]) Put(ctx, value interface{}, opts ...interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockValueStoreTMockRecorder[T]) Watch added in v0.12.0

func (mr *MockValueStoreTMockRecorder[T]) Watch(ctx interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

Jump to

Keyboard shortcuts

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