juju: github.com/juju/juju/worker/uniter/runner/jujuc/mocks Index | Files

package mocks

import "github.com/juju/juju/worker/uniter/runner/jujuc/mocks"

Package mocks is a generated GoMock package.

Index

Package Files

context_mock.go

type MockContext Uses

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

MockContext is a mock of Context interface

func NewMockContext Uses

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance

func (*MockContext) ActionParams Uses

func (m *MockContext) ActionParams() (map[string]interface{}, error)

ActionParams mocks base method

func (*MockContext) AddMetric Uses

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

AddMetric mocks base method

func (*MockContext) AddMetricLabels Uses

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

AddMetricLabels mocks base method

func (*MockContext) AddUnitStorage Uses

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

AddUnitStorage mocks base method

func (*MockContext) ApplicationStatus Uses

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

ApplicationStatus mocks base method

func (*MockContext) AvailabilityZone Uses

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

AvailabilityZone mocks base method

func (*MockContext) ClosePorts Uses

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

ClosePorts mocks base method

func (*MockContext) CloudSpec Uses

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

CloudSpec mocks base method

func (*MockContext) Component Uses

func (m *MockContext) Component(arg0 string) (jujuc.ContextComponent, error)

Component mocks base method

func (*MockContext) ConfigSettings Uses

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

ConfigSettings mocks base method

func (*MockContext) DeleteCharmStateValue Uses

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

DeleteCharmStateValue mocks base method

func (*MockContext) EXPECT Uses

func (m *MockContext) EXPECT() *MockContextMockRecorder

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

func (*MockContext) GetCharmState Uses

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

GetCharmState mocks base method

func (*MockContext) GetCharmStateValue Uses

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

GetCharmStateValue mocks base method

func (*MockContext) GetPodSpec Uses

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

GetPodSpec mocks base method

func (*MockContext) GetRawK8sSpec Uses

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

GetRawK8sSpec mocks base method

func (*MockContext) GoalState Uses

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

GoalState mocks base method

func (*MockContext) HookRelation Uses

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

HookRelation mocks base method

func (*MockContext) HookStorage Uses

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

HookStorage mocks base method

func (*MockContext) IsLeader Uses

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

IsLeader mocks base method

func (*MockContext) LeaderSettings Uses

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

LeaderSettings mocks base method

func (*MockContext) LogActionMessage Uses

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

LogActionMessage mocks base method

func (*MockContext) NetworkInfo Uses

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

NetworkInfo mocks base method

func (*MockContext) OpenPorts Uses

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

OpenPorts mocks base method

func (*MockContext) OpenedPorts Uses

func (m *MockContext) OpenedPorts() []network.PortRange

OpenedPorts mocks base method

func (*MockContext) PrivateAddress Uses

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

PrivateAddress mocks base method

func (*MockContext) PublicAddress Uses

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

PublicAddress mocks base method

func (*MockContext) Relation Uses

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

Relation mocks base method

func (*MockContext) RelationIds Uses

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

RelationIds mocks base method

func (*MockContext) RemoteApplicationName Uses

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

RemoteApplicationName mocks base method

func (*MockContext) RemoteUnitName Uses

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

RemoteUnitName mocks base method

func (*MockContext) RequestReboot Uses

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

RequestReboot mocks base method

func (*MockContext) SetActionFailed Uses

func (m *MockContext) SetActionFailed() error

SetActionFailed mocks base method

func (*MockContext) SetActionMessage Uses

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

SetActionMessage mocks base method

func (*MockContext) SetApplicationStatus Uses

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

SetApplicationStatus mocks base method

func (*MockContext) SetCharmStateValue Uses

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

SetCharmStateValue mocks base method

func (*MockContext) SetPodSpec Uses

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

SetPodSpec mocks base method

func (*MockContext) SetRawK8sSpec Uses

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

SetRawK8sSpec mocks base method

func (*MockContext) SetUnitStatus Uses

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

SetUnitStatus mocks base method

func (*MockContext) SetUnitWorkloadVersion Uses

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

SetUnitWorkloadVersion mocks base method

func (*MockContext) Storage Uses

func (m *MockContext) Storage(arg0 names.StorageTag) (jujuc.ContextStorageAttachment, error)

Storage mocks base method

func (*MockContext) StorageTags Uses

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

StorageTags mocks base method

func (*MockContext) UnitName Uses

