mocks

package
v0.0.0-...-4308112 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

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 MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Machine

func (m *MockClient) Machine(arg0 names.MachineTag) (deployer.Machine, error)

Machine mocks base method.

func (*MockClient) Unit

func (m *MockClient) Unit(arg0 context.Context, arg1 names.UnitTag) (deployer.Unit, error)

Unit mocks base method.

type MockClientMachineCall

type MockClientMachineCall struct {
	*gomock.Call
}

MockClientMachineCall wrap *gomock.Call

func (*MockClientMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientMachineCall) Return

Return rewrite *gomock.Call.Return

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Machine

Machine indicates an expected call of Machine.

func (*MockClientMockRecorder) Unit

func (mr *MockClientMockRecorder) Unit(arg0, arg1 any) *MockClientUnitCall

Unit indicates an expected call of Unit.

type MockClientUnitCall

type MockClientUnitCall struct {
	*gomock.Call
}

MockClientUnitCall wrap *gomock.Call

func (*MockClientUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientUnitCall) Return

func (c *MockClientUnitCall) Return(arg0 deployer.Unit, arg1 error) *MockClientUnitCall

Return rewrite *gomock.Call.Return

type MockMachine

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

MockMachine is a mock of Machine interface.

func NewMockMachine

func NewMockMachine(ctrl *gomock.Controller) *MockMachine

NewMockMachine creates a new mock instance.

func (*MockMachine) EXPECT

func (m *MockMachine) EXPECT() *MockMachineMockRecorder

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

func (*MockMachine) WatchUnits

func (m *MockMachine) WatchUnits(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchUnits mocks base method.

type MockMachineMockRecorder

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

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) WatchUnits

WatchUnits indicates an expected call of WatchUnits.

type MockMachineWatchUnitsCall

type MockMachineWatchUnitsCall struct {
	*gomock.Call
}

MockMachineWatchUnitsCall wrap *gomock.Call

func (*MockMachineWatchUnitsCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineWatchUnitsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineWatchUnitsCall) Return

Return rewrite *gomock.Call.Return

type MockUnit

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

MockUnit is a mock of Unit interface.

func NewMockUnit

func NewMockUnit(ctrl *gomock.Controller) *MockUnit

NewMockUnit creates a new mock instance.

func (*MockUnit) EXPECT

func (m *MockUnit) EXPECT() *MockUnitMockRecorder

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

func (*MockUnit) Life

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

Life mocks base method.

func (*MockUnit) Name

func (m *MockUnit) Name() string

Name mocks base method.

func (*MockUnit) Remove

func (m *MockUnit) Remove(arg0 context.Context) error

Remove mocks base method.

func (*MockUnit) SetPassword

func (m *MockUnit) SetPassword(arg0 context.Context, arg1 string) error

SetPassword mocks base method.

func (*MockUnit) SetStatus

func (m *MockUnit) SetStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error

SetStatus mocks base method.

type MockUnitLifeCall

type MockUnitLifeCall struct {
	*gomock.Call
}

MockUnitLifeCall wrap *gomock.Call

func (*MockUnitLifeCall) Do

func (c *MockUnitLifeCall) Do(f func() life.Value) *MockUnitLifeCall

Do rewrite *gomock.Call.Do

func (*MockUnitLifeCall) DoAndReturn

func (c *MockUnitLifeCall) DoAndReturn(f func() life.Value) *MockUnitLifeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitLifeCall) Return

func (c *MockUnitLifeCall) Return(arg0 life.Value) *MockUnitLifeCall

Return rewrite *gomock.Call.Return

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) Life

Life indicates an expected call of Life.

func (*MockUnitMockRecorder) Name

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) Remove

func (mr *MockUnitMockRecorder) Remove(arg0 any) *MockUnitRemoveCall

Remove indicates an expected call of Remove.

func (*MockUnitMockRecorder) SetPassword

func (mr *MockUnitMockRecorder) SetPassword(arg0, arg1 any) *MockUnitSetPasswordCall

SetPassword indicates an expected call of SetPassword.

func (*MockUnitMockRecorder) SetStatus

func (mr *MockUnitMockRecorder) SetStatus(arg0, arg1, arg2, arg3 any) *MockUnitSetStatusCall

SetStatus indicates an expected call of SetStatus.

type MockUnitNameCall

type MockUnitNameCall struct {
	*gomock.Call
}

MockUnitNameCall wrap *gomock.Call

func (*MockUnitNameCall) Do

func (c *MockUnitNameCall) Do(f func() string) *MockUnitNameCall

Do rewrite *gomock.Call.Do

func (*MockUnitNameCall) DoAndReturn

func (c *MockUnitNameCall) DoAndReturn(f func() string) *MockUnitNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitNameCall) Return

func (c *MockUnitNameCall) Return(arg0 string) *MockUnitNameCall

Return rewrite *gomock.Call.Return

type MockUnitRemoveCall

type MockUnitRemoveCall struct {
	*gomock.Call
}

MockUnitRemoveCall wrap *gomock.Call

func (*MockUnitRemoveCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitRemoveCall) DoAndReturn

func (c *MockUnitRemoveCall) DoAndReturn(f func(context.Context) error) *MockUnitRemoveCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitRemoveCall) Return

func (c *MockUnitRemoveCall) Return(arg0 error) *MockUnitRemoveCall

Return rewrite *gomock.Call.Return

type MockUnitSetPasswordCall

type MockUnitSetPasswordCall struct {
	*gomock.Call
}

MockUnitSetPasswordCall wrap *gomock.Call

func (*MockUnitSetPasswordCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitSetPasswordCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitSetPasswordCall) Return

Return rewrite *gomock.Call.Return

type MockUnitSetStatusCall

type MockUnitSetStatusCall struct {
	*gomock.Call
}

MockUnitSetStatusCall wrap *gomock.Call

func (*MockUnitSetStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitSetStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitSetStatusCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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