Documentation ¶
Index ¶
- type MockVersionClient
- type MockVersions
- func (_m *MockVersions) LatestVersion(ctx context.Context) (*model.AgentVersion, error)
- func (_m *MockVersions) LatestVersionString(ctx context.Context) string
- func (_m *MockVersions) SyncVersion(version string) (*model.AgentVersion, error)
- func (_m *MockVersions) SyncVersions() ([]*model.AgentVersion, error)
- func (_m *MockVersions) Version(ctx context.Context, version string) (*model.AgentVersion, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockVersionClient ¶ added in v1.9.0
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
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