Documentation ¶
Overview ¶
Package mockcacheclient is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) ApplyPrune(ctx context.Context, name, id string) error
- func (m *MockClient) Clone(ctx context.Context, name, clone string) error
- func (m *MockClient) Close() error
- func (m *MockClient) Commit(ctx context.Context, name, candidate string) error
- func (m *MockClient) Create(ctx context.Context, name string, ephemeral, cached bool) error
- func (m *MockClient) CreateCandidate(ctx context.Context, name, candidate, owner string, priority int32) error
- func (m *MockClient) CreatePruneID(ctx context.Context, name string, force bool) (string, error)
- func (m *MockClient) Delete(ctx context.Context, name string) error
- func (m *MockClient) DeleteCandidate(ctx context.Context, name, candidate string) error
- func (m *MockClient) Discard(ctx context.Context, name, candidate string) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Exists(ctx context.Context, name string) (bool, error)
- func (m *MockClient) GetCandidates(ctx context.Context, name string) ([]*cache.CandidateDetails, error)
- func (m *MockClient) GetChanges(ctx context.Context, name, candidate string) ([]*cache0.Change, error)
- func (m *MockClient) GetKeys(ctx context.Context, name string, store cachepb.Store) (chan *cache0.Update, error)
- func (m *MockClient) HasCandidate(ctx context.Context, name, candidate string) (bool, error)
- func (m *MockClient) List(ctx context.Context) ([]string, error)
- func (m *MockClient) Modify(ctx context.Context, name string, opts *cache0.Opts, dels [][]string, ...) error
- func (m *MockClient) NewUpdate(arg0 *schema_server.Update) (*cache0.Update, error)
- func (m *MockClient) Read(ctx context.Context, name string, opts *cache0.Opts, paths [][]string, ...) []*cache0.Update
- func (m *MockClient) ReadCh(ctx context.Context, name string, opts *cache0.Opts, paths [][]string, ...) chan *cache0.Update
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) ApplyPrune(ctx, name, id any) *gomock.Call
- func (mr *MockClientMockRecorder) Clone(ctx, name, clone any) *gomock.Call
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) Commit(ctx, name, candidate any) *gomock.Call
- func (mr *MockClientMockRecorder) Create(ctx, name, ephemeral, cached any) *gomock.Call
- func (mr *MockClientMockRecorder) CreateCandidate(ctx, name, candidate, owner, priority any) *gomock.Call
- func (mr *MockClientMockRecorder) CreatePruneID(ctx, name, force any) *gomock.Call
- func (mr *MockClientMockRecorder) Delete(ctx, name any) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteCandidate(ctx, name, candidate any) *gomock.Call
- func (mr *MockClientMockRecorder) Discard(ctx, name, candidate any) *gomock.Call
- func (mr *MockClientMockRecorder) Exists(ctx, name any) *gomock.Call
- func (mr *MockClientMockRecorder) GetCandidates(ctx, name any) *gomock.Call
- func (mr *MockClientMockRecorder) GetChanges(ctx, name, candidate any) *gomock.Call
- func (mr *MockClientMockRecorder) GetKeys(ctx, name, store any) *gomock.Call
- func (mr *MockClientMockRecorder) HasCandidate(ctx, name, candidate any) *gomock.Call
- func (mr *MockClientMockRecorder) List(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) Modify(ctx, name, opts, dels, upds any) *gomock.Call
- func (mr *MockClientMockRecorder) NewUpdate(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) Read(ctx, name, opts, paths, period any) *gomock.Call
- func (mr *MockClientMockRecorder) ReadCh(ctx, name, opts, paths, period any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) ApplyPrune ¶
func (m *MockClient) ApplyPrune(ctx context.Context, name, id string) error
ApplyPrune mocks base method.
func (*MockClient) Clone ¶
func (m *MockClient) Clone(ctx context.Context, name, clone string) error
Clone mocks base method.
func (*MockClient) Commit ¶
func (m *MockClient) Commit(ctx context.Context, name, candidate string) error
Commit mocks base method.
func (*MockClient) CreateCandidate ¶
func (m *MockClient) CreateCandidate(ctx context.Context, name, candidate, owner string, priority int32) error
CreateCandidate mocks base method.
func (*MockClient) CreatePruneID ¶
CreatePruneID mocks base method.
func (*MockClient) Delete ¶
func (m *MockClient) Delete(ctx context.Context, name string) error
Delete mocks base method.
func (*MockClient) DeleteCandidate ¶
func (m *MockClient) DeleteCandidate(ctx context.Context, name, candidate string) error
DeleteCandidate mocks base method.
func (*MockClient) Discard ¶
func (m *MockClient) Discard(ctx context.Context, name, candidate string) error
Discard mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetCandidates ¶
func (m *MockClient) GetCandidates(ctx context.Context, name string) ([]*cache.CandidateDetails, error)
GetCandidates mocks base method.
func (*MockClient) GetChanges ¶
func (m *MockClient) GetChanges(ctx context.Context, name, candidate string) ([]*cache0.Change, error)
GetChanges mocks base method.
func (*MockClient) GetKeys ¶
func (m *MockClient) GetKeys(ctx context.Context, name string, store cachepb.Store) (chan *cache0.Update, error)
GetKeys mocks base method.
func (*MockClient) HasCandidate ¶
HasCandidate mocks base method.
func (*MockClient) List ¶
func (m *MockClient) List(ctx context.Context) ([]string, error)
List mocks base method.
func (*MockClient) Modify ¶
func (m *MockClient) Modify(ctx context.Context, name string, opts *cache0.Opts, dels [][]string, upds []*cache0.Update) error
Modify mocks base method.
func (*MockClient) NewUpdate ¶
func (m *MockClient) NewUpdate(arg0 *schema_server.Update) (*cache0.Update, error)
NewUpdate mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) ApplyPrune ¶
func (mr *MockClientMockRecorder) ApplyPrune(ctx, name, id any) *gomock.Call
ApplyPrune indicates an expected call of ApplyPrune.
func (*MockClientMockRecorder) Clone ¶
func (mr *MockClientMockRecorder) Clone(ctx, name, clone any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockClientMockRecorder) Commit ¶
func (mr *MockClientMockRecorder) Commit(ctx, name, candidate any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockClientMockRecorder) Create ¶
func (mr *MockClientMockRecorder) Create(ctx, name, ephemeral, cached any) *gomock.Call
Create indicates an expected call of Create.
func (*MockClientMockRecorder) CreateCandidate ¶
func (mr *MockClientMockRecorder) CreateCandidate(ctx, name, candidate, owner, priority any) *gomock.Call
CreateCandidate indicates an expected call of CreateCandidate.
func (*MockClientMockRecorder) CreatePruneID ¶
func (mr *MockClientMockRecorder) CreatePruneID(ctx, name, force any) *gomock.Call
CreatePruneID indicates an expected call of CreatePruneID.
func (*MockClientMockRecorder) Delete ¶
func (mr *MockClientMockRecorder) Delete(ctx, name any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockClientMockRecorder) DeleteCandidate ¶
func (mr *MockClientMockRecorder) DeleteCandidate(ctx, name, candidate any) *gomock.Call
DeleteCandidate indicates an expected call of DeleteCandidate.
func (*MockClientMockRecorder) Discard ¶
func (mr *MockClientMockRecorder) Discard(ctx, name, candidate any) *gomock.Call
Discard indicates an expected call of Discard.
func (*MockClientMockRecorder) Exists ¶
func (mr *MockClientMockRecorder) Exists(ctx, name any) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockClientMockRecorder) GetCandidates ¶
func (mr *MockClientMockRecorder) GetCandidates(ctx, name any) *gomock.Call
GetCandidates indicates an expected call of GetCandidates.
func (*MockClientMockRecorder) GetChanges ¶
func (mr *MockClientMockRecorder) GetChanges(ctx, name, candidate any) *gomock.Call
GetChanges indicates an expected call of GetChanges.
func (*MockClientMockRecorder) GetKeys ¶
func (mr *MockClientMockRecorder) GetKeys(ctx, name, store any) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*MockClientMockRecorder) HasCandidate ¶
func (mr *MockClientMockRecorder) HasCandidate(ctx, name, candidate any) *gomock.Call
HasCandidate indicates an expected call of HasCandidate.
func (*MockClientMockRecorder) List ¶
func (mr *MockClientMockRecorder) List(ctx any) *gomock.Call
List indicates an expected call of List.
func (*MockClientMockRecorder) Modify ¶
func (mr *MockClientMockRecorder) Modify(ctx, name, opts, dels, upds any) *gomock.Call
Modify indicates an expected call of Modify.
func (*MockClientMockRecorder) NewUpdate ¶
func (mr *MockClientMockRecorder) NewUpdate(arg0 any) *gomock.Call
NewUpdate indicates an expected call of NewUpdate.