mock_storage

package
v0.9.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

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

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

CreateCluster mocks base method.

func (*MockBackend) CreateRole

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

CreateRole mocks base method.

func (*MockBackend) CreateRoleBinding

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

CreateRoleBinding mocks base method.

func (*MockBackend) CreateToken

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

CreateToken mocks base method.

func (*MockBackend) DeleteCluster

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

DeleteCluster mocks base method.

func (*MockBackend) DeleteRole

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

DeleteRole mocks base method.

func (*MockBackend) DeleteRoleBinding

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

DeleteRoleBinding mocks base method.

func (*MockBackend) DeleteToken

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

DeleteToken mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) GetCluster

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

GetCluster mocks base method.

func (*MockBackend) GetRole

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

GetRole mocks base method.

func (*MockBackend) GetRoleBinding

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

GetRoleBinding mocks base method.

func (*MockBackend) GetToken

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

GetToken mocks base method.

func (*MockBackend) KeyValueStore

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

KeyValueStore mocks base method.

func (*MockBackend) KeyringStore

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

KeyringStore mocks base method.

func (*MockBackend) ListClusters

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

ListClusters mocks base method.

func (*MockBackend) ListRoleBindings

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

ListRoleBindings mocks base method.

func (*MockBackend) ListRoles

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

ListRoles mocks base method.

func (*MockBackend) ListTokens

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

ListTokens mocks base method.

func (*MockBackend) UpdateCluster

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

UpdateCluster mocks base method.

func (*MockBackend) 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) UpdateToken

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

UpdateToken indicates an expected call of UpdateToken.

func (*MockBackendMockRecorder) WatchCluster added in v0.6.0

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

WatchCluster indicates an expected call of WatchCluster.

func (*MockBackendMockRecorder) WatchClusters added in v0.6.0

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

WatchClusters indicates an expected call of WatchClusters.

type MockClusterStore

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

MockClusterStore is a mock of ClusterStore interface.

func NewMockClusterStore

func NewMockClusterStore(ctrl *gomock.Controller) *MockClusterStore

NewMockClusterStore creates a new mock instance.

func (*MockClusterStore) CreateCluster

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

CreateCluster mocks base method.

func (*MockClusterStore) DeleteCluster

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

DeleteCluster mocks base method.

func (*MockClusterStore) EXPECT

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

func (*MockClusterStore) GetCluster

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

GetCluster mocks base method.

func (*MockClusterStore) ListClusters

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

ListClusters mocks base method.

func (*MockClusterStore) UpdateCluster

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

UpdateCluster mocks base method.

func (*MockClusterStore) WatchCluster added in v0.6.0

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

WatchCluster mocks base method.

func (*MockClusterStore) WatchClusters added in v0.6.0

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

WatchClusters mocks base method.

type MockClusterStoreMockRecorder

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

MockClusterStoreMockRecorder is the mock recorder for MockClusterStore.

func (*MockClusterStoreMockRecorder) CreateCluster

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

CreateCluster indicates an expected call of CreateCluster.

func (*MockClusterStoreMockRecorder) DeleteCluster

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

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockClusterStoreMockRecorder) GetCluster

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

GetCluster indicates an expected call of GetCluster.

func (*MockClusterStoreMockRecorder) ListClusters

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

ListClusters indicates an expected call of ListClusters.

func (*MockClusterStoreMockRecorder) UpdateCluster

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

UpdateCluster indicates an expected call of UpdateCluster.

func (*MockClusterStoreMockRecorder) WatchCluster added in v0.6.0

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

WatchCluster indicates an expected call of WatchCluster.

func (*MockClusterStoreMockRecorder) WatchClusters added in v0.6.0

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

WatchClusters indicates an expected call of WatchClusters.

type MockHttpTtlCache added in v0.9.0

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

MockHttpTtlCache is a mock of HttpTtlCache interface.

func NewMockHttpTtlCache added in v0.9.0

func NewMockHttpTtlCache(ctrl *gomock.Controller) *MockHttpTtlCache

NewMockHttpTtlCache creates a new mock instance.

func (*MockHttpTtlCache) Delete added in v0.9.0

func (m *MockHttpTtlCache) Delete(key string)

Delete mocks base method.

func (*MockHttpTtlCache) EXPECT added in v0.9.0

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

func (*MockHttpTtlCache) Get added in v0.9.0

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

Get mocks base method.

func (*MockHttpTtlCache) MaxAge added in v0.9.0

func (m *MockHttpTtlCache) MaxAge() time.Duration

MaxAge mocks base method.

func (*MockHttpTtlCache) Set added in v0.9.0

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

Set mocks base method.

type MockHttpTtlCacheMockRecorder added in v0.9.0

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

MockHttpTtlCacheMockRecorder is the mock recorder for MockHttpTtlCache.

func (*MockHttpTtlCacheMockRecorder) Delete added in v0.9.0

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

Delete indicates an expected call of Delete.

func (*MockHttpTtlCacheMockRecorder) Get added in v0.9.0

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

