mocks

package
v0.0.0-...-a753888 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 14 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) ActionParams

func (m *MockContext) ActionParams() (map[string]any, error)

ActionParams mocks base method.

func (*MockContext) AddMetric

func (m *MockContext) AddMetric(arg0, arg1 string, arg2 time.Time) error

AddMetric mocks base method.

func (*MockContext) AddMetricLabels

func (m *MockContext) AddMetricLabels(arg0, arg1 string, arg2 time.Time, arg3 map[string]string) error

AddMetricLabels mocks base method.

func (*MockContext) AddUnitStorage

func (m *MockContext) AddUnitStorage(arg0 map[string]params.StorageConstraints) error

AddUnitStorage mocks base method.

func (*MockContext) ApplicationStatus

func (m *MockContext) ApplicationStatus() (jujuc.ApplicationStatusInfo, error)

ApplicationStatus mocks base method.

func (*MockContext) AvailabilityZone

func (m *MockContext) AvailabilityZone() (string, error)

AvailabilityZone mocks base method.

func (*MockContext) ClosePortRange

func (m *MockContext) ClosePortRange(arg0 string, arg1 network.PortRange) error

ClosePortRange mocks base method.

func (*MockContext) CloudSpec

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

CloudSpec mocks base method.

func (*MockContext) ConfigSettings

func (m *MockContext) ConfigSettings() (charm.Settings, error)

ConfigSettings mocks base method.

func (*MockContext) CreateSecret

func (m *MockContext) CreateSecret(arg0 *jujuc.SecretCreateArgs) (*secrets.URI, error)

CreateSecret mocks base method.

func (*MockContext) DeleteCharmStateValue

func (m *MockContext) DeleteCharmStateValue(arg0 string) error

DeleteCharmStateValue mocks base method.

func (*MockContext) DownloadResource

func (m *MockContext) DownloadResource(arg0 string) (string, error)

DownloadResource mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

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

func (*MockContext) FlushPayloads

func (m *MockContext) FlushPayloads() error

FlushPayloads mocks base method.

func (*MockContext) GetCharmState

func (m *MockContext) GetCharmState() (map[string]string, error)

GetCharmState mocks base method.

func (*MockContext) GetCharmStateValue

func (m *MockContext) GetCharmStateValue(arg0 string) (string, error)

GetCharmStateValue mocks base method.

func (*MockContext) GetLogger

func (m *MockContext) GetLogger(arg0 string) loggo.Logger

GetLogger mocks base method.

func (*MockContext) GetPayload

func (m *MockContext) GetPayload(arg0, arg1 string) (*payloads.Payload, error)

GetPayload mocks base method.

func (*MockContext) GetPodSpec

func (m *MockContext) GetPodSpec() (string, error)

GetPodSpec mocks base method.

func (*MockContext) GetRawK8sSpec

func (m *MockContext) GetRawK8sSpec() (string, error)

GetRawK8sSpec mocks base method.

func (*MockContext) GetSecret

func (m *MockContext) GetSecret(arg0 *secrets.URI, arg1 string, arg2, arg3 bool) (secrets.SecretValue, error)

GetSecret mocks base method.

func (*MockContext) GoalState

func (m *MockContext) GoalState() (*application.GoalState, error)

GoalState mocks base method.

func (*MockContext) GrantSecret

func (m *MockContext) GrantSecret(arg0 *secrets.URI, arg1 *jujuc.SecretGrantRevokeArgs) error

GrantSecret mocks base method.

func (*MockContext) HookRelation

func (m *MockContext) HookRelation() (jujuc.ContextRelation, error)

HookRelation mocks base method.

func (*MockContext) HookStorage

func (m *MockContext) HookStorage() (jujuc.ContextStorageAttachment, error)

HookStorage mocks base method.

func (*MockContext) IsLeader

func (m *MockContext) IsLeader() (bool, error)

IsLeader mocks base method.

func (*MockContext) LeaderSettings

