mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) CommitGeneration

func (_m *Client) CommitGeneration(gen1 *types.Generation, gen2 *types.Generation) error

CommitGeneration provides a mock function with given fields: gen1, gen2

func (*Client) DbWasNewlyCreated

func (_m *Client) DbWasNewlyCreated() bool

DbWasNewlyCreated provides a mock function with given fields:

func (*Client) GenerationInfo

func (_m *Client) GenerationInfo(token types.Token, version types.GenVersion) (*types.Generation, error)

GenerationInfo provides a mock function with given fields: token, version

func (*Client) GenerationsByParent

func (_m *Client) GenerationsByParent(gen *types.Generation) ([]types.Generation, error)

GenerationsByParent provides a mock function with given fields: gen

func (*Client) GetGenerationsByToken

func (_m *Client) GetGenerationsByToken(token types.Token, clusterSize int) ([]types.Generation, error)

GetGenerationsByToken provides a mock function with given fields: token, clusterSize

func (*Client) Init

func (_m *Client) Init() error

Init provides a mock function with given fields:

func (*Client) IsShuttingDown

func (_m *Client) IsShuttingDown() bool

IsShuttingDown provides a mock function with given fields:

func (*Client) LatestGenerations

func (_m *Client) LatestGenerations() ([]types.Generation, error)

LatestGenerations provides a mock function with given fields:

func (*Client) MarkAsShuttingDown

func (_m *Client) MarkAsShuttingDown()

MarkAsShuttingDown provides a mock function with given fields:

func (*Client) Offsets

func (_m *Client) Offsets() ([]types.OffsetStoreKeyValue, error)

Offsets provides a mock function with given fields:

func (*Client) SaveOffset

func (_m *Client) SaveOffset(offsetKv *types.OffsetStoreKeyValue) error

SaveOffset provides a mock function with given fields: offsetKv

Jump to

Keyboard shortcuts

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