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.
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) PublicAddress() (string, error)
- func (m *MockHookUnit) RequestReboot() error
- func (m *MockHookUnit) SetAgentStatus(arg0 status.Status, arg1 string, arg2 map[string]any) error
- func (m *MockHookUnit) SetUnitStatus(arg0 status.Status, arg1 string, arg2 map[string]any) error
- func (m *MockHookUnit) State() (params.UnitStateResult, error)
- func (m *MockHookUnit) Tag() names.UnitTag
- func (m *MockHookUnit) UnitStatus() (params.StatusResult, error)
- type MockHookUnitMockRecorder
- func (mr *MockHookUnitMockRecorder) Application() *gomock.Call
- func (mr *MockHookUnitMockRecorder) ApplicationName() *gomock.Call
- func (mr *MockHookUnitMockRecorder) CommitHookChanges(arg0 any) *gomock.Call
- func (mr *MockHookUnitMockRecorder) ConfigSettings() *gomock.Call
- func (mr *MockHookUnitMockRecorder) LogActionMessage(arg0, arg1 any) *gomock.Call
- func (mr *MockHookUnitMockRecorder) Name() *gomock.Call
- func (mr *MockHookUnitMockRecorder) NetworkInfo(arg0, arg1 any) *gomock.Call
- func (mr *MockHookUnitMockRecorder) PublicAddress() *gomock.Call
- func (mr *MockHookUnitMockRecorder) RequestReboot() *gomock.Call
- func (mr *MockHookUnitMockRecorder) SetAgentStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockHookUnitMockRecorder) SetUnitStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockHookUnitMockRecorder) State() *gomock.Call
- func (mr *MockHookUnitMockRecorder) Tag() *gomock.Call
- func (mr *MockHookUnitMockRecorder) UnitStatus() *gomock.Call
- type MockLeadershipContext
- type MockLeadershipContextMockRecorder
- type MockOpenedResourceClient
- type MockOpenedResourceClientMockRecorder
- type MockPayloadAPIClient
- func (m *MockPayloadAPIClient) EXPECT() *MockPayloadAPIClientMockRecorder
- func (m *MockPayloadAPIClient) List(arg0 ...string) ([]payloads.Result, error)
- func (m *MockPayloadAPIClient) SetStatus(arg0 string, arg1 ...string) ([]payloads.Result, error)
- func (m *MockPayloadAPIClient) Track(arg0 ...payloads.Payload) ([]payloads.Result, error)
- func (m *MockPayloadAPIClient) Untrack(arg0 ...string) ([]payloads.Result, error)
- type MockPayloadAPIClientMockRecorder
- func (mr *MockPayloadAPIClientMockRecorder) List(arg0 ...any) *gomock.Call
- func (mr *MockPayloadAPIClientMockRecorder) SetStatus(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockPayloadAPIClientMockRecorder) Track(arg0 ...any) *gomock.Call
- func (mr *MockPayloadAPIClientMockRecorder) Untrack(arg0 ...any) *gomock.Call
- type MockState
- func (m *MockState) ActionBegin(arg0 names.ActionTag) error
- func (m *MockState) ActionFinish(arg0 names.ActionTag, arg1 string, arg2 map[string]any, arg3 string) error
- func (m *MockState) CloudSpec() (*params.CloudSpec, error)
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) GetPodSpec(arg0 string) (string, error)
- func (m *MockState) GetRawK8sSpec(arg0 string) (string, error)
- func (m *MockState) GoalState() (application.GoalState, error)
- func (m *MockState) OpenedMachinePortRangesByEndpoint(arg0 names.MachineTag) (map[names.UnitTag]network.GroupedPortRanges, error)
- func (m *MockState) OpenedPortRangesByEndpoint() (map[names.UnitTag]network.GroupedPortRanges, error)
- func (m *MockState) SetUnitWorkloadVersion(arg0 names.UnitTag, arg1 string) error
- func (m *MockState) StorageAttachment(arg0 names.StorageTag, arg1 names.UnitTag) (params.StorageAttachment, error)
- func (m *MockState) UnitStorageAttachments(arg0 names.UnitTag) ([]params.StorageAttachmentId, error)
- func (m *MockState) UnitWorkloadVersion(arg0 names.UnitTag) (string, error)
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) ActionBegin(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) ActionFinish(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStateMockRecorder) CloudSpec() *gomock.Call
- func (mr *MockStateMockRecorder) GetPodSpec(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) GetRawK8sSpec(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) GoalState() *gomock.Call
- func (mr *MockStateMockRecorder) OpenedMachinePortRangesByEndpoint(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) OpenedPortRangesByEndpoint() *gomock.Call
- func (mr *MockStateMockRecorder) SetUnitWorkloadVersion(arg0, arg1 any) *gomock.Call
- func (mr *MockStateMockRecorder) StorageAttachment(arg0, arg1 any) *gomock.Call
- func (mr *MockStateMockRecorder) UnitStorageAttachments(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) UnitWorkloadVersion(arg0 any) *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) PublicAddress ¶
func (m *MockHookUnit) PublicAddress() (string, error)
PublicAddress mocks base method.
func (*MockHookUnit) RequestReboot ¶
func (m *MockHookUnit) RequestReboot() error
RequestReboot mocks base method.
func (*MockHookUnit) SetAgentStatus ¶
SetAgentStatus mocks base method.
func (*MockHookUnit) SetUnitStatus ¶
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.
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 any) *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 any) *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 any) *gomock.Call
NetworkInfo indicates an expected call of NetworkInfo.
func (*MockHookUnitMockRecorder) PublicAddress ¶
func (mr *MockHookUnitMockRecorder) PublicAddress() *gomock.Call
PublicAddress indicates an expected call of PublicAddress.
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 any) *gomock.Call
SetAgentStatus indicates an expected call of SetAgentStatus.
func (*MockHookUnitMockRecorder) SetUnitStatus ¶
func (mr *MockHookUnitMockRecorder) SetUnitStatus(arg0, arg1, arg2 any) *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.
type MockLeadershipContext ¶
type MockLeadershipContext struct {
// contains filtered or unexported fields
}
MockLeadershipContext is a mock of LeadershipContext interface.
func NewMockLeadershipContext ¶
func NewMockLeadershipContext(ctrl *gomock.Controller) *MockLeadershipContext
NewMockLeadershipContext creates a new mock instance.
func (*MockLeadershipContext) EXPECT ¶
func (m *MockLeadershipContext) EXPECT() *MockLeadershipContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLeadershipContext) IsLeader ¶
func (m *MockLeadershipContext) IsLeader() (bool, error)
IsLeader mocks base method.
func (*MockLeadershipContext) LeaderSettings ¶
func (m *MockLeadershipContext) LeaderSettings() (map[string]string, error)
LeaderSettings mocks base method.
func (*MockLeadershipContext) WriteLeaderSettings ¶
func (m *MockLeadershipContext) WriteLeaderSettings(arg0 map[string]string) error
WriteLeaderSettings mocks base method.
type MockLeadershipContextMockRecorder ¶
type MockLeadershipContextMockRecorder struct {
// contains filtered or unexported fields
}
MockLeadershipContextMockRecorder is the mock recorder for MockLeadershipContext.
func (*MockLeadershipContextMockRecorder) IsLeader ¶
func (mr *MockLeadershipContextMockRecorder) IsLeader() *gomock.Call
IsLeader indicates an expected call of IsLeader.
func (*MockLeadershipContextMockRecorder) LeaderSettings ¶
func (mr *MockLeadershipContextMockRecorder) LeaderSettings() *gomock.Call
LeaderSettings indicates an expected call of LeaderSettings.
func (*MockLeadershipContextMockRecorder) WriteLeaderSettings ¶
func (mr *MockLeadershipContextMockRecorder) WriteLeaderSettings(arg0 any) *gomock.Call
WriteLeaderSettings indicates an expected call of WriteLeaderSettings.
type MockOpenedResourceClient ¶
type MockOpenedResourceClient struct {
// contains filtered or unexported fields
}
MockOpenedResourceClient is a mock of OpenedResourceClient interface.
func NewMockOpenedResourceClient ¶
func NewMockOpenedResourceClient(ctrl *gomock.Controller) *MockOpenedResourceClient
NewMockOpenedResourceClient creates a new mock instance.
func (*MockOpenedResourceClient) EXPECT ¶
func (m *MockOpenedResourceClient) EXPECT() *MockOpenedResourceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenedResourceClient) GetResource ¶
func (m *MockOpenedResourceClient) GetResource(arg0 string) (resources.Resource, io.ReadCloser, error)
GetResource mocks base method.
type MockOpenedResourceClientMockRecorder ¶
type MockOpenedResourceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenedResourceClientMockRecorder is the mock recorder for MockOpenedResourceClient.
func (*MockOpenedResourceClientMockRecorder) GetResource ¶
func (mr *MockOpenedResourceClientMockRecorder) GetResource(arg0 any) *gomock.Call
GetResource indicates an expected call of GetResource.
type MockPayloadAPIClient ¶
type MockPayloadAPIClient struct {
// contains filtered or unexported fields
}
MockPayloadAPIClient is a mock of PayloadAPIClient interface.
func NewMockPayloadAPIClient ¶
func NewMockPayloadAPIClient(ctrl *gomock.Controller) *MockPayloadAPIClient
NewMockPayloadAPIClient creates a new mock instance.
func (*MockPayloadAPIClient) EXPECT ¶
func (m *MockPayloadAPIClient) EXPECT() *MockPayloadAPIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPayloadAPIClient) List ¶
func (m *MockPayloadAPIClient) List(arg0 ...string) ([]payloads.Result, error)
List mocks base method.
type MockPayloadAPIClientMockRecorder ¶
type MockPayloadAPIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPayloadAPIClientMockRecorder is the mock recorder for MockPayloadAPIClient.
func (*MockPayloadAPIClientMockRecorder) List ¶
func (mr *MockPayloadAPIClientMockRecorder) List(arg0 ...any) *gomock.Call
List indicates an expected call of List.
func (*MockPayloadAPIClientMockRecorder) SetStatus ¶
func (mr *MockPayloadAPIClientMockRecorder) SetStatus(arg0 any, arg1 ...any) *gomock.Call
SetStatus indicates an expected call of SetStatus.
type MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface.
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance.
func (*MockState) ActionBegin ¶
ActionBegin mocks base method.
func (*MockState) ActionFinish ¶
func (m *MockState) ActionFinish(arg0 names.ActionTag, arg1 string, arg2 map[string]any, arg3 string) error
ActionFinish mocks base method.
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockState) GetPodSpec ¶
GetPodSpec mocks base method.
func (*MockState) GetRawK8sSpec ¶
GetRawK8sSpec mocks base method.
func (*MockState) GoalState ¶
func (m *MockState) GoalState() (application.GoalState, error)
GoalState mocks base method.
func (*MockState) OpenedMachinePortRangesByEndpoint ¶
func (m *MockState) OpenedMachinePortRangesByEndpoint(arg0 names.MachineTag) (map[names.UnitTag]network.GroupedPortRanges, error)
OpenedMachinePortRangesByEndpoint mocks base method.
func (*MockState) OpenedPortRangesByEndpoint ¶
func (m *MockState) OpenedPortRangesByEndpoint() (map[names.UnitTag]network.GroupedPortRanges, error)
OpenedPortRangesByEndpoint mocks base method.
func (*MockState) SetUnitWorkloadVersion ¶
SetUnitWorkloadVersion mocks base method.
func (*MockState) StorageAttachment ¶
func (m *MockState) StorageAttachment(arg0 names.StorageTag, arg1 names.UnitTag) (params.StorageAttachment, error)
StorageAttachment mocks base method.
func (*MockState) UnitStorageAttachments ¶
func (m *MockState) UnitStorageAttachments(arg0 names.UnitTag) ([]params.StorageAttachmentId, error)
UnitStorageAttachments mocks base method.
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState.
func (*MockStateMockRecorder) ActionBegin ¶
func (mr *MockStateMockRecorder) ActionBegin(arg0 any) *gomock.Call
ActionBegin indicates an expected call of ActionBegin.
func (*MockStateMockRecorder) ActionFinish ¶
func (mr *MockStateMockRecorder) ActionFinish(arg0, arg1, arg2, arg3 any) *gomock.Call
ActionFinish indicates an expected call of ActionFinish.
func (*MockStateMockRecorder) CloudSpec ¶
func (mr *MockStateMockRecorder) CloudSpec() *gomock.Call
CloudSpec indicates an expected call of CloudSpec.
func (*MockStateMockRecorder) GetPodSpec ¶
func (mr *MockStateMockRecorder) GetPodSpec(arg0 any) *gomock.Call
GetPodSpec indicates an expected call of GetPodSpec.
func (*MockStateMockRecorder) GetRawK8sSpec ¶
func (mr *MockStateMockRecorder) GetRawK8sSpec(arg0 any) *gomock.Call
GetRawK8sSpec indicates an expected call of GetRawK8sSpec.
func (*MockStateMockRecorder) GoalState ¶
func (mr *MockStateMockRecorder) GoalState() *gomock.Call
GoalState indicates an expected call of GoalState.
func (*MockStateMockRecorder) OpenedMachinePortRangesByEndpoint ¶
func (mr *MockStateMockRecorder) OpenedMachinePortRangesByEndpoint(arg0 any) *gomock.Call
OpenedMachinePortRangesByEndpoint indicates an expected call of OpenedMachinePortRangesByEndpoint.
func (*MockStateMockRecorder) OpenedPortRangesByEndpoint ¶
func (mr *MockStateMockRecorder) OpenedPortRangesByEndpoint() *gomock.Call
OpenedPortRangesByEndpoint indicates an expected call of OpenedPortRangesByEndpoint.
func (*MockStateMockRecorder) SetUnitWorkloadVersion ¶
func (mr *MockStateMockRecorder) SetUnitWorkloadVersion(arg0, arg1 any) *gomock.Call
SetUnitWorkloadVersion indicates an expected call of SetUnitWorkloadVersion.
func (*MockStateMockRecorder) StorageAttachment ¶
func (mr *MockStateMockRecorder) StorageAttachment(arg0, arg1 any) *gomock.Call
StorageAttachment indicates an expected call of StorageAttachment.
func (*MockStateMockRecorder) UnitStorageAttachments ¶
func (mr *MockStateMockRecorder) UnitStorageAttachments(arg0 any) *gomock.Call
UnitStorageAttachments indicates an expected call of UnitStorageAttachments.
func (*MockStateMockRecorder) UnitWorkloadVersion ¶
func (mr *MockStateMockRecorder) UnitWorkloadVersion(arg0 any) *gomock.Call
UnitWorkloadVersion indicates an expected call of UnitWorkloadVersion.