func (m *MockContext) LeaderSettings() (map[string]string, error)

LeaderSettings mocks base method.

func (*MockContext) ListPayloads

func (m *MockContext) ListPayloads() ([]string, error)

ListPayloads mocks base method.

func (*MockContext) LogActionMessage

func (m *MockContext) LogActionMessage(arg0 string) error

LogActionMessage mocks base method.

func (*MockContext) NetworkInfo

func (m *MockContext) NetworkInfo(arg0 []string, arg1 int) (map[string]params.NetworkInfoResult, error)

NetworkInfo mocks base method.

func (*MockContext) OpenPortRange

func (m *MockContext) OpenPortRange(arg0 string, arg1 network.PortRange) error

OpenPortRange mocks base method.

func (*MockContext) OpenedPortRanges

func (m *MockContext) OpenedPortRanges() network.GroupedPortRanges

OpenedPortRanges mocks base method.

func (*MockContext) PrivateAddress

func (m *MockContext) PrivateAddress() (string, error)

PrivateAddress mocks base method.

func (*MockContext) PublicAddress

func (m *MockContext) PublicAddress() (string, error)

PublicAddress mocks base method.

func (*MockContext) Relation

func (m *MockContext) Relation(arg0 int) (jujuc.ContextRelation, error)

Relation mocks base method.

func (*MockContext) RelationIds

func (m *MockContext) RelationIds() ([]int, error)

RelationIds mocks base method.

func (*MockContext) RemoteApplicationName

func (m *MockContext) RemoteApplicationName() (string, error)

RemoteApplicationName mocks base method.

func (*MockContext) RemoteUnitName

func (m *MockContext) RemoteUnitName() (string, error)

RemoteUnitName mocks base method.

func (*MockContext) RemoveSecret

func (m *MockContext) RemoveSecret(arg0 *secrets.URI, arg1 *int) error

RemoveSecret mocks base method.

func (*MockContext) RequestReboot

func (m *MockContext) RequestReboot(arg0 jujuc.RebootPriority) error

RequestReboot mocks base method.

func (*MockContext) RevokeSecret

func (m *MockContext) RevokeSecret(arg0 *secrets.URI, arg1 *jujuc.SecretGrantRevokeArgs) error

RevokeSecret mocks base method.

func (*MockContext) SecretMetadata

func (m *MockContext) SecretMetadata() (map[string]jujuc.SecretMetadata, error)

SecretMetadata mocks base method.

func (*MockContext) SetActionFailed

func (m *MockContext) SetActionFailed() error

SetActionFailed mocks base method.

func (*MockContext) SetActionMessage

func (m *MockContext) SetActionMessage(arg0 string) error

SetActionMessage mocks base method.

func (*MockContext) SetApplicationStatus

func (m *MockContext) SetApplicationStatus(arg0 jujuc.StatusInfo) error

SetApplicationStatus mocks base method.

func (*MockContext) SetCharmStateValue

func (m *MockContext) SetCharmStateValue(arg0, arg1 string) error

SetCharmStateValue mocks base method.

func (*MockContext) SetPayloadStatus

func (m *MockContext) SetPayloadStatus(arg0, arg1, arg2 string) error

SetPayloadStatus mocks base method.

func (*MockContext) SetPodSpec

func (m *MockContext) SetPodSpec(arg0 string) error

SetPodSpec mocks base method.

func (*MockContext) SetRawK8sSpec

func (m *MockContext) SetRawK8sSpec(arg0 string) error

SetRawK8sSpec mocks base method.

func (*MockContext) SetUnitStatus

func (m *MockContext) SetUnitStatus(arg0 jujuc.StatusInfo) error

SetUnitStatus mocks base method.

func (*MockContext) SetUnitWorkloadVersion

func (m *MockContext) SetUnitWorkloadVersion(arg0 string) error

SetUnitWorkloadVersion mocks base method.

func (*MockContext) Storage

Storage mocks base method.

func (*MockContext) StorageTags

