Documentation ¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockClusterStore
- func (m *MockClusterStore) CreateCluster(ctx context.Context, cluster *core.Cluster) error
- func (m *MockClusterStore) DeleteCluster(ctx context.Context, ref *core.Reference) error
- func (m *MockClusterStore) EXPECT() *MockClusterStoreMockRecorder
- func (m *MockClusterStore) GetCluster(ctx context.Context, ref *core.Reference) (*core.Cluster, error)
- func (m *MockClusterStore) KeyringStore(ctx context.Context, ref *core.Reference) (storage.KeyringStore, error)
- func (m *MockClusterStore) ListClusters(ctx context.Context, matchLabels *core.LabelSelector, ...) (*core.ClusterList, error)
- func (m *MockClusterStore) UpdateCluster(ctx context.Context, cluster *core.Cluster) (*core.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) KeyringStore(ctx, ref interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) ListClusters(ctx, matchLabels, matchOptions interface{}) *gomock.Call
- func (mr *MockClusterStoreMockRecorder) UpdateCluster(ctx, cluster interface{}) *gomock.Call
- type MockKeyringStore
- type MockKeyringStoreMockRecorder
- type MockRBACStore
- func (m *MockRBACStore) CreateRole(arg0 context.Context, arg1 *core.Role) error
- func (m *MockRBACStore) CreateRoleBinding(arg0 context.Context, arg1 *core.RoleBinding) error
- func (m *MockRBACStore) DeleteRole(arg0 context.Context, arg1 *core.Reference) error
- func (m *MockRBACStore) DeleteRoleBinding(arg0 context.Context, arg1 *core.Reference) error
- func (m *MockRBACStore) EXPECT() *MockRBACStoreMockRecorder
- func (m *MockRBACStore) GetRole(arg0 context.Context, arg1 *core.Reference) (*core.Role, error)
- func (m *MockRBACStore) GetRoleBinding(arg0 context.Context, arg1 *core.Reference) (*core.RoleBinding, error)
- func (m *MockRBACStore) ListRoleBindings(arg0 context.Context) (*core.RoleBindingList, error)
- func (m *MockRBACStore) ListRoles(arg0 context.Context) (*core.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 MockTokenStore
- func (m *MockTokenStore) CreateToken(ctx context.Context, ttl time.Duration, labels map[string]string) (*core.BootstrapToken, error)
- func (m *MockTokenStore) DeleteToken(ctx context.Context, ref *core.Reference) error
- func (m *MockTokenStore) EXPECT() *MockTokenStoreMockRecorder
- func (m *MockTokenStore) GetToken(ctx context.Context, ref *core.Reference) (*core.BootstrapToken, error)
- func (m *MockTokenStore) IncrementUsageCount(ctx context.Context, ref *core.Reference) error
- func (m *MockTokenStore) ListTokens(ctx context.Context) ([]*core.BootstrapToken, error)
- type MockTokenStoreMockRecorder
- func (mr *MockTokenStoreMockRecorder) CreateToken(ctx, ttl, labels interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) DeleteToken(ctx, ref interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) GetToken(ctx, ref interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) IncrementUsageCount(ctx, ref interface{}) *gomock.Call
- func (mr *MockTokenStoreMockRecorder) ListTokens(ctx interface{}) *gomock.Call
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 ¶
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 ¶
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 ¶
func (m *MockKeyringStore) EXPECT() *MockKeyringStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 *core.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 *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.
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 ¶
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 *core.Reference) (*core.BootstrapToken, error)
GetToken mocks base method.
func (*MockTokenStore) IncrementUsageCount ¶
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.