mocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Versions

type Versions struct {
	mock.Mock
}

Versions is an autogenerated mock type for the Versions type

func NewVersions

func NewVersions(t testing.TB) *Versions

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

func (*Versions) LatestVersion

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

LatestVersion provides a mock function with given fields:

func (*Versions) LatestVersionString

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

LatestVersionString provides a mock function with given fields:

func (*Versions) SyncVersion

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

SyncVersion provides a mock function with given fields: version

func (*Versions) SyncVersions

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

SyncVersions provides a mock function with given fields:

func (*Versions) Version

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

Version provides a mock function with given fields: version

Jump to

Keyboard shortcuts

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