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.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRelation
- func (m *MockRelation) EXPECT() *MockRelationMockRecorder
- func (m *MockRelation) Endpoint() (*uniter.Endpoint, error)
- func (m *MockRelation) Id() int
- func (m *MockRelation) Life() life.Value
- func (m *MockRelation) OtherApplication() string
- func (m *MockRelation) Refresh() error
- func (m *MockRelation) SetStatus(arg0 relation.Status) error
- func (m *MockRelation) String() string
- func (m *MockRelation) Suspended() bool
- func (m *MockRelation) Tag() names.RelationTag
- func (m *MockRelation) Unit(arg0 names.UnitTag) (relation0.RelationUnit, error)
- func (m *MockRelation) UpdateSuspended(arg0 bool)
- type MockRelationMockRecorder
- func (mr *MockRelationMockRecorder) Endpoint() *gomock.Call
- func (mr *MockRelationMockRecorder) Id() *gomock.Call
- func (mr *MockRelationMockRecorder) Life() *gomock.Call
- func (mr *MockRelationMockRecorder) OtherApplication() *gomock.Call
- func (mr *MockRelationMockRecorder) Refresh() *gomock.Call
- func (mr *MockRelationMockRecorder) SetStatus(arg0 any) *gomock.Call
- func (mr *MockRelationMockRecorder) String() *gomock.Call
- func (mr *MockRelationMockRecorder) Suspended() *gomock.Call
- func (mr *MockRelationMockRecorder) Tag() *gomock.Call
- func (mr *MockRelationMockRecorder) Unit(arg0 any) *gomock.Call
- func (mr *MockRelationMockRecorder) UpdateSuspended(arg0 any) *gomock.Call
- type MockRelationStateTracker
- func (m *MockRelationStateTracker) CommitHook(arg0 hook.Info) error
- func (m *MockRelationStateTracker) EXPECT() *MockRelationStateTrackerMockRecorder
- func (m *MockRelationStateTracker) GetInfo() map[int]*context.RelationInfo
- func (m *MockRelationStateTracker) HasContainerScope(arg0 int) (bool, error)
- func (m *MockRelationStateTracker) IsImplicit(arg0 int) (bool, error)
- func (m *MockRelationStateTracker) IsKnown(arg0 int) bool
- func (m *MockRelationStateTracker) IsPeerRelation(arg0 int) (bool, error)
- func (m *MockRelationStateTracker) LocalUnitAndApplicationLife() (life.Value, life.Value, error)
- func (m *MockRelationStateTracker) LocalUnitName() string
- func (m *MockRelationStateTracker) Name(arg0 int) (string, error)
- func (m *MockRelationStateTracker) PrepareHook(arg0 hook.Info) (string, error)
- func (m *MockRelationStateTracker) RelationCreated(arg0 int) bool
- func (m *MockRelationStateTracker) RemoteApplication(arg0 int) string
- func (m *MockRelationStateTracker) Report() map[string]any
- func (m *MockRelationStateTracker) State(arg0 int) (*relation.State, error)
- func (m *MockRelationStateTracker) StateFound(arg0 int) bool
- func (m *MockRelationStateTracker) SynchronizeScopes(arg0 remotestate.Snapshot) error
- type MockRelationStateTrackerMockRecorder
- func (mr *MockRelationStateTrackerMockRecorder) CommitHook(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) GetInfo() *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) HasContainerScope(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) IsImplicit(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) IsKnown(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) IsPeerRelation(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife() *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) LocalUnitName() *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) Name(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) PrepareHook(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) RelationCreated(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) RemoteApplication(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) Report() *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) State(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) StateFound(arg0 any) *gomock.Call
- func (mr *MockRelationStateTrackerMockRecorder) SynchronizeScopes(arg0 any) *gomock.Call
- type MockRelationUnit
- func (m *MockRelationUnit) ApplicationSettings() (*uniter.Settings, error)
- func (m *MockRelationUnit) EXPECT() *MockRelationUnitMockRecorder
- func (m *MockRelationUnit) Endpoint() uniter.Endpoint
- func (m *MockRelationUnit) EnterScope() error
- func (m *MockRelationUnit) LeaveScope() error
- func (m *MockRelationUnit) ReadSettings(arg0 string) (params.Settings, error)
- func (m *MockRelationUnit) Relation() relation0.Relation
- func (m *MockRelationUnit) Settings() (*uniter.Settings, error)
- type MockRelationUnitMockRecorder
- func (mr *MockRelationUnitMockRecorder) ApplicationSettings() *gomock.Call
- func (mr *MockRelationUnitMockRecorder) Endpoint() *gomock.Call
- func (mr *MockRelationUnitMockRecorder) EnterScope() *gomock.Call
- func (mr *MockRelationUnitMockRecorder) LeaveScope() *gomock.Call
- func (mr *MockRelationUnitMockRecorder) ReadSettings(arg0 any) *gomock.Call
- func (mr *MockRelationUnitMockRecorder) Relation() *gomock.Call
- func (mr *MockRelationUnitMockRecorder) Settings() *gomock.Call
- type MockRelationer
- func (m *MockRelationer) CommitHook(arg0 hook.Info) error
- func (m *MockRelationer) ContextInfo() *context.RelationInfo
- func (m *MockRelationer) EXPECT() *MockRelationerMockRecorder
- func (m *MockRelationer) IsDying() bool
- func (m *MockRelationer) IsImplicit() bool
- func (m *MockRelationer) Join() error
- func (m *MockRelationer) PrepareHook(arg0 hook.Info) (string, error)
- func (m *MockRelationer) RelationUnit() relation.RelationUnit
- func (m *MockRelationer) SetDying() error
- type MockRelationerMockRecorder
- func (mr *MockRelationerMockRecorder) CommitHook(arg0 any) *gomock.Call
- func (mr *MockRelationerMockRecorder) ContextInfo() *gomock.Call
- func (mr *MockRelationerMockRecorder) IsDying() *gomock.Call
- func (mr *MockRelationerMockRecorder) IsImplicit() *gomock.Call
- func (mr *MockRelationerMockRecorder) Join() *gomock.Call
- func (mr *MockRelationerMockRecorder) PrepareHook(arg0 any) *gomock.Call
- func (mr *MockRelationerMockRecorder) RelationUnit() *gomock.Call
- func (mr *MockRelationerMockRecorder) SetDying() *gomock.Call
- type MockStateManager
- func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder
- func (m *MockStateManager) KnownIDs() []int
- func (m *MockStateManager) Relation(arg0 int) (*relation.State, error)
- func (m *MockStateManager) RelationFound(arg0 int) bool
- func (m *MockStateManager) RemoveRelation(arg0 int, arg1 relation.UnitGetter, arg2 map[string]bool) error
- func (m *MockStateManager) SetRelation(arg0 *relation.State) error
- type MockStateManagerMockRecorder
- func (mr *MockStateManagerMockRecorder) KnownIDs() *gomock.Call
- func (mr *MockStateManagerMockRecorder) Relation(arg0 any) *gomock.Call
- func (mr *MockStateManagerMockRecorder) RelationFound(arg0 any) *gomock.Call
- func (mr *MockStateManagerMockRecorder) RemoveRelation(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStateManagerMockRecorder) SetRelation(arg0 any) *gomock.Call
- type MockStateTrackerState
- func (m *MockStateTrackerState) EXPECT() *MockStateTrackerStateMockRecorder
- func (m *MockStateTrackerState) Relation(arg0 names.RelationTag) (relation.Relation, error)
- func (m *MockStateTrackerState) RelationById(arg0 int) (relation.Relation, error)
- func (m *MockStateTrackerState) Unit(arg0 names.UnitTag) (relation.Unit, error)
- type MockStateTrackerStateMockRecorder
- type MockSubordinateDestroyer
- type MockSubordinateDestroyerMockRecorder
- type MockUnit
- func (m *MockUnit) Application() (relation0.Application, error)
- func (m *MockUnit) ApplicationTag() names.ApplicationTag
- func (m *MockUnit) Destroy() error
- func (m *MockUnit) EXPECT() *MockUnitMockRecorder
- func (m *MockUnit) Life() life.Value
- func (m *MockUnit) Name() string
- func (m *MockUnit) Refresh() error
- func (m *MockUnit) RelationsStatus() ([]uniter.RelationStatus, error)
- func (m *MockUnit) SetState(arg0 params.SetUnitStateArg) error
- func (m *MockUnit) State() (params.UnitStateResult, error)
- func (m *MockUnit) Tag() names.UnitTag
- func (m *MockUnit) Watch() (watcher.NotifyWatcher, error)
- type MockUnitGetter
- type MockUnitGetterMockRecorder
- type MockUnitMockRecorder
- func (mr *MockUnitMockRecorder) Application() *gomock.Call
- func (mr *MockUnitMockRecorder) ApplicationTag() *gomock.Call
- func (mr *MockUnitMockRecorder) Destroy() *gomock.Call
- func (mr *MockUnitMockRecorder) Life() *gomock.Call
- func (mr *MockUnitMockRecorder) Name() *gomock.Call
- func (mr *MockUnitMockRecorder) Refresh() *gomock.Call
- func (mr *MockUnitMockRecorder) RelationsStatus() *gomock.Call
- func (mr *MockUnitMockRecorder) SetState(arg0 any) *gomock.Call
- func (mr *MockUnitMockRecorder) State() *gomock.Call
- func (mr *MockUnitMockRecorder) Tag() *gomock.Call
- func (mr *MockUnitMockRecorder) Watch() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRelation ¶
type MockRelation struct {
// contains filtered or unexported fields
}
MockRelation is a mock of Relation interface.
func NewMockRelation ¶
func NewMockRelation(ctrl *gomock.Controller) *MockRelation
NewMockRelation creates a new mock instance.
func (*MockRelation) EXPECT ¶
func (m *MockRelation) EXPECT() *MockRelationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelation) Endpoint ¶
func (m *MockRelation) Endpoint() (*uniter.Endpoint, error)
Endpoint mocks base method.
func (*MockRelation) OtherApplication ¶
func (m *MockRelation) OtherApplication() string
OtherApplication mocks base method.
func (*MockRelation) SetStatus ¶
func (m *MockRelation) SetStatus(arg0 relation.Status) error
SetStatus mocks base method.
func (*MockRelation) Suspended ¶
func (m *MockRelation) Suspended() bool
Suspended mocks base method.
func (*MockRelation) Unit ¶
func (m *MockRelation) Unit(arg0 names.UnitTag) (relation0.RelationUnit, error)
Unit mocks base method.
func (*MockRelation) UpdateSuspended ¶
func (m *MockRelation) UpdateSuspended(arg0 bool)
UpdateSuspended mocks base method.
type MockRelationMockRecorder ¶
type MockRelationMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationMockRecorder is the mock recorder for MockRelation.
func (*MockRelationMockRecorder) Endpoint ¶
func (mr *MockRelationMockRecorder) Endpoint() *gomock.Call
Endpoint indicates an expected call of Endpoint.
func (*MockRelationMockRecorder) Id ¶
func (mr *MockRelationMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
func (*MockRelationMockRecorder) Life ¶
func (mr *MockRelationMockRecorder) Life() *gomock.Call
Life indicates an expected call of Life.
func (*MockRelationMockRecorder) OtherApplication ¶
func (mr *MockRelationMockRecorder) OtherApplication() *gomock.Call
OtherApplication indicates an expected call of OtherApplication.
func (*MockRelationMockRecorder) Refresh ¶
func (mr *MockRelationMockRecorder) Refresh() *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockRelationMockRecorder) SetStatus ¶
func (mr *MockRelationMockRecorder) SetStatus(arg0 any) *gomock.Call
SetStatus indicates an expected call of SetStatus.
func (*MockRelationMockRecorder) String ¶
func (mr *MockRelationMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockRelationMockRecorder) Suspended ¶
func (mr *MockRelationMockRecorder) Suspended() *gomock.Call
Suspended indicates an expected call of Suspended.
func (*MockRelationMockRecorder) Tag ¶
func (mr *MockRelationMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag.
func (*MockRelationMockRecorder) Unit ¶
func (mr *MockRelationMockRecorder) Unit(arg0 any) *gomock.Call
Unit indicates an expected call of Unit.
func (*MockRelationMockRecorder) UpdateSuspended ¶
func (mr *MockRelationMockRecorder) UpdateSuspended(arg0 any) *gomock.Call
UpdateSuspended indicates an expected call of UpdateSuspended.
type MockRelationStateTracker ¶
type MockRelationStateTracker struct {
// contains filtered or unexported fields
}
MockRelationStateTracker is a mock of RelationStateTracker interface.
func NewMockRelationStateTracker ¶
func NewMockRelationStateTracker(ctrl *gomock.Controller) *MockRelationStateTracker
NewMockRelationStateTracker creates a new mock instance.
func (*MockRelationStateTracker) CommitHook ¶
func (m *MockRelationStateTracker) CommitHook(arg0 hook.Info) error
CommitHook mocks base method.
func (*MockRelationStateTracker) EXPECT ¶
func (m *MockRelationStateTracker) EXPECT() *MockRelationStateTrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelationStateTracker) GetInfo ¶
func (m *MockRelationStateTracker) GetInfo() map[int]*context.RelationInfo
GetInfo mocks base method.
func (*MockRelationStateTracker) HasContainerScope ¶
func (m *MockRelationStateTracker) HasContainerScope(arg0 int) (bool, error)
HasContainerScope mocks base method.
func (*MockRelationStateTracker) IsImplicit ¶
func (m *MockRelationStateTracker) IsImplicit(arg0 int) (bool, error)
IsImplicit mocks base method.
func (*MockRelationStateTracker) IsKnown ¶
func (m *MockRelationStateTracker) IsKnown(arg0 int) bool
IsKnown mocks base method.
func (*MockRelationStateTracker) IsPeerRelation ¶
func (m *MockRelationStateTracker) IsPeerRelation(arg0 int) (bool, error)
IsPeerRelation mocks base method.
func (*MockRelationStateTracker) LocalUnitAndApplicationLife ¶
LocalUnitAndApplicationLife mocks base method.
func (*MockRelationStateTracker) LocalUnitName ¶
func (m *MockRelationStateTracker) LocalUnitName() string
LocalUnitName mocks base method.
func (*MockRelationStateTracker) Name ¶
func (m *MockRelationStateTracker) Name(arg0 int) (string, error)
Name mocks base method.
func (*MockRelationStateTracker) PrepareHook ¶
func (m *MockRelationStateTracker) PrepareHook(arg0 hook.Info) (string, error)
PrepareHook mocks base method.
func (*MockRelationStateTracker) RelationCreated ¶
func (m *MockRelationStateTracker) RelationCreated(arg0 int) bool
RelationCreated mocks base method.
func (*MockRelationStateTracker) RemoteApplication ¶
func (m *MockRelationStateTracker) RemoteApplication(arg0 int) string
RemoteApplication mocks base method.
func (*MockRelationStateTracker) Report ¶
func (m *MockRelationStateTracker) Report() map[string]any
Report mocks base method.
func (*MockRelationStateTracker) State ¶
func (m *MockRelationStateTracker) State(arg0 int) (*relation.State, error)
State mocks base method.
func (*MockRelationStateTracker) StateFound ¶
func (m *MockRelationStateTracker) StateFound(arg0 int) bool
StateFound mocks base method.
func (*MockRelationStateTracker) SynchronizeScopes ¶
func (m *MockRelationStateTracker) SynchronizeScopes(arg0 remotestate.Snapshot) error
SynchronizeScopes mocks base method.
type MockRelationStateTrackerMockRecorder ¶
type MockRelationStateTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationStateTrackerMockRecorder is the mock recorder for MockRelationStateTracker.
func (*MockRelationStateTrackerMockRecorder) CommitHook ¶
func (mr *MockRelationStateTrackerMockRecorder) CommitHook(arg0 any) *gomock.Call
CommitHook indicates an expected call of CommitHook.
func (*MockRelationStateTrackerMockRecorder) GetInfo ¶
func (mr *MockRelationStateTrackerMockRecorder) GetInfo() *gomock.Call
GetInfo indicates an expected call of GetInfo.
func (*MockRelationStateTrackerMockRecorder) HasContainerScope ¶
func (mr *MockRelationStateTrackerMockRecorder) HasContainerScope(arg0 any) *gomock.Call
HasContainerScope indicates an expected call of HasContainerScope.
func (*MockRelationStateTrackerMockRecorder) IsImplicit ¶
func (mr *MockRelationStateTrackerMockRecorder) IsImplicit(arg0 any) *gomock.Call
IsImplicit indicates an expected call of IsImplicit.
func (*MockRelationStateTrackerMockRecorder) IsKnown ¶
func (mr *MockRelationStateTrackerMockRecorder) IsKnown(arg0 any) *gomock.Call
IsKnown indicates an expected call of IsKnown.
func (*MockRelationStateTrackerMockRecorder) IsPeerRelation ¶
func (mr *MockRelationStateTrackerMockRecorder) IsPeerRelation(arg0 any) *gomock.Call
IsPeerRelation indicates an expected call of IsPeerRelation.
func (*MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife ¶
func (mr *MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife() *gomock.Call
LocalUnitAndApplicationLife indicates an expected call of LocalUnitAndApplicationLife.
func (*MockRelationStateTrackerMockRecorder) LocalUnitName ¶
func (mr *MockRelationStateTrackerMockRecorder) LocalUnitName() *gomock.Call
LocalUnitName indicates an expected call of LocalUnitName.
func (*MockRelationStateTrackerMockRecorder) Name ¶
func (mr *MockRelationStateTrackerMockRecorder) Name(arg0 any) *gomock.Call
Name indicates an expected call of Name.
func (*MockRelationStateTrackerMockRecorder) PrepareHook ¶
func (mr *MockRelationStateTrackerMockRecorder) PrepareHook(arg0 any) *gomock.Call
PrepareHook indicates an expected call of PrepareHook.
func (*MockRelationStateTrackerMockRecorder) RelationCreated ¶
func (mr *MockRelationStateTrackerMockRecorder) RelationCreated(arg0 any) *gomock.Call
RelationCreated indicates an expected call of RelationCreated.
func (*MockRelationStateTrackerMockRecorder) RemoteApplication ¶
func (mr *MockRelationStateTrackerMockRecorder) RemoteApplication(arg0 any) *gomock.Call
RemoteApplication indicates an expected call of RemoteApplication.
func (*MockRelationStateTrackerMockRecorder) Report ¶
func (mr *MockRelationStateTrackerMockRecorder) Report() *gomock.Call
Report indicates an expected call of Report.
func (*MockRelationStateTrackerMockRecorder) State ¶
func (mr *MockRelationStateTrackerMockRecorder) State(arg0 any) *gomock.Call
State indicates an expected call of State.
func (*MockRelationStateTrackerMockRecorder) StateFound ¶
func (mr *MockRelationStateTrackerMockRecorder) StateFound(arg0 any) *gomock.Call
StateFound indicates an expected call of StateFound.
func (*MockRelationStateTrackerMockRecorder) SynchronizeScopes ¶
func (mr *MockRelationStateTrackerMockRecorder) SynchronizeScopes(arg0 any) *gomock.Call
SynchronizeScopes indicates an expected call of SynchronizeScopes.
type MockRelationUnit ¶
type MockRelationUnit struct {
// contains filtered or unexported fields
}
MockRelationUnit is a mock of RelationUnit interface.
func NewMockRelationUnit ¶
func NewMockRelationUnit(ctrl *gomock.Controller) *MockRelationUnit
NewMockRelationUnit creates a new mock instance.
func (*MockRelationUnit) ApplicationSettings ¶
func (m *MockRelationUnit) ApplicationSettings() (*uniter.Settings, error)
ApplicationSettings mocks base method.
func (*MockRelationUnit) EXPECT ¶
func (m *MockRelationUnit) EXPECT() *MockRelationUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelationUnit) Endpoint ¶
func (m *MockRelationUnit) Endpoint() uniter.Endpoint
Endpoint mocks base method.
func (*MockRelationUnit) EnterScope ¶
func (m *MockRelationUnit) EnterScope() error
EnterScope mocks base method.
func (*MockRelationUnit) LeaveScope ¶
func (m *MockRelationUnit) LeaveScope() error
LeaveScope mocks base method.
func (*MockRelationUnit) ReadSettings ¶
func (m *MockRelationUnit) ReadSettings(arg0 string) (params.Settings, error)
ReadSettings mocks base method.
func (*MockRelationUnit) Relation ¶
func (m *MockRelationUnit) Relation() relation0.Relation
Relation mocks base method.
type MockRelationUnitMockRecorder ¶
type MockRelationUnitMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationUnitMockRecorder is the mock recorder for MockRelationUnit.
func (*MockRelationUnitMockRecorder) ApplicationSettings ¶
func (mr *MockRelationUnitMockRecorder) ApplicationSettings() *gomock.Call
ApplicationSettings indicates an expected call of ApplicationSettings.
func (*MockRelationUnitMockRecorder) Endpoint ¶
func (mr *MockRelationUnitMockRecorder) Endpoint() *gomock.Call
Endpoint indicates an expected call of Endpoint.
func (*MockRelationUnitMockRecorder) EnterScope ¶
func (mr *MockRelationUnitMockRecorder) EnterScope() *gomock.Call
EnterScope indicates an expected call of EnterScope.
func (*MockRelationUnitMockRecorder) LeaveScope ¶
func (mr *MockRelationUnitMockRecorder) LeaveScope() *gomock.Call
LeaveScope indicates an expected call of LeaveScope.
func (*MockRelationUnitMockRecorder) ReadSettings ¶
func (mr *MockRelationUnitMockRecorder) ReadSettings(arg0 any) *gomock.Call
ReadSettings indicates an expected call of ReadSettings.
func (*MockRelationUnitMockRecorder) Relation ¶
func (mr *MockRelationUnitMockRecorder) Relation() *gomock.Call
Relation indicates an expected call of Relation.
func (*MockRelationUnitMockRecorder) Settings ¶
func (mr *MockRelationUnitMockRecorder) Settings() *gomock.Call
Settings indicates an expected call of Settings.
type MockRelationer ¶
type MockRelationer struct {
// contains filtered or unexported fields
}
MockRelationer is a mock of Relationer interface.
func NewMockRelationer ¶
func NewMockRelationer(ctrl *gomock.Controller) *MockRelationer
NewMockRelationer creates a new mock instance.
func (*MockRelationer) CommitHook ¶
func (m *MockRelationer) CommitHook(arg0 hook.Info) error
CommitHook mocks base method.
func (*MockRelationer) ContextInfo ¶
func (m *MockRelationer) ContextInfo() *context.RelationInfo
ContextInfo mocks base method.
func (*MockRelationer) EXPECT ¶
func (m *MockRelationer) EXPECT() *MockRelationerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelationer) IsImplicit ¶
func (m *MockRelationer) IsImplicit() bool
IsImplicit mocks base method.
func (*MockRelationer) PrepareHook ¶
func (m *MockRelationer) PrepareHook(arg0 hook.Info) (string, error)
PrepareHook mocks base method.
func (*MockRelationer) RelationUnit ¶
func (m *MockRelationer) RelationUnit() relation.RelationUnit
RelationUnit mocks base method.
func (*MockRelationer) SetDying ¶
func (m *MockRelationer) SetDying() error
SetDying mocks base method.
type MockRelationerMockRecorder ¶
type MockRelationerMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationerMockRecorder is the mock recorder for MockRelationer.
func (*MockRelationerMockRecorder) CommitHook ¶
func (mr *MockRelationerMockRecorder) CommitHook(arg0 any) *gomock.Call
CommitHook indicates an expected call of CommitHook.
func (*MockRelationerMockRecorder) ContextInfo ¶
func (mr *MockRelationerMockRecorder) ContextInfo() *gomock.Call
ContextInfo indicates an expected call of ContextInfo.
func (*MockRelationerMockRecorder) IsDying ¶
func (mr *MockRelationerMockRecorder) IsDying() *gomock.Call
IsDying indicates an expected call of IsDying.
func (*MockRelationerMockRecorder) IsImplicit ¶
func (mr *MockRelationerMockRecorder) IsImplicit() *gomock.Call
IsImplicit indicates an expected call of IsImplicit.
func (*MockRelationerMockRecorder) Join ¶
func (mr *MockRelationerMockRecorder) Join() *gomock.Call
Join indicates an expected call of Join.
func (*MockRelationerMockRecorder) PrepareHook ¶
func (mr *MockRelationerMockRecorder) PrepareHook(arg0 any) *gomock.Call
PrepareHook indicates an expected call of PrepareHook.
func (*MockRelationerMockRecorder) RelationUnit ¶
func (mr *MockRelationerMockRecorder) RelationUnit() *gomock.Call
RelationUnit indicates an expected call of RelationUnit.
func (*MockRelationerMockRecorder) SetDying ¶
func (mr *MockRelationerMockRecorder) SetDying() *gomock.Call
SetDying indicates an expected call of SetDying.
type MockStateManager ¶
type MockStateManager struct {
// contains filtered or unexported fields
}
MockStateManager is a mock of StateManager interface.
func NewMockStateManager ¶
func NewMockStateManager(ctrl *gomock.Controller) *MockStateManager
NewMockStateManager creates a new mock instance.
func (*MockStateManager) EXPECT ¶
func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateManager) KnownIDs ¶
func (m *MockStateManager) KnownIDs() []int
KnownIDs mocks base method.
func (*MockStateManager) Relation ¶
func (m *MockStateManager) Relation(arg0 int) (*relation.State, error)
Relation mocks base method.
func (*MockStateManager) RelationFound ¶
func (m *MockStateManager) RelationFound(arg0 int) bool
RelationFound mocks base method.
func (*MockStateManager) RemoveRelation ¶
func (m *MockStateManager) RemoveRelation(arg0 int, arg1 relation.UnitGetter, arg2 map[string]bool) error
RemoveRelation mocks base method.
func (*MockStateManager) SetRelation ¶
func (m *MockStateManager) SetRelation(arg0 *relation.State) error
SetRelation mocks base method.
type MockStateManagerMockRecorder ¶
type MockStateManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockStateManagerMockRecorder is the mock recorder for MockStateManager.
func (*MockStateManagerMockRecorder) KnownIDs ¶
func (mr *MockStateManagerMockRecorder) KnownIDs() *gomock.Call
KnownIDs indicates an expected call of KnownIDs.
func (*MockStateManagerMockRecorder) Relation ¶
func (mr *MockStateManagerMockRecorder) Relation(arg0 any) *gomock.Call
Relation indicates an expected call of Relation.
func (*MockStateManagerMockRecorder) RelationFound ¶
func (mr *MockStateManagerMockRecorder) RelationFound(arg0 any) *gomock.Call
RelationFound indicates an expected call of RelationFound.
func (*MockStateManagerMockRecorder) RemoveRelation ¶
func (mr *MockStateManagerMockRecorder) RemoveRelation(arg0, arg1, arg2 any) *gomock.Call
RemoveRelation indicates an expected call of RemoveRelation.
func (*MockStateManagerMockRecorder) SetRelation ¶
func (mr *MockStateManagerMockRecorder) SetRelation(arg0 any) *gomock.Call
SetRelation indicates an expected call of SetRelation.
type MockStateTrackerState ¶
type MockStateTrackerState struct {
// contains filtered or unexported fields
}
MockStateTrackerState is a mock of StateTrackerState interface.
func NewMockStateTrackerState ¶
func NewMockStateTrackerState(ctrl *gomock.Controller) *MockStateTrackerState
NewMockStateTrackerState creates a new mock instance.
func (*MockStateTrackerState) EXPECT ¶
func (m *MockStateTrackerState) EXPECT() *MockStateTrackerStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateTrackerState) Relation ¶
func (m *MockStateTrackerState) Relation(arg0 names.RelationTag) (relation.Relation, error)
Relation mocks base method.
func (*MockStateTrackerState) RelationById ¶
func (m *MockStateTrackerState) RelationById(arg0 int) (relation.Relation, error)
RelationById mocks base method.
type MockStateTrackerStateMockRecorder ¶
type MockStateTrackerStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateTrackerStateMockRecorder is the mock recorder for MockStateTrackerState.
func (*MockStateTrackerStateMockRecorder) Relation ¶
func (mr *MockStateTrackerStateMockRecorder) Relation(arg0 any) *gomock.Call
Relation indicates an expected call of Relation.
func (*MockStateTrackerStateMockRecorder) RelationById ¶
func (mr *MockStateTrackerStateMockRecorder) RelationById(arg0 any) *gomock.Call
RelationById indicates an expected call of RelationById.
type MockSubordinateDestroyer ¶
type MockSubordinateDestroyer struct {
// contains filtered or unexported fields
}
MockSubordinateDestroyer is a mock of SubordinateDestroyer interface.
func NewMockSubordinateDestroyer ¶
func NewMockSubordinateDestroyer(ctrl *gomock.Controller) *MockSubordinateDestroyer
NewMockSubordinateDestroyer creates a new mock instance.
func (*MockSubordinateDestroyer) DestroyAllSubordinates ¶
func (m *MockSubordinateDestroyer) DestroyAllSubordinates() error
DestroyAllSubordinates mocks base method.
func (*MockSubordinateDestroyer) EXPECT ¶
func (m *MockSubordinateDestroyer) EXPECT() *MockSubordinateDestroyerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSubordinateDestroyerMockRecorder ¶
type MockSubordinateDestroyerMockRecorder struct {
// contains filtered or unexported fields
}
MockSubordinateDestroyerMockRecorder is the mock recorder for MockSubordinateDestroyer.
func (*MockSubordinateDestroyerMockRecorder) DestroyAllSubordinates ¶
func (mr *MockSubordinateDestroyerMockRecorder) DestroyAllSubordinates() *gomock.Call
DestroyAllSubordinates indicates an expected call of DestroyAllSubordinates.
type MockUnit ¶
type MockUnit struct {
// contains filtered or unexported fields
}
MockUnit is a mock of Unit interface.
func NewMockUnit ¶
func NewMockUnit(ctrl *gomock.Controller) *MockUnit
NewMockUnit creates a new mock instance.
func (*MockUnit) Application ¶
func (m *MockUnit) Application() (relation0.Application, error)
Application mocks base method.
func (*MockUnit) ApplicationTag ¶
func (m *MockUnit) ApplicationTag() names.ApplicationTag
ApplicationTag mocks base method.
func (*MockUnit) EXPECT ¶
func (m *MockUnit) EXPECT() *MockUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnit) RelationsStatus ¶
func (m *MockUnit) RelationsStatus() ([]uniter.RelationStatus, error)
RelationsStatus mocks base method.
func (*MockUnit) SetState ¶
func (m *MockUnit) SetState(arg0 params.SetUnitStateArg) error
SetState mocks base method.
type MockUnitGetter ¶
type MockUnitGetter struct {
// contains filtered or unexported fields
}
MockUnitGetter is a mock of UnitGetter interface.
func NewMockUnitGetter ¶
func NewMockUnitGetter(ctrl *gomock.Controller) *MockUnitGetter
NewMockUnitGetter creates a new mock instance.
func (*MockUnitGetter) EXPECT ¶
func (m *MockUnitGetter) EXPECT() *MockUnitGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnitGetterMockRecorder ¶
type MockUnitGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitGetterMockRecorder is the mock recorder for MockUnitGetter.
type MockUnitMockRecorder ¶
type MockUnitMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitMockRecorder is the mock recorder for MockUnit.
func (*MockUnitMockRecorder) Application ¶
func (mr *MockUnitMockRecorder) Application() *gomock.Call
Application indicates an expected call of Application.
func (*MockUnitMockRecorder) ApplicationTag ¶
func (mr *MockUnitMockRecorder) ApplicationTag() *gomock.Call
ApplicationTag indicates an expected call of ApplicationTag.
func (*MockUnitMockRecorder) Destroy ¶
func (mr *MockUnitMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockUnitMockRecorder) Life ¶
func (mr *MockUnitMockRecorder) Life() *gomock.Call
Life indicates an expected call of Life.
func (*MockUnitMockRecorder) Name ¶
func (mr *MockUnitMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockUnitMockRecorder) Refresh ¶
func (mr *MockUnitMockRecorder) Refresh() *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockUnitMockRecorder) RelationsStatus ¶
func (mr *MockUnitMockRecorder) RelationsStatus() *gomock.Call
RelationsStatus indicates an expected call of RelationsStatus.
func (*MockUnitMockRecorder) SetState ¶
func (mr *MockUnitMockRecorder) SetState(arg0 any) *gomock.Call
SetState indicates an expected call of SetState.
func (*MockUnitMockRecorder) State ¶
func (mr *MockUnitMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*MockUnitMockRecorder) Tag ¶
func (mr *MockUnitMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag.
func (*MockUnitMockRecorder) Watch ¶
func (mr *MockUnitMockRecorder) Watch() *gomock.Call
Watch indicates an expected call of Watch.