mocks

package
v0.0.0-...-e653fdf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainerMachine

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

MockContainerMachine is a mock of ContainerMachine interface.

func NewMockContainerMachine

func NewMockContainerMachine(ctrl *gomock.Controller) *MockContainerMachine

NewMockContainerMachine creates a new mock instance.

func (*MockContainerMachine) AvailabilityZone

func (m *MockContainerMachine) AvailabilityZone() (string, error)

AvailabilityZone mocks base method.

func (*MockContainerMachine) EXPECT

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

func (*MockContainerMachine) Life

func (m *MockContainerMachine) Life() life.Value

Life mocks base method.

func (*MockContainerMachine) SupportedContainers

func (m *MockContainerMachine) SupportedContainers() ([]instance.ContainerType, bool, error)

SupportedContainers mocks base method.

func (*MockContainerMachine) WatchContainers

WatchContainers mocks base method.

type MockContainerMachineGetter

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

MockContainerMachineGetter is a mock of ContainerMachineGetter interface.

func NewMockContainerMachineGetter

func NewMockContainerMachineGetter(ctrl *gomock.Controller) *MockContainerMachineGetter

NewMockContainerMachineGetter creates a new mock instance.

func (*MockContainerMachineGetter) EXPECT

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

func (*MockContainerMachineGetter) Machines

Machines mocks base method.

type MockContainerMachineGetterMockRecorder

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

MockContainerMachineGetterMockRecorder is the mock recorder for MockContainerMachineGetter.

func (*MockContainerMachineGetterMockRecorder) Machines

func (mr *MockContainerMachineGetterMockRecorder) Machines(arg0 ...any) *gomock.Call

Machines indicates an expected call of Machines.

type MockContainerMachineMockRecorder

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

MockContainerMachineMockRecorder is the mock recorder for MockContainerMachine.

func (*MockContainerMachineMockRecorder) AvailabilityZone

func (mr *MockContainerMachineMockRecorder) AvailabilityZone() *gomock.Call

AvailabilityZone indicates an expected call of AvailabilityZone.

func (*MockContainerMachineMockRecorder) Life

Life indicates an expected call of Life.

func (*MockContainerMachineMockRecorder) SupportedContainers

func (mr *MockContainerMachineMockRecorder) SupportedContainers() *gomock.Call

SupportedContainers indicates an expected call of SupportedContainers.

func (*MockContainerMachineMockRecorder) WatchContainers

func (mr *MockContainerMachineMockRecorder) WatchContainers(arg0 any) *gomock.Call

WatchContainers indicates an expected call of WatchContainers.

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Abort

func (m *MockContext) Abort() <-chan struct{}

Abort mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

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

func (*MockContext) Get

func (m *MockContext) Get(arg0 string, arg1 any) error

Get mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Abort

func (mr *MockContextMockRecorder) Abort() *gomock.Call

Abort indicates an expected call of Abort.

func (*MockContextMockRecorder) Get

func (mr *MockContextMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

type MockLXDProfileInstanceBroker

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

MockLXDProfileInstanceBroker is a mock of LXDProfileInstanceBroker interface.

func NewMockLXDProfileInstanceBroker

func NewMockLXDProfileInstanceBroker(ctrl *gomock.Controller) *MockLXDProfileInstanceBroker

NewMockLXDProfileInstanceBroker creates a new mock instance.

func (*MockLXDProfileInstanceBroker) AllInstances

AllInstances mocks base method.

func (*MockLXDProfileInstanceBroker) AllRunningInstances

AllRunningInstances mocks base method.

func (*MockLXDProfileInstanceBroker) AssignLXDProfiles

func (m *MockLXDProfileInstanceBroker) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)

AssignLXDProfiles mocks base method.

func (*MockLXDProfileInstanceBroker) EXPECT

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

func (*MockLXDProfileInstanceBroker) LXDProfileNames

func (m *MockLXDProfileInstanceBroker) LXDProfileNames(arg0 string) ([]string, error)

LXDProfileNames mocks base method.

func (*MockLXDProfileInstanceBroker) MaybeWriteLXDProfile

func (m *MockLXDProfileInstanceBroker) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error

MaybeWriteLXDProfile mocks base method.

func (*MockLXDProfileInstanceBroker) StartInstance

StartInstance mocks base method.