Get indicates an expected call of Get.

func (*MockHttpTtlCacheMockRecorder) MaxAge added in v0.9.0

MaxAge indicates an expected call of MaxAge.

func (*MockHttpTtlCacheMockRecorder) Set added in v0.9.0

func (mr *MockHttpTtlCacheMockRecorder) 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

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

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.

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

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

ListKeys mocks base method.

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

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

Put 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

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

func (*MockKeyringStore) Get

Get mocks base method.

func (*MockKeyringStore) Put

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

Put mocks base method.

type MockKeyringStoreBroker

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

MockKeyringStoreBroker is a mock of KeyringStoreBroker interface.

func NewMockKeyringStoreBroker

func NewMockKeyringStoreBroker(ctrl *gomock.Controller) *MockKeyringStoreBroker

NewMockKeyringStoreBroker creates a new mock instance.

func (*MockKeyringStoreBroker) EXPECT

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

func (*MockKeyringStoreBroker) KeyringStore

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

KeyringStore mocks base method.

type MockKeyringStoreBrokerMockRecorder

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

MockKeyringStoreBrokerMockRecorder is the mock recorder for MockKeyringStoreBroker.

func (*MockKeyringStoreBrokerMockRecorder) KeyringStore

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

KeyringStore indicates an expected call of KeyringStore.

type MockKeyringStoreMockRecorder

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

MockKeyringStoreMockRecorder is the mock recorder for MockKeyringStore.

func (*MockKeyringStoreMockRecorder) Delete added in v0.6.0

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

Delete indicates an expected call of Delete.

func (*MockKeyringStoreMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockKeyringStoreMockRecorder) Put

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

Put indicates an expected call of Put.

type MockRBACStore

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

MockRBACStore is a mock of RBACStore interface.

func NewMockRBACStore

func NewMockRBACStore(ctrl *gomock.Controller) *MockRBACStore

NewMockRBACStore creates a new mock instance.

func (*MockRBACStore) CreateRole

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

CreateRole mocks base method.

func (*MockRBACStore) CreateRoleBinding

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

CreateRoleBinding mocks base method.

func (*MockRBACStore) DeleteRole

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

DeleteRole mocks base method.

func (*MockRBACStore) DeleteRoleBinding

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

DeleteRoleBinding mocks base method.

func (*MockRBACStore) EXPECT

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

func (*MockRBACStore) GetRole

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

GetRole mocks base method.

func (*MockRBACStore) GetRoleBinding

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

GetRoleBinding mocks base method.

func (*MockRBACStore) ListRoleBindings

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

ListRoleBindings mocks base method.

func (*MockRBACStore) ListRoles

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

ListRoles mocks base method.

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

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

func (*MockSubjectAccessCapableStore) GetRole

GetRole mocks base method.

func (*MockSubjectAccessCapableStore) ListClusters

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

ListClusters mocks base method.

func (*MockSubjectAccessCapableStore) ListRoleBindings

ListRoleBindings mocks base method.

type MockSubjectAccessCapableStoreMockRecorder

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

MockSubjectAccessCapableStoreMockRecorder is the mock recorder for MockSubjectAccessCapableStore.

func (*MockSubjectAccessCapableStoreMockRecorder) GetRole

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

GetRole indicates an expected call of GetRole.

func (*MockSubjectAccessCapableStoreMockRecorder) ListClusters

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

ListClusters indicates an expected call of ListClusters.

func (*MockSubjectAccessCapableStoreMockRecorder) ListRoleBindings

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

ListRoleBindings indicates an expected call of ListRoleBindings.

type MockTokenStore

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

MockTokenStore is a mock of TokenStore interface.

func NewMockTokenStore

func NewMockTokenStore(ctrl *gomock.Controller) *MockTokenStore

NewMockTokenStore creates a new mock instance.

func (*MockTokenStore) CreateToken

CreateToken mocks base method.

func (*MockTokenStore) DeleteToken

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

DeleteToken mocks base method.

func (*MockTokenStore) EXPECT

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

func (*MockTokenStore) GetToken

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

GetToken mocks base method.

func (*MockTokenStore) ListTokens

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

ListTokens mocks base method.

func (*MockTokenStore) UpdateToken

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

UpdateToken mocks base method.

type MockTokenStoreMockRecorder

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

MockTokenStoreMockRecorder is the mock recorder for MockTokenStore.

func (*MockTokenStoreMockRecorder) CreateToken

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

CreateToken indicates an expected call of CreateToken.

func (*MockTokenStoreMockRecorder) DeleteToken

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

DeleteToken indicates an expected call of DeleteToken.

func (*MockTokenStoreMockRecorder) GetToken

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

GetToken indicates an expected call of GetToken.

func (*MockTokenStoreMockRecorder) ListTokens

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

ListTokens indicates an expected call of ListTokens.

func (*MockTokenStoreMockRecorder) UpdateToken

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

UpdateToken indicates an expected call of UpdateToken.

Jump to

Keyboard shortcuts

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