mocks

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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

type MockVersionClient struct {
	mock.Mock
}

MockVersionClient is an autogenerated mock type for the VersionClient type

func NewMockVersionClient

func NewMockVersionClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*MockVersionClient) LatestVersion

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

LatestVersion provides a mock function with given fields:

func (*MockVersionClient) Version

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

Version provides a mock function with given fields: version

func (*MockVersionClient) Versions

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

Versions provides a mock function with given fields:

type MockVersions

type MockVersions struct {
	mock.Mock
}

MockVersions is an autogenerated mock type for the Versions type

func NewMockVersions

func NewMockVersions(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*MockVersions) LatestVersion

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

LatestVersion provides a mock function with given fields: ctx

func (*MockVersions) LatestVersionString

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

LatestVersionString provides a mock function with given fields: ctx

func (*MockVersions) SyncVersion

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

SyncVersion provides a mock function with given fields: version

func (*MockVersions) SyncVersions

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

SyncVersions provides a mock function with given fields:

func (*MockVersions) Version

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