mocks

package
v0.0.0-...-2f78cd6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 12 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.

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 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

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) Name

func (m *MockHookUnit) Name() string

Name 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

func (m *MockHookUnit) SetAgentStatus(arg0 status.Status, arg1 string, arg2 map[string]any) error

SetAgentStatus mocks base method.

func (*MockHookUnit) SetUnitStatus

func (m *MockHookUnit) SetUnitStatus(arg0 status.Status, arg1 string, arg2 map[string]any) error

SetUnitStatus mocks base method.

func (*MockHookUnit) State

func (m *MockHookUnit) State() (params.UnitStateResult, error)

State mocks base method.

func (*MockHookUnit) Tag

func (m *MockHookUnit) Tag() names.UnitTag

Tag 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

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

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

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

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

func (*MockOpenedResourceClient) GetResource

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

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.

func (*MockPayloadAPIClient) SetStatus

func (m *MockPayloadAPIClient) SetStatus(arg0 string, arg1 ...string) ([]payloads.Result, error)

SetStatus mocks base method.

func (*MockPayloadAPIClient) Track

func (m *MockPayloadAPIClient) Track(arg0 ...payloads.Payload) ([]payloads.Result, error)

Track mocks base method.

func (*MockPayloadAPIClient) Untrack

func (m *MockPayloadAPIClient) Untrack(arg0 ...string) ([]payloads.Result, error)

Untrack 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.

func (*MockPayloadAPIClientMockRecorder) Track

func (mr *MockPayloadAPIClientMockRecorder) Track(arg0 ...any) *gomock.Call

Track indicates an expected call of Track.

func (*MockPayloadAPIClientMockRecorder) Untrack

func (mr *MockPayloadAPIClientMockRecorder) Untrack(arg0 ...any) *gomock.Call

Untrack indicates an expected call of Untrack.

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

func (m *MockState) ActionBegin(arg0 names.ActionTag) error

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) CloudSpec

func (m *MockState) CloudSpec() (*params.CloudSpec, error)

CloudSpec 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

func (m *MockState) GetPodSpec(arg0 string) (string, error)

GetPodSpec mocks base method.

func (*MockState) GetRawK8sSpec

func (m *MockState) GetRawK8sSpec(arg0 string) (string, error)

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

func (m *MockState) SetUnitWorkloadVersion(arg0 names.UnitTag, arg1 string) error

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.

func (*MockState) UnitWorkloadVersion

func (m *MockState) UnitWorkloadVersion(arg0 names.UnitTag) (string, error)

UnitWorkloadVersion 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.

Jump to

Keyboard shortcuts

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