mockcacheclient

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mockcacheclient is a generated GoMock package.

Index

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

func (m *MockClient) Close() error

Close mocks base method.

func (*MockClient) Commit

func (m *MockClient) Commit(ctx context.Context, name, candidate string) error

Commit mocks base method.

func (*MockClient) Create

func (m *MockClient) Create(ctx context.Context, name string, ephemeral, cached bool) error

Create 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

func (m *MockClient) CreatePruneID(ctx context.Context, name string, force bool) (string, error)

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

func (m *MockClient) Exists(ctx context.Context, name string) (bool, error)

Exists mocks base method.

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

func (m *MockClient) HasCandidate(ctx context.Context, name, candidate string) (bool, error)

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.

func (*MockClient) Read

func (m *MockClient) Read(ctx context.Context, name string, opts *cache0.Opts, paths [][]string, period time.Duration) []*cache0.Update

Read mocks base method.

func (*MockClient) ReadCh

func (m *MockClient) ReadCh(ctx context.Context, name string, opts *cache0.Opts, paths [][]string, period time.Duration) chan *cache0.Update

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

func (*MockClientMockRecorder) Read

func (mr *MockClientMockRecorder) Read(ctx, name, opts, paths, period any) *gomock.Call

Read indicates an expected call of Read.

func (*MockClientMockRecorder) ReadCh

func (mr *MockClientMockRecorder) ReadCh(ctx, name, opts, paths, period any) *gomock.Call

ReadCh indicates an expected call of ReadCh.

Jump to

Keyboard shortcuts

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