Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- 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, error)
- func (m *MockBackend) KeyringStore(namespace string, ref *v1.Reference) (storage.KeyringStore, error)
- 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)
- 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
- 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)
- 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
- type MockKeyValueStore
- func (m *MockKeyValueStore) Delete(ctx context.Context, key string) error
- func (m *MockKeyValueStore) EXPECT() *MockKeyValueStoreMockRecorder
- func (m *MockKeyValueStore) Get(ctx context.Context, key string) ([]byte, error)
- func (m *MockKeyValueStore) ListKeys(ctx context.Context, prefix string) ([]string, error)
- func (m *MockKeyValueStore) Put(ctx context.Context, key string, value []byte) error
- type MockKeyValueStoreBroker
- type MockKeyValueStoreBrokerMockRecorder
- type MockKeyValueStoreMockRecorder
- func (mr *MockKeyValueStoreMockRecorder) Delete(ctx, key interface{}) *gomock.Call
- func (mr *MockKeyValueStoreMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockKeyValueStoreMockRecorder) ListKeys(ctx, prefix interface{}) *gomock.Call
- func (mr *MockKeyValueStoreMockRecorder) 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 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, error)
KeyValueStore mocks base method.
func (*MockBackend) KeyringStore ¶
func (m *MockBackend) KeyringStore(namespace string, ref *v1.Reference) (storage.KeyringStore, error)
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.
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.
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.
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.
type MockKeyValueStore ¶
type MockKeyValueStore struct {
// contains filtered or unexported fields
}
MockKeyValueStore is a mock of KeyValueStore interface.
func NewMockKeyValueStore ¶
func NewMockKeyValueStore(ctrl *gomock.Controller) *MockKeyValueStore
NewMockKeyValueStore creates a new mock instance.
func (*MockKeyValueStore) Delete ¶
func (m *MockKeyValueStore) Delete(ctx context.Context, key string) error
Delete mocks base method.
func (*MockKeyValueStore) EXPECT ¶
func (m *MockKeyValueStore) EXPECT() *MockKeyValueStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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, error)
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 MockKeyValueStoreMockRecorder ¶
type MockKeyValueStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockKeyValueStoreMockRecorder is the mock recorder for MockKeyValueStore.
func (*MockKeyValueStoreMockRecorder) Delete ¶
func (mr *MockKeyValueStoreMockRecorder) Delete(ctx, key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockKeyValueStoreMockRecorder) Get ¶
func (mr *MockKeyValueStoreMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockKeyValueStoreMockRecorder) ListKeys ¶
func (mr *MockKeyValueStoreMockRecorder) ListKeys(ctx, prefix interface{}) *gomock.Call
ListKeys indicates an expected call of ListKeys.
func (*MockKeyValueStoreMockRecorder) Put ¶
func (mr *MockKeyValueStoreMockRecorder) 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) 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, error)
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) 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.