func (m *MockContext) StorageTags() ([]names.StorageTag, error)

StorageTags mocks base method.

func (*MockContext) TrackPayload

func (m *MockContext) TrackPayload(arg0 payloads.Payload) error

TrackPayload mocks base method.

func (*MockContext) UnitName

func (m *MockContext) UnitName() string

UnitName mocks base method.

func (*MockContext) UnitStatus

func (m *MockContext) UnitStatus() (*jujuc.StatusInfo, error)

UnitStatus mocks base method.

func (*MockContext) UnitWorkloadVersion

func (m *MockContext) UnitWorkloadVersion() (string, error)

UnitWorkloadVersion mocks base method.

func (*MockContext) UntrackPayload

func (m *MockContext) UntrackPayload(arg0, arg1 string) error

UntrackPayload mocks base method.

func (*MockContext) UpdateActionResults

func (m *MockContext) UpdateActionResults(arg0 []string, arg1 any) error

UpdateActionResults mocks base method.

func (*MockContext) UpdateSecret

func (m *MockContext) UpdateSecret(arg0 *secrets.URI, arg1 *jujuc.SecretUpdateArgs) error

UpdateSecret mocks base method.

func (*MockContext) WorkloadName

func (m *MockContext) WorkloadName() (string, error)

WorkloadName mocks base method.

func (*MockContext) WriteLeaderSettings

func (m *MockContext) WriteLeaderSettings(arg0 map[string]string) error

WriteLeaderSettings mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) ActionParams

func (mr *MockContextMockRecorder) ActionParams() *gomock.Call

ActionParams indicates an expected call of ActionParams.

func (*MockContextMockRecorder) AddMetric

func (mr *MockContextMockRecorder) AddMetric(arg0, arg1, arg2 any) *gomock.Call

AddMetric indicates an expected call of AddMetric.

func (*MockContextMockRecorder) AddMetricLabels

func (mr *MockContextMockRecorder) AddMetricLabels(arg0, arg1, arg2, arg3 any) *gomock.Call

AddMetricLabels indicates an expected call of AddMetricLabels.

func (*MockContextMockRecorder) AddUnitStorage

func (mr *MockContextMockRecorder) AddUnitStorage(arg0 any) *gomock.Call

AddUnitStorage indicates an expected call of AddUnitStorage.

func (*MockContextMockRecorder) ApplicationStatus

func (mr *MockContextMockRecorder) ApplicationStatus() *gomock.Call

ApplicationStatus indicates an expected call of ApplicationStatus.

func (*MockContextMockRecorder) AvailabilityZone

func (mr *MockContextMockRecorder) AvailabilityZone() *gomock.Call

AvailabilityZone indicates an expected call of AvailabilityZone.

func (*MockContextMockRecorder) ClosePortRange

func (mr *MockContextMockRecorder) ClosePortRange(arg0, arg1 any) *gomock.Call

ClosePortRange indicates an expected call of ClosePortRange.

func (*MockContextMockRecorder) CloudSpec

func (mr *MockContextMockRecorder) CloudSpec() *gomock.Call

CloudSpec indicates an expected call of CloudSpec.

func (*MockContextMockRecorder) ConfigSettings

func (mr *MockContextMockRecorder) ConfigSettings() *gomock.Call

ConfigSettings indicates an expected call of ConfigSettings.

func (*MockContextMockRecorder) CreateSecret

func (mr *MockContextMockRecorder) CreateSecret(arg0 any) *gomock.Call

CreateSecret indicates an expected call of CreateSecret.

func (*MockContextMockRecorder) DeleteCharmStateValue

func (mr *MockContextMockRecorder) DeleteCharmStateValue(arg0 any) *gomock.Call

DeleteCharmStateValue indicates an expected call of DeleteCharmStateValue.

func (*MockContextMockRecorder) DownloadResource

func (mr *MockContextMockRecorder) DownloadResource(arg0 any) *gomock.Call

DownloadResource indicates an expected call of DownloadResource.