func (m *MockContext) UnitName() string

UnitName mocks base method

func (*MockContext) UnitStatus Uses

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

UnitStatus mocks base method

func (*MockContext) UnitWorkloadVersion Uses

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

UnitWorkloadVersion mocks base method

func (*MockContext) UpdateActionResults Uses

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

UpdateActionResults mocks base method

func (*MockContext) WriteLeaderSettings Uses

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

WriteLeaderSettings mocks base method

type MockContextMockRecorder Uses

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

MockContextMockRecorder is the mock recorder for MockContext

func (*MockContextMockRecorder) ActionParams Uses

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

ActionParams indicates an expected call of ActionParams

func (*MockContextMockRecorder) AddMetric Uses

func (mr *MockContextMockRecorder) AddMetric(arg0, arg1, arg2 interface{}) *gomock.Call

AddMetric indicates an expected call of AddMetric

func (*MockContextMockRecorder) AddMetricLabels Uses

func (mr *MockContextMockRecorder) AddMetricLabels(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

AddMetricLabels indicates an expected call of AddMetricLabels

func (*MockContextMockRecorder) AddUnitStorage Uses

func (mr *MockContextMockRecorder) AddUnitStorage(arg0 interface{}) *gomock.Call

AddUnitStorage indicates an expected call of AddUnitStorage

func (*MockContextMockRecorder) ApplicationStatus Uses

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

ApplicationStatus indicates an expected call of ApplicationStatus

func (*MockContextMockRecorder) AvailabilityZone Uses

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

AvailabilityZone indicates an expected call of AvailabilityZone

func (*MockContextMockRecorder) ClosePorts Uses

func (mr *MockContextMockRecorder) ClosePorts(arg0, arg1, arg2 interface{}) *gomock.Call

ClosePorts indicates an expected call of ClosePorts

func (*MockContextMockRecorder) CloudSpec Uses

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

CloudSpec indicates an expected call of CloudSpec

func (*MockContextMockRecorder) Component Uses

func (mr *MockContextMockRecorder) Component(arg0 interface{}) *gomock.Call

Component indicates an expected call of Component

func (*MockContextMockRecorder) ConfigSettings Uses

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

ConfigSettings indicates an expected call of ConfigSettings

func (*MockContextMockRecorder) DeleteCharmStateValue Uses

func (mr *MockContextMockRecorder) DeleteCharmStateValue(arg0 interface{}) *gomock.Call

DeleteCharmStateValue indicates an expected call of DeleteCharmStateValue

func (*MockContextMockRecorder) GetCharmState Uses

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

GetCharmState indicates an expected call of GetCharmState

func (*MockContextMockRecorder) GetCharmStateValue Uses

func (mr *MockContextMockRecorder) GetCharmStateValue(arg0 interface{}) *gomock.Call

GetCharmStateValue indicates an expected call of GetCharmStateValue

func (*MockContextMockRecorder) GetPodSpec Uses

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

GetPodSpec indicates an expected call of GetPodSpec

func (*MockContextMockRecorder) GetRawK8sSpec Uses

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

GetRawK8sSpec indicates an expected call of GetRawK8sSpec

func (*MockContextMockRecorder) GoalState Uses

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

GoalState indicates an expected call of GoalState

func (*MockContextMockRecorder) HookRelation Uses

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

HookRelation indicates an expected call of HookRelation

func (*MockContextMockRecorder) HookStorage Uses

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

HookStorage indicates an expected call of HookStorage

func (*MockContextMockRecorder) IsLeader Uses

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

IsLeader indicates an expected call of IsLeader

func (*MockContextMockRecorder) LeaderSettings Uses

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

LeaderSettings indicates an expected call of LeaderSettings

func (*MockContextMockRecorder) LogActionMessage Uses

func (mr *MockContextMockRecorder) LogActionMessage(arg0 interface{}) *gomock.Call

LogActionMessage indicates an expected call of LogActionMessage

func (*MockContextMockRecorder) NetworkInfo Uses

func (mr *MockContextMockRecorder) NetworkInfo(arg0, arg1 interface{}) *gomock.Call

NetworkInfo indicates an expected call of NetworkInfo

func (*MockContextMockRecorder) OpenPorts Uses

func (mr *MockContextMockRecorder) OpenPorts(arg0, arg1, arg2 interface{}) *gomock.Call

OpenPorts indicates an expected call of OpenPorts

func (*MockContextMockRecorder) OpenedPorts Uses

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

OpenedPorts indicates an expected call of OpenedPorts

func (*MockContextMockRecorder) PrivateAddress Uses

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

PrivateAddress indicates an expected call of PrivateAddress

func (*MockContextMockRecorder) PublicAddress Uses

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

PublicAddress indicates an expected call of PublicAddress

func (*MockContextMockRecorder) Relation Uses

func (mr *MockContextMockRecorder) Relation(arg0 interface{}) *gomock.Call

Relation indicates an expected call of Relation

func (*MockContextMockRecorder) RelationIds Uses

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

RelationIds indicates an expected call of RelationIds

func (*MockContextMockRecorder) RemoteApplicationName Uses

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

RemoteApplicationName indicates an expected call of RemoteApplicationName

func (*MockContextMockRecorder) RemoteUnitName Uses

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

RemoteUnitName indicates an expected call of RemoteUnitName

func (*MockContextMockRecorder) RequestReboot Uses

func (mr *MockContextMockRecorder) RequestReboot(arg0 interface{}) *gomock.Call

RequestReboot indicates an expected call of RequestReboot

func (*MockContextMockRecorder) SetActionFailed Uses

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

SetActionFailed indicates an expected call of SetActionFailed

func (*MockContextMockRecorder) SetActionMessage Uses

func (mr *MockContextMockRecorder) SetActionMessage(arg0 interface{}) *gomock.Call

SetActionMessage indicates an expected call of SetActionMessage

func (*MockContextMockRecorder) SetApplicationStatus Uses

func (mr *MockContextMockRecorder) SetApplicationStatus(arg0 interface{}) *gomock.Call

SetApplicationStatus indicates an expected call of SetApplicationStatus

func (*MockContextMockRecorder) SetCharmStateValue Uses

func (mr *MockContextMockRecorder) SetCharmStateValue(arg0, arg1 interface{}) *gomock.Call

SetCharmStateValue indicates an expected call of SetCharmStateValue

func (*MockContextMockRecorder) SetPodSpec Uses

func (mr *MockContextMockRecorder) SetPodSpec(arg0 interface{}) *gomock.Call

SetPodSpec indicates an expected call of SetPodSpec

func (*MockContextMockRecorder) SetRawK8sSpec Uses

func (mr *MockContextMockRecorder) SetRawK8sSpec(arg0 interface{}) *gomock.Call

SetRawK8sSpec indicates an expected call of SetRawK8sSpec

func (*MockContextMockRecorder) SetUnitStatus Uses

func (mr *MockContextMockRecorder) SetUnitStatus(arg0 interface{}) *gomock.Call

SetUnitStatus indicates an expected call of SetUnitStatus

func (*MockContextMockRecorder) SetUnitWorkloadVersion Uses

func (mr *MockContextMockRecorder) SetUnitWorkloadVersion(arg0 interface{}) *gomock.Call

SetUnitWorkloadVersion indicates an expected call of SetUnitWorkloadVersion

func (*MockContextMockRecorder) Storage Uses

func (mr *MockContextMockRecorder) Storage(arg0 interface{}) *gomock.Call

Storage indicates an expected call of Storage

func (*MockContextMockRecorder) StorageTags Uses

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

StorageTags indicates an expected call of StorageTags

func (*MockContextMockRecorder) UnitName Uses

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

UnitName indicates an expected call of UnitName

func (*MockContextMockRecorder) UnitStatus Uses

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

UnitStatus indicates an expected call of UnitStatus

func (*MockContextMockRecorder) UnitWorkloadVersion Uses

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

UnitWorkloadVersion indicates an expected call of UnitWorkloadVersion

func (*MockContextMockRecorder) UpdateActionResults Uses

func (mr *MockContextMockRecorder) UpdateActionResults(arg0, arg1 interface{}) *gomock.Call

UpdateActionResults indicates an expected call of UpdateActionResults

func (*MockContextMockRecorder) WriteLeaderSettings Uses

func (mr *MockContextMockRecorder) WriteLeaderSettings(arg0 interface{}) *gomock.Call

WriteLeaderSettings indicates an expected call of WriteLeaderSettings

Package mocks imports 9 packages (graph). Updated 2020-08-05. Refresh now. Tools for package owners.