Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockHookUnit
- func (m *MockHookUnit) Application() (*uniter.Application, error)
- func (m *MockHookUnit) ApplicationName() string
- func (m *MockHookUnit) CommitHookChanges(arg0 params.CommitHookChangesArgs) error
- func (m *MockHookUnit) ConfigSettings() (charm.Settings, error)
- func (m *MockHookUnit) EXPECT() *MockHookUnitMockRecorder
- func (m *MockHookUnit) LogActionMessage(arg0 names.ActionTag, arg1 string) error
- func (m *MockHookUnit) Name() string
- func (m *MockHookUnit) NetworkInfo(arg0 []string, arg1 *int) (map[string]params.NetworkInfoResult, error)
- func (m *MockHookUnit) RequestReboot() error
- func (m *MockHookUnit) SetAgentStatus(arg0 status.Status, arg1 string, arg2 map[string]interface{}) error
- func (m *MockHookUnit) SetUnitStatus(arg0 status.Status, arg1 string, arg2 map[string]interface{}) error
- func (m *MockHookUnit) State() (params.UnitStateResult, error)
- func (m *MockHookUnit) Tag() names.UnitTag
- func (m *MockHookUnit) UnitStatus() (params.StatusResult, error)
- func (m *MockHookUnit) UpdateNetworkInfo() error
- type MockHookUnitMockRecorder
- func (mr *MockHookUnitMockRecorder) Application() *gomock.Call
- func (mr *MockHookUnitMockRecorder) ApplicationName() *gomock.Call
- func (mr *MockHookUnitMockRecorder) CommitHookChanges(arg0 interface{}) *gomock.Call
- func (mr *MockHookUnitMockRecorder) ConfigSettings() *gomock.Call
- func (mr *MockHookUnitMockRecorder) LogActionMessage(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHookUnitMockRecorder) Name() *gomock.Call
- func (mr *MockHookUnitMockRecorder) NetworkInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHookUnitMockRecorder) RequestReboot() *gomock.Call
- func (mr *MockHookUnitMockRecorder) SetAgentStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHookUnitMockRecorder) SetUnitStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHookUnitMockRecorder) State() *gomock.Call
- func (mr *MockHookUnitMockRecorder) Tag() *gomock.Call
- func (mr *MockHookUnitMockRecorder) UnitStatus() *gomock.Call
- func (mr *MockHookUnitMockRecorder) UpdateNetworkInfo() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHookUnit ¶
type MockHookUnit struct {
// contains filtered or unexported fields
}
MockHookUnit is a mock of HookUnit interface.
func NewMockHookUnit ¶
func NewMockHookUnit(ctrl *gomock.Controller) *MockHookUnit
NewMockHookUnit creates a new mock instance.
func (*MockHookUnit) Application ¶
func (m *MockHookUnit) Application() (*uniter.Application, error)
Application mocks base method.
func (*MockHookUnit) ApplicationName ¶
func (m *MockHookUnit) ApplicationName() string
ApplicationName mocks base method.
func (*MockHookUnit) CommitHookChanges ¶
func (m *MockHookUnit) CommitHookChanges(arg0 params.CommitHookChangesArgs) error
CommitHookChanges mocks base method.
func (*MockHookUnit) ConfigSettings ¶
func (m *MockHookUnit) ConfigSettings() (charm.Settings, error)
ConfigSettings mocks base method.
func (*MockHookUnit) EXPECT ¶
func (m *MockHookUnit) EXPECT() *MockHookUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHookUnit) LogActionMessage ¶
func (m *MockHookUnit) LogActionMessage(arg0 names.ActionTag, arg1 string) error
LogActionMessage mocks base method.
func (*MockHookUnit) NetworkInfo ¶
func (m *MockHookUnit) NetworkInfo(arg0 []string, arg1 *int) (map[string]params.NetworkInfoResult, error)
NetworkInfo mocks base method.
func (*MockHookUnit) RequestReboot ¶
func (m *MockHookUnit) RequestReboot() error
RequestReboot mocks base method.
func (*MockHookUnit) SetAgentStatus ¶
func (m *MockHookUnit) SetAgentStatus(arg0 status.Status, arg1 string, arg2 map[string]interface{}) error
SetAgentStatus mocks base method.
func (*MockHookUnit) SetUnitStatus ¶
func (m *MockHookUnit) SetUnitStatus(arg0 status.Status, arg1 string, arg2 map[string]interface{}) error
SetUnitStatus mocks base method.
func (*MockHookUnit) State ¶
func (m *MockHookUnit) State() (params.UnitStateResult, error)
State mocks base method.
func (*MockHookUnit) UnitStatus ¶
func (m *MockHookUnit) UnitStatus() (params.StatusResult, error)
UnitStatus mocks base method.
func (*MockHookUnit) UpdateNetworkInfo ¶
func (m *MockHookUnit) UpdateNetworkInfo() error
UpdateNetworkInfo mocks base method.
type MockHookUnitMockRecorder ¶
type MockHookUnitMockRecorder struct {
// contains filtered or unexported fields
}
MockHookUnitMockRecorder is the mock recorder for MockHookUnit.
func (*MockHookUnitMockRecorder) Application ¶
func (mr *MockHookUnitMockRecorder) Application() *gomock.Call
Application indicates an expected call of Application.
func (*MockHookUnitMockRecorder) ApplicationName ¶
func (mr *MockHookUnitMockRecorder) ApplicationName() *gomock.Call
ApplicationName indicates an expected call of ApplicationName.
func (*MockHookUnitMockRecorder) CommitHookChanges ¶
func (mr *MockHookUnitMockRecorder) CommitHookChanges(arg0 interface{}) *gomock.Call
CommitHookChanges indicates an expected call of CommitHookChanges.
func (*MockHookUnitMockRecorder) ConfigSettings ¶
func (mr *MockHookUnitMockRecorder) ConfigSettings() *gomock.Call
ConfigSettings indicates an expected call of ConfigSettings.
func (*MockHookUnitMockRecorder) LogActionMessage ¶
func (mr *MockHookUnitMockRecorder) LogActionMessage(arg0, arg1 interface{}) *gomock.Call
LogActionMessage indicates an expected call of LogActionMessage.
func (*MockHookUnitMockRecorder) Name ¶
func (mr *MockHookUnitMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockHookUnitMockRecorder) NetworkInfo ¶
func (mr *MockHookUnitMockRecorder) NetworkInfo(arg0, arg1 interface{}) *gomock.Call
NetworkInfo indicates an expected call of NetworkInfo.
func (*MockHookUnitMockRecorder) RequestReboot ¶
func (mr *MockHookUnitMockRecorder) RequestReboot() *gomock.Call
RequestReboot indicates an expected call of RequestReboot.
func (*MockHookUnitMockRecorder) SetAgentStatus ¶
func (mr *MockHookUnitMockRecorder) SetAgentStatus(arg0, arg1, arg2 interface{}) *gomock.Call
SetAgentStatus indicates an expected call of SetAgentStatus.
func (*MockHookUnitMockRecorder) SetUnitStatus ¶
func (mr *MockHookUnitMockRecorder) SetUnitStatus(arg0, arg1, arg2 interface{}) *gomock.Call
SetUnitStatus indicates an expected call of SetUnitStatus.
func (*MockHookUnitMockRecorder) State ¶
func (mr *MockHookUnitMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*MockHookUnitMockRecorder) Tag ¶
func (mr *MockHookUnitMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag.
func (*MockHookUnitMockRecorder) UnitStatus ¶
func (mr *MockHookUnitMockRecorder) UnitStatus() *gomock.Call
UnitStatus indicates an expected call of UnitStatus.
func (*MockHookUnitMockRecorder) UpdateNetworkInfo ¶
func (mr *MockHookUnitMockRecorder) UpdateNetworkInfo() *gomock.Call
UpdateNetworkInfo indicates an expected call of UpdateNetworkInfo.