mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks holds the generated doubles of the agent group's dependencies, for the methods' tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdmissions

type MockAdmissions struct {
	// contains filtered or unexported fields
}

MockAdmissions is a mock of Admissions interface.

func NewMockAdmissions

func NewMockAdmissions(ctrl *gomock.Controller) *MockAdmissions

NewMockAdmissions creates a new mock instance.

func (*MockAdmissions) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAdmissions) Get

func (m *MockAdmissions) Get(ctx context.Context, machineID string) (admission.Record, error)

Get mocks base method.

type MockAdmissionsMockRecorder

type MockAdmissionsMockRecorder struct {
	// contains filtered or unexported fields
}

MockAdmissionsMockRecorder is the mock recorder for MockAdmissions.

func (*MockAdmissionsMockRecorder) Get

func (mr *MockAdmissionsMockRecorder) Get(ctx, machineID any) *gomock.Call

Get indicates an expected call of Get.

type MockJobs

type MockJobs struct {
	// contains filtered or unexported fields
}

MockJobs is a mock of Jobs interface.

func NewMockJobs

func NewMockJobs(ctrl *gomock.Controller) *MockJobs

NewMockJobs creates a new mock instance.

func (*MockJobs) DeleteDrainFlag

func (m *MockJobs) DeleteDrainFlag(ctx context.Context, hostname string) error

DeleteDrainFlag mocks base method.

func (*MockJobs) EXPECT

func (m *MockJobs) EXPECT() *MockJobsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockJobs) GetAgent

func (m *MockJobs) GetAgent(ctx context.Context, hostname string) (*job.AgentInfo, error)

GetAgent mocks base method.

func (*MockJobs) GetAgentConfig

func (m *MockJobs) GetAgentConfig(ctx context.Context, machineID string) (job.AgentConfig, error)

GetAgentConfig mocks base method.

func (*MockJobs) ListAgents

func (m *MockJobs) ListAgents(ctx context.Context) ([]job.AgentInfo, error)

ListAgents mocks base method.

func (*MockJobs) SetAgentConfig

func (m *MockJobs) SetAgentConfig(ctx context.Context, machineID string, set job.AgentConfig) (job.AgentConfig, error)

SetAgentConfig mocks base method.

func (*MockJobs) SetDrainFlag

func (m *MockJobs) SetDrainFlag(ctx context.Context, hostname string) error

SetDrainFlag mocks base method.

func (*MockJobs) WriteAgentTimelineEvent

func (m *MockJobs) WriteAgentTimelineEvent(ctx context.Context, machineID, hostname, event, message string) error

WriteAgentTimelineEvent mocks base method.

type MockJobsMockRecorder

type MockJobsMockRecorder struct {
	// contains filtered or unexported fields
}

MockJobsMockRecorder is the mock recorder for MockJobs.

func (*MockJobsMockRecorder) DeleteDrainFlag

func (mr *MockJobsMockRecorder) DeleteDrainFlag(ctx, hostname any) *gomock.Call

DeleteDrainFlag indicates an expected call of DeleteDrainFlag.

func (*MockJobsMockRecorder) GetAgent

func (mr *MockJobsMockRecorder) GetAgent(ctx, hostname any) *gomock.Call

GetAgent indicates an expected call of GetAgent.

func (*MockJobsMockRecorder) GetAgentConfig

func (mr *MockJobsMockRecorder) GetAgentConfig(ctx, machineID any) *gomock.Call

GetAgentConfig indicates an expected call of GetAgentConfig.

func (*MockJobsMockRecorder) ListAgents

func (mr *MockJobsMockRecorder) ListAgents(ctx any) *gomock.Call

ListAgents indicates an expected call of ListAgents.

func (*MockJobsMockRecorder) SetAgentConfig

func (mr *MockJobsMockRecorder) SetAgentConfig(ctx, machineID, set any) *gomock.Call

SetAgentConfig indicates an expected call of SetAgentConfig.

func (*MockJobsMockRecorder) SetDrainFlag

func (mr *MockJobsMockRecorder) SetDrainFlag(ctx, hostname any) *gomock.Call

SetDrainFlag indicates an expected call of SetDrainFlag.

func (*MockJobsMockRecorder) WriteAgentTimelineEvent

func (mr *MockJobsMockRecorder) WriteAgentTimelineEvent(ctx, machineID, hostname, event, message any) *gomock.Call

WriteAgentTimelineEvent indicates an expected call of WriteAgentTimelineEvent.

type MockJoiner

type MockJoiner struct {
	// contains filtered or unexported fields
}

MockJoiner is a mock of Joiner interface.

func NewMockJoiner

func NewMockJoiner(ctrl *gomock.Controller) *MockJoiner

NewMockJoiner creates a new mock instance.

func (*MockJoiner) EXPECT

func (m *MockJoiner) EXPECT() *MockJoinerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockJoiner) Join

Join mocks base method.

type MockJoinerMockRecorder

type MockJoinerMockRecorder struct {
	// contains filtered or unexported fields
}

MockJoinerMockRecorder is the mock recorder for MockJoiner.

func (*MockJoinerMockRecorder) Join

func (mr *MockJoinerMockRecorder) Join(ctx, req any) *gomock.Call

Join indicates an expected call of Join.

Jump to

Keyboard shortcuts

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