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 ¶
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 ¶
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