func (*MockContextMockRecorder) FlushPayloads

func (mr *MockContextMockRecorder) FlushPayloads() *gomock.Call

FlushPayloads indicates an expected call of FlushPayloads.

func (*MockContextMockRecorder) GetCharmState

func (mr *MockContextMockRecorder) GetCharmState() *gomock.Call

GetCharmState indicates an expected call of GetCharmState.

func (*MockContextMockRecorder) GetCharmStateValue

func (mr *MockContextMockRecorder) GetCharmStateValue(arg0 any) *gomock.Call

GetCharmStateValue indicates an expected call of GetCharmStateValue.

func (*MockContextMockRecorder) GetLogger

func (mr *MockContextMockRecorder) GetLogger(arg0 any) *gomock.Call

GetLogger indicates an expected call of GetLogger.

func (*MockContextMockRecorder) GetPayload

func (mr *MockContextMockRecorder) GetPayload(arg0, arg1 any) *gomock.Call

GetPayload indicates an expected call of GetPayload.

func (*MockContextMockRecorder) GetPodSpec

func (mr *MockContextMockRecorder) GetPodSpec() *gomock.Call

GetPodSpec indicates an expected call of GetPodSpec.

func (*MockContextMockRecorder) GetRawK8sSpec

func (mr *MockContextMockRecorder) GetRawK8sSpec() *gomock.Call

GetRawK8sSpec indicates an expected call of GetRawK8sSpec.

func (*MockContextMockRecorder) GetSecret

func (mr *MockContextMockRecorder) GetSecret(arg0, arg1, arg2, arg3 any) *gomock.Call

GetSecret indicates an expected call of GetSecret.

func (*MockContextMockRecorder) GoalState

func (mr *MockContextMockRecorder) GoalState() *gomock.Call

GoalState indicates an expected call of GoalState.

func (*MockContextMockRecorder) GrantSecret

func (mr *MockContextMockRecorder) GrantSecret(arg0, arg1 any) *gomock.Call

GrantSecret indicates an expected call of GrantSecret.

func (*MockContextMockRecorder) HookRelation

func (mr *MockContextMockRecorder) HookRelation() *gomock.Call

HookRelation indicates an expected call of HookRelation.

func (*MockContextMockRecorder) HookStorage

func (mr *MockContextMockRecorder) HookStorage() *gomock.Call

HookStorage indicates an expected call of HookStorage.

func (*MockContextMockRecorder) IsLeader

func (mr *MockContextMockRecorder) IsLeader() *gomock.Call

IsLeader indicates an expected call of IsLeader.

func (*MockContextMockRecorder) LeaderSettings

func (mr *MockContextMockRecorder) LeaderSettings() *gomock.Call

LeaderSettings indicates an expected call of LeaderSettings.

func (*MockContextMockRecorder) ListPayloads

func (mr *MockContextMockRecorder) ListPayloads() *gomock.Call

ListPayloads indicates an expected call of ListPayloads.

func (*MockContextMockRecorder) LogActionMessage

func (mr *MockContextMockRecorder) LogActionMessage(arg0 any) *gomock.Call

LogActionMessage indicates an expected call of LogActionMessage.

func (*MockContextMockRecorder) NetworkInfo

func (mr *MockContextMockRecorder) NetworkInfo(arg0, arg1 any) *gomock.Call

NetworkInfo indicates an expected call of NetworkInfo.

func (*MockContextMockRecorder) OpenPortRange

func (mr *MockContextMockRecorder) OpenPortRange(arg0, arg1 any) *gomock.Call

OpenPortRange indicates an expected call of OpenPortRange.

func (*MockContextMockRecorder) OpenedPortRanges

func (mr *MockContextMockRecorder) OpenedPortRanges() *gomock.Call

OpenedPortRanges indicates an expected call of OpenedPortRanges.

func (*MockContextMockRecorder) PrivateAddress

func (mr *MockContextMockRecorder) PrivateAddress() *gomock.Call

PrivateAddress indicates an expected call of PrivateAddress.