func (*MockLXDProfileInstanceBroker) StopInstances

func (m *MockLXDProfileInstanceBroker) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error

StopInstances mocks base method.

type MockLXDProfileInstanceBrokerMockRecorder

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

MockLXDProfileInstanceBrokerMockRecorder is the mock recorder for MockLXDProfileInstanceBroker.

func (*MockLXDProfileInstanceBrokerMockRecorder) AllInstances

func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllInstances(arg0 any) *gomock.Call

AllInstances indicates an expected call of AllInstances.

func (*MockLXDProfileInstanceBrokerMockRecorder) AllRunningInstances

func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllRunningInstances(arg0 any) *gomock.Call

AllRunningInstances indicates an expected call of AllRunningInstances.

func (*MockLXDProfileInstanceBrokerMockRecorder) AssignLXDProfiles

func (mr *MockLXDProfileInstanceBrokerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 any) *gomock.Call

AssignLXDProfiles indicates an expected call of AssignLXDProfiles.

func (*MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames

func (mr *MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames(arg0 any) *gomock.Call

LXDProfileNames indicates an expected call of LXDProfileNames.

func (*MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile

func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 any) *gomock.Call

MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile.

func (*MockLXDProfileInstanceBrokerMockRecorder) StartInstance

func (mr *MockLXDProfileInstanceBrokerMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call

StartInstance indicates an expected call of StartInstance.

func (*MockLXDProfileInstanceBrokerMockRecorder) StopInstances

func (mr *MockLXDProfileInstanceBrokerMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call

StopInstances indicates an expected call of StopInstances.

type MockStringsWatcher

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

MockStringsWatcher is a mock of StringsWatcher interface.

func NewMockStringsWatcher

func NewMockStringsWatcher(ctrl *gomock.Controller) *MockStringsWatcher

NewMockStringsWatcher creates a new mock instance.

func (*MockStringsWatcher) Changes

Changes mocks base method.

func (*MockStringsWatcher) EXPECT

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

func (*MockStringsWatcher) Kill

func (m *MockStringsWatcher) Kill()

Kill mocks base method.

func (*MockStringsWatcher) Wait

func (m *MockStringsWatcher) Wait() error

Wait mocks base method.

type MockStringsWatcherMockRecorder

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

MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher.

func (*MockStringsWatcherMockRecorder) Changes

Changes indicates an expected call of Changes.

func (*MockStringsWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockStringsWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockTaskAPI

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

MockTaskAPI is a mock of TaskAPI interface.

func NewMockTaskAPI

func NewMockTaskAPI(ctrl *gomock.Controller) *MockTaskAPI

NewMockTaskAPI creates a new mock instance.

func (*MockTaskAPI) EXPECT

func (m *MockTaskAPI) EXPECT() *MockTaskAPIMockRecorder

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

func (*MockTaskAPI) Machines

func (m *MockTaskAPI) Machines(arg0 ...names.MachineTag) ([]provisioner.MachineResult, error)

Machines mocks base method.

func (*MockTaskAPI) MachinesWithTransientErrors

func (m *MockTaskAPI) MachinesWithTransientErrors() ([]provisioner.MachineStatusResult, error)

MachinesWithTransientErrors mocks base method.

func (*MockTaskAPI) ProvisioningInfo

func (m *MockTaskAPI) ProvisioningInfo(arg0 []names.MachineTag) (params.ProvisioningInfoResults, error)

ProvisioningInfo mocks base method.

type MockTaskAPIMockRecorder

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

MockTaskAPIMockRecorder is the mock recorder for MockTaskAPI.

func (*MockTaskAPIMockRecorder) Machines

func (mr *MockTaskAPIMockRecorder) Machines(arg0 ...any) *gomock.Call

Machines indicates an expected call of Machines.

func (*MockTaskAPIMockRecorder) MachinesWithTransientErrors

func (mr *MockTaskAPIMockRecorder) MachinesWithTransientErrors() *gomock.Call

MachinesWithTransientErrors indicates an expected call of MachinesWithTransientErrors.

func (*MockTaskAPIMockRecorder) ProvisioningInfo

func (mr *MockTaskAPIMockRecorder) ProvisioningInfo(arg0 any) *gomock.Call

ProvisioningInfo indicates an expected call of ProvisioningInfo.

Jump to

Keyboard shortcuts

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