Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- type MockClientMachineCall
- func (c *MockClientMachineCall) Do(f func(names.MachineTag) (deployer.Machine, error)) *MockClientMachineCall
- func (c *MockClientMachineCall) DoAndReturn(f func(names.MachineTag) (deployer.Machine, error)) *MockClientMachineCall
- func (c *MockClientMachineCall) Return(arg0 deployer.Machine, arg1 error) *MockClientMachineCall
- type MockClientMockRecorder
- type MockClientUnitCall
- func (c *MockClientUnitCall) Do(f func(context.Context, names.UnitTag) (deployer.Unit, error)) *MockClientUnitCall
- func (c *MockClientUnitCall) DoAndReturn(f func(context.Context, names.UnitTag) (deployer.Unit, error)) *MockClientUnitCall
- func (c *MockClientUnitCall) Return(arg0 deployer.Unit, arg1 error) *MockClientUnitCall
- type MockMachine
- type MockMachineMockRecorder
- type MockMachineWatchUnitsCall
- func (c *MockMachineWatchUnitsCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMachineWatchUnitsCall
- func (c *MockMachineWatchUnitsCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMachineWatchUnitsCall
- func (c *MockMachineWatchUnitsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockMachineWatchUnitsCall
- type MockUnit
- func (m *MockUnit) EXPECT() *MockUnitMockRecorder
- func (m *MockUnit) Life() life.Value
- func (m *MockUnit) Name() string
- func (m *MockUnit) Remove(arg0 context.Context) error
- func (m *MockUnit) SetPassword(arg0 context.Context, arg1 string) error
- func (m *MockUnit) SetStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error
- type MockUnitLifeCall
- type MockUnitMockRecorder
- func (mr *MockUnitMockRecorder) Life() *MockUnitLifeCall
- func (mr *MockUnitMockRecorder) Name() *MockUnitNameCall
- func (mr *MockUnitMockRecorder) Remove(arg0 any) *MockUnitRemoveCall
- func (mr *MockUnitMockRecorder) SetPassword(arg0, arg1 any) *MockUnitSetPasswordCall
- func (mr *MockUnitMockRecorder) SetStatus(arg0, arg1, arg2, arg3 any) *MockUnitSetStatusCall
- type MockUnitNameCall
- type MockUnitRemoveCall
- type MockUnitSetPasswordCall
- type MockUnitSetStatusCall
- func (c *MockUnitSetStatusCall) Do(f func(context.Context, status.Status, string, map[string]any) error) *MockUnitSetStatusCall
- func (c *MockUnitSetStatusCall) DoAndReturn(f func(context.Context, status.Status, string, map[string]any) error) *MockUnitSetStatusCall
- func (c *MockUnitSetStatusCall) Return(arg0 error) *MockUnitSetStatusCall
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.
type MockClientMachineCall ¶
MockClientMachineCall wrap *gomock.Call
func (*MockClientMachineCall) Do ¶
func (c *MockClientMachineCall) Do(f func(names.MachineTag) (deployer.Machine, error)) *MockClientMachineCall
Do rewrite *gomock.Call.Do
func (*MockClientMachineCall) DoAndReturn ¶
func (c *MockClientMachineCall) DoAndReturn(f func(names.MachineTag) (deployer.Machine, error)) *MockClientMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientMachineCall) Return ¶
func (c *MockClientMachineCall) Return(arg0 deployer.Machine, arg1 error) *MockClientMachineCall
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 ¶
func (mr *MockClientMockRecorder) Machine(arg0 any) *MockClientMachineCall
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 ¶
MockClientUnitCall wrap *gomock.Call
func (*MockClientUnitCall) Do ¶
func (c *MockClientUnitCall) Do(f func(context.Context, names.UnitTag) (deployer.Unit, error)) *MockClientUnitCall
Do rewrite *gomock.Call.Do
func (*MockClientUnitCall) DoAndReturn ¶
func (c *MockClientUnitCall) DoAndReturn(f func(context.Context, names.UnitTag) (deployer.Unit, error)) *MockClientUnitCall
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 ¶
WatchUnits mocks base method.
type MockMachineMockRecorder ¶
type MockMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineMockRecorder is the mock recorder for MockMachine.
func (*MockMachineMockRecorder) WatchUnits ¶
func (mr *MockMachineMockRecorder) WatchUnits(arg0 any) *MockMachineWatchUnitsCall
WatchUnits indicates an expected call of WatchUnits.
type MockMachineWatchUnitsCall ¶
MockMachineWatchUnitsCall wrap *gomock.Call
func (*MockMachineWatchUnitsCall) Do ¶
func (c *MockMachineWatchUnitsCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMachineWatchUnitsCall
Do rewrite *gomock.Call.Do
func (*MockMachineWatchUnitsCall) DoAndReturn ¶
func (c *MockMachineWatchUnitsCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMachineWatchUnitsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineWatchUnitsCall) Return ¶
func (c *MockMachineWatchUnitsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockMachineWatchUnitsCall
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) SetPassword ¶
SetPassword mocks base method.
type MockUnitLifeCall ¶
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 ¶
func (mr *MockUnitMockRecorder) Life() *MockUnitLifeCall
Life indicates an expected call of Life.
func (*MockUnitMockRecorder) Name ¶
func (mr *MockUnitMockRecorder) Name() *MockUnitNameCall
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 ¶
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 ¶
MockUnitRemoveCall wrap *gomock.Call
func (*MockUnitRemoveCall) Do ¶
func (c *MockUnitRemoveCall) Do(f func(context.Context) error) *MockUnitRemoveCall
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 ¶
MockUnitSetPasswordCall wrap *gomock.Call
func (*MockUnitSetPasswordCall) Do ¶
func (c *MockUnitSetPasswordCall) Do(f func(context.Context, string) error) *MockUnitSetPasswordCall
Do rewrite *gomock.Call.Do
func (*MockUnitSetPasswordCall) DoAndReturn ¶
func (c *MockUnitSetPasswordCall) DoAndReturn(f func(context.Context, string) error) *MockUnitSetPasswordCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitSetPasswordCall) Return ¶
func (c *MockUnitSetPasswordCall) Return(arg0 error) *MockUnitSetPasswordCall
Return rewrite *gomock.Call.Return
type MockUnitSetStatusCall ¶
MockUnitSetStatusCall wrap *gomock.Call
func (*MockUnitSetStatusCall) Do ¶
func (c *MockUnitSetStatusCall) Do(f func(context.Context, status.Status, string, map[string]any) error) *MockUnitSetStatusCall
Do rewrite *gomock.Call.Do
func (*MockUnitSetStatusCall) DoAndReturn ¶
func (c *MockUnitSetStatusCall) DoAndReturn(f func(context.Context, status.Status, string, map[string]any) error) *MockUnitSetStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitSetStatusCall) Return ¶
func (c *MockUnitSetStatusCall) Return(arg0 error) *MockUnitSetStatusCall
Return rewrite *gomock.Call.Return