func (*MockContextMockRecorder) PublicAddress

func (mr *MockContextMockRecorder) PublicAddress() *gomock.Call

PublicAddress indicates an expected call of PublicAddress.

func (*MockContextMockRecorder) Relation

func (mr *MockContextMockRecorder) Relation(arg0 any) *gomock.Call

Relation indicates an expected call of Relation.

func (*MockContextMockRecorder) RelationIds

func (mr *MockContextMockRecorder) RelationIds() *gomock.Call

RelationIds indicates an expected call of RelationIds.

func (*MockContextMockRecorder) RemoteApplicationName

func (mr *MockContextMockRecorder) RemoteApplicationName() *gomock.Call

RemoteApplicationName indicates an expected call of RemoteApplicationName.

func (*MockContextMockRecorder) RemoteUnitName

func (mr *MockContextMockRecorder) RemoteUnitName() *gomock.Call

RemoteUnitName indicates an expected call of RemoteUnitName.

func (*MockContextMockRecorder) RemoveSecret

func (mr *MockContextMockRecorder) RemoveSecret(arg0, arg1 any) *gomock.Call

RemoveSecret indicates an expected call of RemoveSecret.

func (*MockContextMockRecorder) RequestReboot

func (mr *MockContextMockRecorder) RequestReboot(arg0 any) *gomock.Call

RequestReboot indicates an expected call of RequestReboot.

func (*MockContextMockRecorder) RevokeSecret

func (mr *MockContextMockRecorder) RevokeSecret(arg0, arg1 any) *gomock.Call

RevokeSecret indicates an expected call of RevokeSecret.

func (*MockContextMockRecorder) SecretMetadata

func (mr *MockContextMockRecorder) SecretMetadata() *gomock.Call

SecretMetadata indicates an expected call of SecretMetadata.

func (*MockContextMockRecorder) SetActionFailed

func (mr *MockContextMockRecorder) SetActionFailed() *gomock.Call

SetActionFailed indicates an expected call of SetActionFailed.

func (*MockContextMockRecorder) SetActionMessage

func (mr *MockContextMockRecorder) SetActionMessage(arg0 any) *gomock.Call

SetActionMessage indicates an expected call of SetActionMessage.

func (*MockContextMockRecorder) SetApplicationStatus

func (mr *MockContextMockRecorder) SetApplicationStatus(arg0 any) *gomock.Call

SetApplicationStatus indicates an expected call of SetApplicationStatus.

func (*MockContextMockRecorder) SetCharmStateValue

func (mr *MockContextMockRecorder) SetCharmStateValue(arg0, arg1 any) *gomock.Call

SetCharmStateValue indicates an expected call of SetCharmStateValue.

func (*MockContextMockRecorder) SetPayloadStatus

func (mr *MockContextMockRecorder) SetPayloadStatus(arg0, arg1, arg2 any) *gomock.Call

SetPayloadStatus indicates an expected call of SetPayloadStatus.

func (*MockContextMockRecorder) SetPodSpec

func (mr *MockContextMockRecorder) SetPodSpec(arg0 any) *gomock.Call

SetPodSpec indicates an expected call of SetPodSpec.

func (*MockContextMockRecorder) SetRawK8sSpec

func (mr *MockContextMockRecorder) SetRawK8sSpec(arg0 any) *gomock.Call

SetRawK8sSpec indicates an expected call of SetRawK8sSpec.

func (*MockContextMockRecorder) SetUnitStatus

func (mr *MockContextMockRecorder) SetUnitStatus(arg0 any) *gomock.Call

SetUnitStatus indicates an expected call of SetUnitStatus.

func (*MockContextMockRecorder) SetUnitWorkloadVersion

func (mr *MockContextMockRecorder) SetUnitWorkloadVersion(arg0 any) *gomock.Call

SetUnitWorkloadVersion indicates an expected call of SetUnitWorkloadVersion.

func (*MockContextMockRecorder) Storage

