Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockAlertingStore
- func (m *MockAlertingStore) CreateAlertLog(ctx context.Context, log v1.AlertLog) error
- func (m *MockAlertingStore) DeleteAlertLog(ctx context.Context, ref *v1.Reference) error
- func (m *MockAlertingStore) EXPECT() *MockAlertingStoreMockRecorder
- func (m *MockAlertingStore) GetAlertLog(ctx context.Context, ref *v1.Reference) (*v1.AlertLog, error)
- func (m *MockAlertingStore) ListAlertLogs(ctx context.Context, opts ...storage.AlertFilterOptions) (*v1.AlertLogList, error)
- func (m *MockAlertingStore) UpdateAlertLog(ctx context.Context, ref *v1.Reference, newLog v1.AlertLog) error
- type MockAlertingStoreMockRecorder
- func (mr *MockAlertingStoreMockRecorder) CreateAlertLog(ctx, log interface{}) *gomock.Call
- func (mr *MockAlertingStoreMockRecorder) DeleteAlertLog(ctx, ref interface{}) *gomock.Call
- func (mr *MockAlertingStoreMockRecorder) GetAlertLog(ctx, ref interface{}) *gomock.Call
- func (mr *MockAlertingStoreMockRecorder) ListAlertLogs(ctx interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAlertingStoreMockRecorder) UpdateAlertLog(ctx, ref, newLog interface{}) *gomock.Call
- 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) 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)
- 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) UpdateToken(ctx, ref, mutator interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) WatchCluster(ctx, cluster 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)
- 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
- 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)
- 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
- 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAlertingStore ¶ added in v0.5.4
type MockAlertingStore struct {
// contains filtered or unexported fields
}
MockAlertingStore is a mock of AlertingStore interface.
func NewMockAlertingStore ¶ added in v0.5.4
func NewMockAlertingStore(ctrl *gomock.Controller) *MockAlertingStore
NewMockAlertingStore creates a new mock instance.
func (*MockAlertingStore) CreateAlertLog ¶ added in v0.5.4
CreateAlertLog mocks base method.
func (*MockAlertingStore) DeleteAlertLog ¶ added in v0.5.4
DeleteAlertLog mocks base method.
func (*MockAlertingStore) EXPECT ¶ added in v0.5.4
func (m *MockAlertingStore) EXPECT() *MockAlertingStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAlertingStore) GetAlertLog ¶ added in v0.5.4
func (m *MockAlertingStore) GetAlertLog(ctx context.Context, ref *v1.Reference) (*v1.AlertLog, error)
GetAlertLog mocks base method.
func (*MockAlertingStore) ListAlertLogs ¶ added in v0.5.4
func (m *MockAlertingStore) ListAlertLogs(ctx context.Context, opts ...storage.AlertFilterOptions) (*v1.AlertLogList, error)
ListAlertLogs mocks base method.
func (*MockAlertingStore) UpdateAlertLog ¶ added in v0.5.4
func (m *MockAlertingStore) UpdateAlertLog(ctx context.Context, ref *v1.Reference, newLog v1.AlertLog) error
UpdateAlertLog mocks base method.
type MockAlertingStoreMockRecorder ¶ added in v0.5.4
type MockAlertingStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockAlertingStoreMockRecorder is the mock recorder for MockAlertingStore.
func (*MockAlertingStoreMockRecorder) CreateAlertLog ¶ added in v0.5.4
func (mr *MockAlertingStoreMockRecorder) CreateAlertLog(ctx, log interface{}) *gomock.Call
CreateAlertLog indicates an expected call of CreateAlertLog.
func (*MockAlertingStoreMockRecorder) DeleteAlertLog ¶ added in v0.5.4
func (mr *MockAlertingStoreMockRecorder) DeleteAlertLog(ctx, ref interface{}) *gomock.Call
DeleteAlertLog indicates an expected call of DeleteAlertLog.
func (*MockAlertingStoreMockRecorder) GetAlertLog ¶ added in v0.5.4
func (mr *MockAlertingStoreMockRecorder) GetAlertLog(ctx, ref interface{}) *gomock.Call
GetAlertLog indicates an expected call of GetAlertLog.
func (*MockAlertingStoreMockRecorder) ListAlertLogs ¶ added in v0.5.4
func (mr *MockAlertingStoreMockRecorder) ListAlertLogs(ctx interface{}, opts ...interface{}) *gomock.Call
ListAlertLogs indicates an expected call of ListAlertLogs.
func (*MockAlertingStoreMockRecorder) UpdateAlertLog ¶ added in v0.5.4
func (mr *MockAlertingStoreMockRecorder) UpdateAlertLog(ctx, ref, newLog interface{}) *gomock.Call
UpdateAlertLog indicates an expected call of UpdateAlertLog.
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) 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.
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) 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.
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.
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.
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.
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.
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.