Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- Variables
- func InjectStorageError(ctx context.Context, err error) context.Context
- func InjectedStorageError(ctx context.Context) (error, bool)
- func NewTestClusterStore(ctrl *gomock.Controller) storage.ClusterStore
- func NewTestKeyValueStore[T any](ctrl *gomock.Controller, clone func(T) T) storage.KeyValueStoreT[T]
- func NewTestKeyValueStoreBroker(ctrl *gomock.Controller) storage.KeyValueStoreBroker
- func NewTestKeyringStore(ctrl *gomock.Controller, prefix string, ref *v1.Reference) storage.KeyringStore
- func NewTestKeyringStoreBroker(ctrl *gomock.Controller, handler ...KeyringStoreHandler) storage.KeyringStoreBroker
- func NewTestRBACStore(ctrl *gomock.Controller) storage.RBACStore
- func NewTestStorageBackend(ctx context.Context, ctrl *gomock.Controller) storage.Backend
- func NewTestTokenStore(ctx context.Context, ctrl *gomock.Controller) storage.TokenStore
- type KeyringStoreHandler
- type Lease
- type LeaseStore
- type MockBackend
- func (m *MockBackend) CreateCluster(ctx context.Context, cluster *v1.Cluster) error
- func (m *MockBackend) CreateRole(arg0 context.Context, arg1 *v1.Role) error
- func (m *MockBackend) CreateRoleBinding(arg0 context.Context, arg1 *v1.RoleBinding) error
- func (m *MockBackend) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*v1.BootstrapToken, error)
- func (m *MockBackend) DeleteCluster(ctx context.Context, ref *v1.Reference) error
- func (m *MockBackend) DeleteRole(arg0 context.Context, arg1 *v1.Reference) error
- func (m *MockBackend) DeleteRoleBinding(arg0 context.Context, arg1 *v1.Reference) error
- func (m *MockBackend) DeleteToken(ctx context.Context, ref *v1.Reference) error
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) GetCluster(ctx context.Context, ref *v1.Reference) (*v1.Cluster, error)
- func (m *MockBackend) GetRole(arg0 context.Context, arg1 *v1.Reference) (*v1.Role, error)
- func (m *MockBackend) GetRoleBinding(arg0 context.Context, arg1 *v1.Reference) (*v1.RoleBinding, error)
- func (m *MockBackend) GetToken(ctx context.Context, ref *v1.Reference) (*v1.BootstrapToken, error)
- func (m *MockBackend) KeyValueStore(namespace string) storage.KeyValueStore
- func (m *MockBackend) KeyringStore(namespace string, ref *v1.Reference) storage.KeyringStore
- func (m *MockBackend) ListClusters(ctx context.Context, matchLabels *v1.LabelSelector, ...) (*v1.ClusterList, error)
- func (m *MockBackend) ListRoleBindings(arg0 context.Context) (*v1.RoleBindingList, error)
- func (m *MockBackend) ListRoles(arg0 context.Context) (*v1.RoleList, error)
- func (m *MockBackend) ListTokens(ctx context.Context) ([]*v1.BootstrapToken, error)
- func (m *MockBackend) UpdateCluster(ctx context.Context, ref *v1.Reference, mutator storage.ClusterMutator) (*v1.Cluster, error)
- func (m *MockBackend) UpdateRole(ctx context.Context, ref *v1.Reference, mutator storage.RoleMutator) (*v1.Role, error)
- func (m *MockBackend) UpdateRoleBinding(ctx context.Context, ref *v1.Reference, mutator storage.RoleBindingMutator) (*v1.RoleBinding, error)
- func (m *MockBackend) UpdateToken(ctx context.Context, ref *v1.Reference, mutator storage.TokenMutator) (*v1.BootstrapToken, error)
- func (m *MockBackend) WatchCluster(ctx context.Context, cluster *v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)
- func (m *MockBackend) WatchClusters(ctx context.Context, known []*v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) CreateCluster(ctx, cluster interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) CreateRoleBinding(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) CreateToken(ctx, ttl interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) DeleteCluster(ctx, ref interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) DeleteRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) DeleteRoleBinding(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) DeleteToken(ctx, ref interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) GetCluster(ctx, ref interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) GetRoleBinding(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) GetToken(ctx, ref interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) KeyValueStore(namespace interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) KeyringStore(namespace, ref interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) ListRoleBindings(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) ListRoles(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) ListTokens(ctx interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateCluster(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateRole(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateRoleBinding(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateToken(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) WatchCluster(ctx, cluster interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) WatchClusters(ctx, known interface{}) *gomock.Call
- type MockClusterStore
- func (m *MockClusterStore) CreateCluster(ctx context.Context, cluster *v1.Cluster) error
- func (m *MockClusterStore) DeleteCluster(ctx context.Context, ref *v1.Reference) error
- func (m *MockClusterStore) EXPECT() *MockClusterStoreMockRecorder
- func (m *MockClusterStore) GetCluster(ctx context.Context, ref *v1.Reference) (*v1.Cluster, error)
- func (m *MockClusterStore) ListClusters(ctx context.Context, matchLabels *v1.LabelSelector, ...) (*v1.ClusterList, error)
- func (m *MockClusterStore) UpdateCluster(ctx context.Context, ref *v1.Reference, mutator storage.ClusterMutator) (*v1.Cluster, error)
- func (m *MockClusterStore) WatchCluster(ctx context.Context, cluster *v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)
- func (m *MockClusterStore) WatchClusters(ctx context.Context, known []*v1.Cluster) (<-chan storage.WatchEvent[*v1.Cluster], error)
- type MockClusterStoreMockRecorder
- func (mr *MockClusterStoreMockRecorder) CreateCluster(ctx, cluster interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) DeleteCluster(ctx, ref interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) GetCluster(ctx, ref interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) UpdateCluster(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) WatchCluster(ctx, cluster interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) WatchClusters(ctx, known interface{}) *gomock.Call
- type MockGrpcTtlCache
- func (m *MockGrpcTtlCache[T]) Delete(key string)
- func (m *MockGrpcTtlCache[T]) EXPECT() *MockGrpcTtlCacheMockRecorder[T]
- func (m *MockGrpcTtlCache[T]) Get(key string) (T, bool)
- func (m *MockGrpcTtlCache[T]) MaxAge() time.Duration
- func (m *MockGrpcTtlCache[T]) Set(key string, resp T, ttl time.Duration)
- type MockGrpcTtlCacheMockRecorder
- func (mr *MockGrpcTtlCacheMockRecorder[T]) Delete(key interface{}) *gomock.Call
- func (mr *MockGrpcTtlCacheMockRecorder[T]) Get(key interface{}) *gomock.Call
- func (mr *MockGrpcTtlCacheMockRecorder[T]) MaxAge() *gomock.Call
- func (mr *MockGrpcTtlCacheMockRecorder[T]) Set(key, resp, ttl interface{}) *gomock.Call
- type MockHttpTtlCache
- type MockHttpTtlCacheMockRecorder
- func (mr *MockHttpTtlCacheMockRecorder[T]) Delete(key interface{}) *gomock.Call
- func (mr *MockHttpTtlCacheMockRecorder[T]) Get(key interface{}) *gomock.Call
- func (mr *MockHttpTtlCacheMockRecorder[T]) MaxAge() *gomock.Call
- func (mr *MockHttpTtlCacheMockRecorder[T]) Set(key, resp interface{}) *gomock.Call
- type MockKeyValueStoreBroker
- type MockKeyValueStoreBrokerMockRecorder
- type MockKeyValueStoreT
- func (m *MockKeyValueStoreT[T]) Delete(ctx context.Context, key string) error
- func (m *MockKeyValueStoreT[T]) EXPECT() *MockKeyValueStoreTMockRecorder[T]
- func (m *MockKeyValueStoreT[T]) Get(ctx context.Context, key string) (T, error)
- func (m *MockKeyValueStoreT[T]) ListKeys(ctx context.Context, prefix string) ([]string, error)
- func (m *MockKeyValueStoreT[T]) Put(ctx context.Context, key string, value T) error
- type MockKeyValueStoreTMockRecorder
- func (mr *MockKeyValueStoreTMockRecorder[T]) Delete(ctx, key interface{}) *gomock.Call
- func (mr *MockKeyValueStoreTMockRecorder[T]) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockKeyValueStoreTMockRecorder[T]) ListKeys(ctx, prefix interface{}) *gomock.Call
- func (mr *MockKeyValueStoreTMockRecorder[T]) Put(ctx, key, value interface{}) *gomock.Call
- type MockKeyringStore
- type MockKeyringStoreBroker
- type MockKeyringStoreBrokerMockRecorder
- type MockKeyringStoreMockRecorder
- type MockRBACStore
- func (m *MockRBACStore) CreateRole(arg0 context.Context, arg1 *v1.Role) error
- func (m *MockRBACStore) CreateRoleBinding(arg0 context.Context, arg1 *v1.RoleBinding) error
- func (m *MockRBACStore) DeleteRole(arg0 context.Context, arg1 *v1.Reference) error
- func (m *MockRBACStore) DeleteRoleBinding(arg0 context.Context, arg1 *v1.Reference) error
- func (m *MockRBACStore) EXPECT() *MockRBACStoreMockRecorder
- func (m *MockRBACStore) GetRole(arg0 context.Context, arg1 *v1.Reference) (*v1.Role, error)
- func (m *MockRBACStore) GetRoleBinding(arg0 context.Context, arg1 *v1.Reference) (*v1.RoleBinding, error)
- func (m *MockRBACStore) ListRoleBindings(arg0 context.Context) (*v1.RoleBindingList, error)
- func (m *MockRBACStore) ListRoles(arg0 context.Context) (*v1.RoleList, error)
- func (m *MockRBACStore) UpdateRole(ctx context.Context, ref *v1.Reference, mutator storage.RoleMutator) (*v1.Role, error)
- func (m *MockRBACStore) UpdateRoleBinding(ctx context.Context, ref *v1.Reference, mutator storage.RoleBindingMutator) (*v1.RoleBinding, error)
- type MockRBACStoreMockRecorder
- func (mr *MockRBACStoreMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) CreateRoleBinding(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) DeleteRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) DeleteRoleBinding(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) GetRoleBinding(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) ListRoleBindings(arg0 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) ListRoles(arg0 interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) UpdateRole(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockRBACStoreMockRecorder) UpdateRoleBinding(ctx, ref, mutator interface{}) *gomock.Call
- type MockSubjectAccessCapableStore
- func (m *MockSubjectAccessCapableStore) EXPECT() *MockSubjectAccessCapableStoreMockRecorder
- func (m *MockSubjectAccessCapableStore) GetRole(ctx context.Context, ref *v1.Reference) (*v1.Role, error)
- func (m *MockSubjectAccessCapableStore) ListClusters(ctx context.Context, matchLabels *v1.LabelSelector, ...) (*v1.ClusterList, error)
- func (m *MockSubjectAccessCapableStore) ListRoleBindings(ctx context.Context) (*v1.RoleBindingList, error)
- type MockSubjectAccessCapableStoreMockRecorder
- func (mr *MockSubjectAccessCapableStoreMockRecorder) GetRole(ctx, ref interface{}) *gomock.Call
- func (mr *MockSubjectAccessCapableStoreMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call
- func (mr *MockSubjectAccessCapableStoreMockRecorder) ListRoleBindings(ctx interface{}) *gomock.Call
- type MockTokenStore
- func (m *MockTokenStore) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*v1.BootstrapToken, error)
- func (m *MockTokenStore) DeleteToken(ctx context.Context, ref *v1.Reference) error
- func (m *MockTokenStore) EXPECT() *MockTokenStoreMockRecorder
- func (m *MockTokenStore) GetToken(ctx context.Context, ref *v1.Reference) (*v1.BootstrapToken, error)
- func (m *MockTokenStore) ListTokens(ctx context.Context) ([]*v1.BootstrapToken, error)
- func (m *MockTokenStore) UpdateToken(ctx context.Context, ref *v1.Reference, mutator storage.TokenMutator) (*v1.BootstrapToken, error)
- type MockTokenStoreMockRecorder
- func (mr *MockTokenStoreMockRecorder) CreateToken(ctx, ttl interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) DeleteToken(ctx, ref interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) GetToken(ctx, ref interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) ListTokens(ctx interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) UpdateToken(ctx, ref, mutator interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var (
ErrContext_TestKeyringStore_Get = context.WithValue(context.Background(), errContextValue, "error")
)
Functions ¶
func InjectStorageError ¶ added in v0.9.2
func InjectedStorageError ¶ added in v0.9.2
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 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 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
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 ¶
CreateCluster mocks base method.
func (*MockBackend) CreateRole ¶
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 ¶
DeleteCluster mocks base method.
func (*MockBackend) DeleteRole ¶
DeleteRole mocks base method.
func (*MockBackend) DeleteRoleBinding ¶
DeleteRoleBinding mocks base method.
func (*MockBackend) DeleteToken ¶
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 ¶
GetCluster 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) 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 ¶
CreateCluster mocks base method.
func (*MockClusterStore) DeleteCluster ¶
DeleteCluster mocks base method.
func (*MockClusterStore) EXPECT ¶
func (m *MockClusterStore) EXPECT() *MockClusterStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterStore) GetCluster ¶
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
func (m *MockGrpcTtlCache[T]) EXPECT() *MockGrpcTtlCacheMockRecorder[T]
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.
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
func (m *MockHttpTtlCache[T]) EXPECT() *MockHttpTtlCacheMockRecorder[T]
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 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 ¶
func (m *MockKeyValueStoreBroker) EXPECT() *MockKeyValueStoreBrokerMockRecorder
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) error
Delete mocks base method.
func (*MockKeyValueStoreT[T]) EXPECT ¶ added in v0.6.0
func (m *MockKeyValueStoreT[T]) EXPECT() *MockKeyValueStoreTMockRecorder[T]
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) (T, error)
Get mocks base method.
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{}) *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{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockKeyValueStoreTMockRecorder[T]) ListKeys ¶ added in v0.6.0
func (mr *MockKeyValueStoreTMockRecorder[T]) ListKeys(ctx, prefix 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{}) *gomock.Call
Put indicates an expected call of Put.
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 ¶
func (m *MockKeyringStore) EXPECT() *MockKeyringStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockKeyringStoreBroker) EXPECT() *MockKeyringStoreBrokerMockRecorder
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 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 ¶
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 ¶
DeleteRole mocks base method.
func (*MockRBACStore) DeleteRoleBinding ¶
DeleteRoleBinding mocks base method.
func (*MockRBACStore) EXPECT ¶
func (m *MockRBACStore) EXPECT() *MockRBACStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) 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 ¶
func (m *MockSubjectAccessCapableStore) EXPECT() *MockSubjectAccessCapableStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubjectAccessCapableStore) GetRole ¶
func (m *MockSubjectAccessCapableStore) GetRole(ctx context.Context, ref *v1.Reference) (*v1.Role, error)
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 ¶
func (m *MockSubjectAccessCapableStore) ListRoleBindings(ctx context.Context) (*v1.RoleBindingList, error)
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 ¶
func (m *MockTokenStore) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*v1.BootstrapToken, error)
CreateToken mocks base method.
func (*MockTokenStore) DeleteToken ¶
DeleteToken mocks base method.
func (*MockTokenStore) EXPECT ¶
func (m *MockTokenStore) EXPECT() *MockTokenStoreMockRecorder
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.