func (mr *MockContextMockRecorder) Storage(arg0 any) *gomock.Call

Storage indicates an expected call of Storage.

func (*MockContextMockRecorder) StorageTags

func (mr *MockContextMockRecorder) StorageTags() *gomock.Call

StorageTags indicates an expected call of StorageTags.

func (*MockContextMockRecorder) TrackPayload

func (mr *MockContextMockRecorder) TrackPayload(arg0 any) *gomock.Call

TrackPayload indicates an expected call of TrackPayload.

func (*MockContextMockRecorder) UnitName

func (mr *MockContextMockRecorder) UnitName() *gomock.Call

UnitName indicates an expected call of UnitName.

func (*MockContextMockRecorder) UnitStatus

func (mr *MockContextMockRecorder) UnitStatus() *gomock.Call

UnitStatus indicates an expected call of UnitStatus.

func (*MockContextMockRecorder) UnitWorkloadVersion

func (mr *MockContextMockRecorder) UnitWorkloadVersion() *gomock.Call

UnitWorkloadVersion indicates an expected call of UnitWorkloadVersion.

func (*MockContextMockRecorder) UntrackPayload

func (mr *MockContextMockRecorder) UntrackPayload(arg0, arg1 any) *gomock.Call

UntrackPayload indicates an expected call of UntrackPayload.

func (*MockContextMockRecorder) UpdateActionResults

func (mr *MockContextMockRecorder) UpdateActionResults(arg0, arg1 any) *gomock.Call

UpdateActionResults indicates an expected call of UpdateActionResults.

func (*MockContextMockRecorder) UpdateSecret

func (mr *MockContextMockRecorder) UpdateSecret(arg0, arg1 any) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret.

func (*MockContextMockRecorder) WorkloadName

func (mr *MockContextMockRecorder) WorkloadName() *gomock.Call

WorkloadName indicates an expected call of WorkloadName.

func (*MockContextMockRecorder) WriteLeaderSettings

func (mr *MockContextMockRecorder) WriteLeaderSettings(arg0 any) *gomock.Call

WriteLeaderSettings indicates an expected call of WriteLeaderSettings.

type MockContextRelation

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

MockContextRelation is a mock of ContextRelation interface.

func NewMockContextRelation

func NewMockContextRelation(ctrl *gomock.Controller) *MockContextRelation

NewMockContextRelation creates a new mock instance.

func (*MockContextRelation) ApplicationSettings

func (m *MockContextRelation) ApplicationSettings() (jujuc.Settings, error)

ApplicationSettings mocks base method.

func (*MockContextRelation) EXPECT

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

func (*MockContextRelation) FakeId

func (m *MockContextRelation) FakeId() string

FakeId mocks base method.

func (*MockContextRelation) Id

func (m *MockContextRelation) Id() int

Id mocks base method.

func (*MockContextRelation) Life

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

Life mocks base method.

func (*MockContextRelation) Name

func (m *MockContextRelation) Name() string

Name mocks base method.

func (*MockContextRelation) ReadApplicationSettings

func (m *MockContextRelation) ReadApplicationSettings(arg0 string) (params.Settings, error)

ReadApplicationSettings mocks base method.

func (*MockContextRelation) ReadSettings

func (m *MockContextRelation) ReadSettings(arg0 string) (params.Settings, error)

ReadSettings mocks base method.

func (*MockContextRelation) RelationTag

func (m *MockContextRelation) RelationTag() names.RelationTag

RelationTag mocks base method.

func (*MockContextRelation) RemoteApplicationName

func (m *MockContextRelation) RemoteApplicationName() string

RemoteApplicationName mocks base method.

func (*MockContextRelation) SetStatus

func (m *MockContextRelation) SetStatus(arg0 relation.Status) error

SetStatus mocks base method.

func (*MockContextRelation) Settings

func (m *MockContextRelation) Settings() (jujuc.Settings, error)

Settings mocks base method.

func (*MockContextRelation) Suspended

