mock_storage

package
v0.0.0-...-c8afd98 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 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 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 *core.Cluster) error

CreateCluster mocks base method.

func (*MockClusterStore) DeleteCluster

func (m *MockClusterStore) DeleteCluster(ctx context.Context, ref *core.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 *core.Reference) (*core.Cluster, error)

GetCluster mocks base method.

func (*MockClusterStore) KeyringStore

func (m *MockClusterStore) KeyringStore(ctx context.Context, ref *core.Reference) (storage.KeyringStore, error)

KeyringStore mocks base method.

func (*MockClusterStore) ListClusters

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

ListClusters mocks base method.

func (*MockClusterStore) UpdateCluster

func (m *MockClusterStore) UpdateCluster(ctx context.Context, cluster *core.Cluster) (*core.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) KeyringStore

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

KeyringStore indicates an expected call of KeyringStore.

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, cluster interface{}) *gomock.Call

UpdateCluster indicates an expected call of UpdateCluster.

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

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 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

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

CreateRole mocks base method.

func (*MockRBACStore) CreateRoleBinding

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

CreateRoleBinding mocks base method.

func (*MockRBACStore) DeleteRole

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

DeleteRole mocks base method.

func (*MockRBACStore) DeleteRoleBinding

func (m *MockRBACStore) DeleteRoleBinding(arg0 context.Context, arg1 *core.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 *core.Reference) (*core.Role, error)

GetRole mocks base method.

func (*MockRBACStore) GetRoleBinding

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

GetRoleBinding mocks base method.

func (*MockRBACStore) ListRoleBindings

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

ListRoleBindings mocks base method.

func (*MockRBACStore) ListRoles

func (m *MockRBACStore) ListRoles(arg0 context.Context) (*core.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 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, labels map[string]string) (*core.BootstrapToken, error)

CreateToken mocks base method.

func (*MockTokenStore) DeleteToken

func (m *MockTokenStore) DeleteToken(ctx context.Context, ref *core.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 *core.Reference) (*core.BootstrapToken, error)

GetToken mocks base method.

func (*MockTokenStore) IncrementUsageCount

func (m *MockTokenStore) IncrementUsageCount(ctx context.Context, ref *core.Reference) error

IncrementUsageCount mocks base method.

func (*MockTokenStore) ListTokens

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

ListTokens 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, labels 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) IncrementUsageCount

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

IncrementUsageCount indicates an expected call of IncrementUsageCount.

func (*MockTokenStoreMockRecorder) ListTokens

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

ListTokens indicates an expected call of ListTokens.

Jump to

Keyboard shortcuts

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