mocks

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVersionClient added in v1.9.0

type MockVersionClient struct {
	mock.Mock
}

MockVersionClient is an autogenerated mock type for the VersionClient type

func NewMockVersionClient added in v1.9.0

func NewMockVersionClient(t mockConstructorTestingTNewMockVersionClient) *MockVersionClient

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

func (*MockVersionClient) LatestVersion added in v1.9.0

func (_m *MockVersionClient) LatestVersion() (*model.AgentVersion, error)

LatestVersion provides a mock function with given fields:

func (*MockVersionClient) Version added in v1.9.0

func (_m *MockVersionClient) Version(version string) (*model.AgentVersion, error)

Version provides a mock function with given fields: version

func (*MockVersionClient) Versions added in v1.9.0

func (_m *MockVersionClient) Versions() ([]*model.AgentVersion, error)

Versions provides a mock function with given fields:

type MockVersions added in v1.9.0

type MockVersions struct {
	mock.Mock
}

MockVersions is an autogenerated mock type for the Versions type

func NewMockVersions added in v1.9.0

func NewMockVersions(t mockConstructorTestingTNewMockVersions) *MockVersions

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

func (*MockVersions) LatestVersion added in v1.9.0

func (_m *MockVersions) LatestVersion(ctx context.Context) (*model.AgentVersion, error)

LatestVersion provides a mock function with given fields: ctx

func (*MockVersions) LatestVersionString added in v1.9.0

func (_m *MockVersions) LatestVersionString(ctx context.Context) string

LatestVersionString provides a mock function with given fields: ctx

func (*MockVersions) SyncVersion added in v1.9.0

func (_m *MockVersions) SyncVersion(version string) (*model.AgentVersion, error)

SyncVersion provides a mock function with given fields: version

func (*MockVersions) SyncVersions added in v1.9.0

func (_m *MockVersions) SyncVersions() ([]*model.AgentVersion, error)

SyncVersions provides a mock function with given fields:

func (*MockVersions) Version added in v1.9.0

func (_m *MockVersions) Version(ctx context.Context, version string) (*model.AgentVersion, error)

Version provides a mock function with given fields: ctx, version

Jump to

Keyboard shortcuts

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