func (m *MockContextRelation) Suspended() bool

Suspended mocks base method.

func (*MockContextRelation) UnitNames

func (m *MockContextRelation) UnitNames() []string

UnitNames mocks base method.

type MockContextRelationMockRecorder

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

MockContextRelationMockRecorder is the mock recorder for MockContextRelation.

func (*MockContextRelationMockRecorder) ApplicationSettings

func (mr *MockContextRelationMockRecorder) ApplicationSettings() *gomock.Call

ApplicationSettings indicates an expected call of ApplicationSettings.

func (*MockContextRelationMockRecorder) FakeId

FakeId indicates an expected call of FakeId.

func (*MockContextRelationMockRecorder) Id

Id indicates an expected call of Id.

func (*MockContextRelationMockRecorder) Life

Life indicates an expected call of Life.

func (*MockContextRelationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockContextRelationMockRecorder) ReadApplicationSettings

func (mr *MockContextRelationMockRecorder) ReadApplicationSettings(arg0 any) *gomock.Call

ReadApplicationSettings indicates an expected call of ReadApplicationSettings.

func (*MockContextRelationMockRecorder) ReadSettings

func (mr *MockContextRelationMockRecorder) ReadSettings(arg0 any) *gomock.Call

ReadSettings indicates an expected call of ReadSettings.

func (*MockContextRelationMockRecorder) RelationTag

func (mr *MockContextRelationMockRecorder) RelationTag() *gomock.Call

RelationTag indicates an expected call of RelationTag.

func (*MockContextRelationMockRecorder) RemoteApplicationName

func (mr *MockContextRelationMockRecorder) RemoteApplicationName() *gomock.Call

RemoteApplicationName indicates an expected call of RemoteApplicationName.

func (*MockContextRelationMockRecorder) SetStatus

func (mr *MockContextRelationMockRecorder) SetStatus(arg0 any) *gomock.Call

SetStatus indicates an expected call of SetStatus.

func (*MockContextRelationMockRecorder) Settings

Settings indicates an expected call of Settings.

func (*MockContextRelationMockRecorder) Suspended

func (mr *MockContextRelationMockRecorder) Suspended() *gomock.Call

Suspended indicates an expected call of Suspended.

func (*MockContextRelationMockRecorder) UnitNames

func (mr *MockContextRelationMockRecorder) UnitNames() *gomock.Call

UnitNames indicates an expected call of UnitNames.

type MockJujuLogContext

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

MockJujuLogContext is a mock of JujuLogContext interface.

func NewMockJujuLogContext

func NewMockJujuLogContext(ctrl *gomock.Controller) *MockJujuLogContext

NewMockJujuLogContext creates a new mock instance.

func (*MockJujuLogContext) EXPECT

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

func (*MockJujuLogContext) GetLogger

func (m *MockJujuLogContext) GetLogger(arg0 string) loggo.Logger

GetLogger mocks base method.

func (*MockJujuLogContext) HookRelation

func (m *MockJujuLogContext) HookRelation() (jujuc.ContextRelation, error)

HookRelation mocks base method.

func (*MockJujuLogContext) UnitName

func (m *MockJujuLogContext) UnitName() string

UnitName mocks base method.

type MockJujuLogContextMockRecorder

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

MockJujuLogContextMockRecorder is the mock recorder for MockJujuLogContext.

func (*MockJujuLogContextMockRecorder) GetLogger

func (mr *MockJujuLogContextMockRecorder) GetLogger(arg0 any) *gomock.Call

GetLogger indicates an expected call of GetLogger.

func (*MockJujuLogContextMockRecorder) HookRelation

func (mr *MockJujuLogContextMockRecorder) HookRelation() *gomock.Call

HookRelation indicates an expected call of HookRelation.

func (*MockJujuLogContextMockRecorder) UnitName

func (mr *MockJujuLogContextMockRecorder) UnitName() *gomock.Call

UnitName indicates an expected call of UnitName.

Jump to

Keyboard shortcuts

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