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.
Index ¶
- type MockRelationStateTracker
- func (m *MockRelationStateTracker) CommitHook(arg0 context.Context, arg1 hook.Info) error
- func (m *MockRelationStateTracker) EXPECT() *MockRelationStateTrackerMockRecorder
- func (m *MockRelationStateTracker) GetInfo() map[int]*context0.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(arg0 context.Context) (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 context.Context, arg1 remotestate.Snapshot) error
- type MockRelationStateTrackerCommitHookCall
- func (c *MockRelationStateTrackerCommitHookCall) Do(f func(context.Context, hook.Info) error) *MockRelationStateTrackerCommitHookCall
- func (c *MockRelationStateTrackerCommitHookCall) DoAndReturn(f func(context.Context, hook.Info) error) *MockRelationStateTrackerCommitHookCall
- func (c *MockRelationStateTrackerCommitHookCall) Return(arg0 error) *MockRelationStateTrackerCommitHookCall
- type MockRelationStateTrackerGetInfoCall
- func (c *MockRelationStateTrackerGetInfoCall) Do(f func() map[int]*context0.RelationInfo) *MockRelationStateTrackerGetInfoCall
- func (c *MockRelationStateTrackerGetInfoCall) DoAndReturn(f func() map[int]*context0.RelationInfo) *MockRelationStateTrackerGetInfoCall
- func (c *MockRelationStateTrackerGetInfoCall) Return(arg0 map[int]*context0.RelationInfo) *MockRelationStateTrackerGetInfoCall
- type MockRelationStateTrackerHasContainerScopeCall
- func (c *MockRelationStateTrackerHasContainerScopeCall) Do(f func(int) (bool, error)) *MockRelationStateTrackerHasContainerScopeCall
- func (c *MockRelationStateTrackerHasContainerScopeCall) DoAndReturn(f func(int) (bool, error)) *MockRelationStateTrackerHasContainerScopeCall
- func (c *MockRelationStateTrackerHasContainerScopeCall) Return(arg0 bool, arg1 error) *MockRelationStateTrackerHasContainerScopeCall
- type MockRelationStateTrackerIsImplicitCall
- func (c *MockRelationStateTrackerIsImplicitCall) Do(f func(int) (bool, error)) *MockRelationStateTrackerIsImplicitCall
- func (c *MockRelationStateTrackerIsImplicitCall) DoAndReturn(f func(int) (bool, error)) *MockRelationStateTrackerIsImplicitCall
- func (c *MockRelationStateTrackerIsImplicitCall) Return(arg0 bool, arg1 error) *MockRelationStateTrackerIsImplicitCall
- type MockRelationStateTrackerIsKnownCall
- func (c *MockRelationStateTrackerIsKnownCall) Do(f func(int) bool) *MockRelationStateTrackerIsKnownCall
- func (c *MockRelationStateTrackerIsKnownCall) DoAndReturn(f func(int) bool) *MockRelationStateTrackerIsKnownCall
- func (c *MockRelationStateTrackerIsKnownCall) Return(arg0 bool) *MockRelationStateTrackerIsKnownCall
- type MockRelationStateTrackerIsPeerRelationCall
- func (c *MockRelationStateTrackerIsPeerRelationCall) Do(f func(int) (bool, error)) *MockRelationStateTrackerIsPeerRelationCall
- func (c *MockRelationStateTrackerIsPeerRelationCall) DoAndReturn(f func(int) (bool, error)) *MockRelationStateTrackerIsPeerRelationCall
- func (c *MockRelationStateTrackerIsPeerRelationCall) Return(arg0 bool, arg1 error) *MockRelationStateTrackerIsPeerRelationCall
- type MockRelationStateTrackerLocalUnitAndApplicationLifeCall
- func (c *MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Do(f func(context.Context) (life.Value, life.Value, error)) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
- func (c *MockRelationStateTrackerLocalUnitAndApplicationLifeCall) DoAndReturn(f func(context.Context) (life.Value, life.Value, error)) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
- func (c *MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Return(arg0, arg1 life.Value, arg2 error) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
- type MockRelationStateTrackerLocalUnitNameCall
- func (c *MockRelationStateTrackerLocalUnitNameCall) Do(f func() string) *MockRelationStateTrackerLocalUnitNameCall
- func (c *MockRelationStateTrackerLocalUnitNameCall) DoAndReturn(f func() string) *MockRelationStateTrackerLocalUnitNameCall
- func (c *MockRelationStateTrackerLocalUnitNameCall) Return(arg0 string) *MockRelationStateTrackerLocalUnitNameCall
- type MockRelationStateTrackerMockRecorder
- func (mr *MockRelationStateTrackerMockRecorder) CommitHook(arg0, arg1 any) *MockRelationStateTrackerCommitHookCall
- func (mr *MockRelationStateTrackerMockRecorder) GetInfo() *MockRelationStateTrackerGetInfoCall
- func (mr *MockRelationStateTrackerMockRecorder) HasContainerScope(arg0 any) *MockRelationStateTrackerHasContainerScopeCall
- func (mr *MockRelationStateTrackerMockRecorder) IsImplicit(arg0 any) *MockRelationStateTrackerIsImplicitCall
- func (mr *MockRelationStateTrackerMockRecorder) IsKnown(arg0 any) *MockRelationStateTrackerIsKnownCall
- func (mr *MockRelationStateTrackerMockRecorder) IsPeerRelation(arg0 any) *MockRelationStateTrackerIsPeerRelationCall
- func (mr *MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife(arg0 any) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
- func (mr *MockRelationStateTrackerMockRecorder) LocalUnitName() *MockRelationStateTrackerLocalUnitNameCall
- func (mr *MockRelationStateTrackerMockRecorder) Name(arg0 any) *MockRelationStateTrackerNameCall
- func (mr *MockRelationStateTrackerMockRecorder) PrepareHook(arg0 any) *MockRelationStateTrackerPrepareHookCall
- func (mr *MockRelationStateTrackerMockRecorder) RelationCreated(arg0 any) *MockRelationStateTrackerRelationCreatedCall
- func (mr *MockRelationStateTrackerMockRecorder) RemoteApplication(arg0 any) *MockRelationStateTrackerRemoteApplicationCall
- func (mr *MockRelationStateTrackerMockRecorder) Report() *MockRelationStateTrackerReportCall
- func (mr *MockRelationStateTrackerMockRecorder) State(arg0 any) *MockRelationStateTrackerStateCall
- func (mr *MockRelationStateTrackerMockRecorder) StateFound(arg0 any) *MockRelationStateTrackerStateFoundCall
- func (mr *MockRelationStateTrackerMockRecorder) SynchronizeScopes(arg0, arg1 any) *MockRelationStateTrackerSynchronizeScopesCall
- type MockRelationStateTrackerNameCall
- func (c *MockRelationStateTrackerNameCall) Do(f func(int) (string, error)) *MockRelationStateTrackerNameCall
- func (c *MockRelationStateTrackerNameCall) DoAndReturn(f func(int) (string, error)) *MockRelationStateTrackerNameCall
- func (c *MockRelationStateTrackerNameCall) Return(arg0 string, arg1 error) *MockRelationStateTrackerNameCall
- type MockRelationStateTrackerPrepareHookCall
- func (c *MockRelationStateTrackerPrepareHookCall) Do(f func(hook.Info) (string, error)) *MockRelationStateTrackerPrepareHookCall
- func (c *MockRelationStateTrackerPrepareHookCall) DoAndReturn(f func(hook.Info) (string, error)) *MockRelationStateTrackerPrepareHookCall
- func (c *MockRelationStateTrackerPrepareHookCall) Return(arg0 string, arg1 error) *MockRelationStateTrackerPrepareHookCall
- type MockRelationStateTrackerRelationCreatedCall
- func (c *MockRelationStateTrackerRelationCreatedCall) Do(f func(int) bool) *MockRelationStateTrackerRelationCreatedCall
- func (c *MockRelationStateTrackerRelationCreatedCall) DoAndReturn(f func(int) bool) *MockRelationStateTrackerRelationCreatedCall
- func (c *MockRelationStateTrackerRelationCreatedCall) Return(arg0 bool) *MockRelationStateTrackerRelationCreatedCall
- type MockRelationStateTrackerRemoteApplicationCall
- func (c *MockRelationStateTrackerRemoteApplicationCall) Do(f func(int) string) *MockRelationStateTrackerRemoteApplicationCall
- func (c *MockRelationStateTrackerRemoteApplicationCall) DoAndReturn(f func(int) string) *MockRelationStateTrackerRemoteApplicationCall
- func (c *MockRelationStateTrackerRemoteApplicationCall) Return(arg0 string) *MockRelationStateTrackerRemoteApplicationCall
- type MockRelationStateTrackerReportCall
- func (c *MockRelationStateTrackerReportCall) Do(f func() map[string]any) *MockRelationStateTrackerReportCall
- func (c *MockRelationStateTrackerReportCall) DoAndReturn(f func() map[string]any) *MockRelationStateTrackerReportCall
- func (c *MockRelationStateTrackerReportCall) Return(arg0 map[string]any) *MockRelationStateTrackerReportCall
- type MockRelationStateTrackerStateCall
- func (c *MockRelationStateTrackerStateCall) Do(f func(int) (*relation.State, error)) *MockRelationStateTrackerStateCall
- func (c *MockRelationStateTrackerStateCall) DoAndReturn(f func(int) (*relation.State, error)) *MockRelationStateTrackerStateCall
- func (c *MockRelationStateTrackerStateCall) Return(arg0 *relation.State, arg1 error) *MockRelationStateTrackerStateCall
- type MockRelationStateTrackerStateFoundCall
- func (c *MockRelationStateTrackerStateFoundCall) Do(f func(int) bool) *MockRelationStateTrackerStateFoundCall
- func (c *MockRelationStateTrackerStateFoundCall) DoAndReturn(f func(int) bool) *MockRelationStateTrackerStateFoundCall
- func (c *MockRelationStateTrackerStateFoundCall) Return(arg0 bool) *MockRelationStateTrackerStateFoundCall
- type MockRelationStateTrackerSynchronizeScopesCall
- func (c *MockRelationStateTrackerSynchronizeScopesCall) Do(f func(context.Context, remotestate.Snapshot) error) *MockRelationStateTrackerSynchronizeScopesCall
- func (c *MockRelationStateTrackerSynchronizeScopesCall) DoAndReturn(f func(context.Context, remotestate.Snapshot) error) *MockRelationStateTrackerSynchronizeScopesCall
- func (c *MockRelationStateTrackerSynchronizeScopesCall) Return(arg0 error) *MockRelationStateTrackerSynchronizeScopesCall
- type MockRelationer
- func (m *MockRelationer) CommitHook(arg0 context.Context, arg1 hook.Info) error
- func (m *MockRelationer) ContextInfo() *context0.RelationInfo
- func (m *MockRelationer) EXPECT() *MockRelationerMockRecorder
- func (m *MockRelationer) IsDying() bool
- func (m *MockRelationer) IsImplicit() bool
- func (m *MockRelationer) Join(arg0 context.Context) error
- func (m *MockRelationer) PrepareHook(arg0 hook.Info) (string, error)
- func (m *MockRelationer) RelationUnit() api.RelationUnit
- func (m *MockRelationer) SetDying(arg0 context.Context) error
- type MockRelationerCommitHookCall
- func (c *MockRelationerCommitHookCall) Do(f func(context.Context, hook.Info) error) *MockRelationerCommitHookCall
- func (c *MockRelationerCommitHookCall) DoAndReturn(f func(context.Context, hook.Info) error) *MockRelationerCommitHookCall
- func (c *MockRelationerCommitHookCall) Return(arg0 error) *MockRelationerCommitHookCall
- type MockRelationerContextInfoCall
- func (c *MockRelationerContextInfoCall) Do(f func() *context0.RelationInfo) *MockRelationerContextInfoCall
- func (c *MockRelationerContextInfoCall) DoAndReturn(f func() *context0.RelationInfo) *MockRelationerContextInfoCall
- func (c *MockRelationerContextInfoCall) Return(arg0 *context0.RelationInfo) *MockRelationerContextInfoCall
- type MockRelationerIsDyingCall
- type MockRelationerIsImplicitCall
- type MockRelationerJoinCall
- type MockRelationerMockRecorder
- func (mr *MockRelationerMockRecorder) CommitHook(arg0, arg1 any) *MockRelationerCommitHookCall
- func (mr *MockRelationerMockRecorder) ContextInfo() *MockRelationerContextInfoCall
- func (mr *MockRelationerMockRecorder) IsDying() *MockRelationerIsDyingCall
- func (mr *MockRelationerMockRecorder) IsImplicit() *MockRelationerIsImplicitCall
- func (mr *MockRelationerMockRecorder) Join(arg0 any) *MockRelationerJoinCall
- func (mr *MockRelationerMockRecorder) PrepareHook(arg0 any) *MockRelationerPrepareHookCall
- func (mr *MockRelationerMockRecorder) RelationUnit() *MockRelationerRelationUnitCall
- func (mr *MockRelationerMockRecorder) SetDying(arg0 any) *MockRelationerSetDyingCall
- type MockRelationerPrepareHookCall
- func (c *MockRelationerPrepareHookCall) Do(f func(hook.Info) (string, error)) *MockRelationerPrepareHookCall
- func (c *MockRelationerPrepareHookCall) DoAndReturn(f func(hook.Info) (string, error)) *MockRelationerPrepareHookCall
- func (c *MockRelationerPrepareHookCall) Return(arg0 string, arg1 error) *MockRelationerPrepareHookCall
- type MockRelationerRelationUnitCall
- func (c *MockRelationerRelationUnitCall) Do(f func() api.RelationUnit) *MockRelationerRelationUnitCall
- func (c *MockRelationerRelationUnitCall) DoAndReturn(f func() api.RelationUnit) *MockRelationerRelationUnitCall
- func (c *MockRelationerRelationUnitCall) Return(arg0 api.RelationUnit) *MockRelationerRelationUnitCall
- type MockRelationerSetDyingCall
- 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 context.Context, arg1 int, arg2 relation.UnitGetter, arg3 map[string]bool) error
- func (m *MockStateManager) SetRelation(arg0 context.Context, arg1 *relation.State) error
- type MockStateManagerKnownIDsCall
- type MockStateManagerMockRecorder
- func (mr *MockStateManagerMockRecorder) KnownIDs() *MockStateManagerKnownIDsCall
- func (mr *MockStateManagerMockRecorder) Relation(arg0 any) *MockStateManagerRelationCall
- func (mr *MockStateManagerMockRecorder) RelationFound(arg0 any) *MockStateManagerRelationFoundCall
- func (mr *MockStateManagerMockRecorder) RemoveRelation(arg0, arg1, arg2, arg3 any) *MockStateManagerRemoveRelationCall
- func (mr *MockStateManagerMockRecorder) SetRelation(arg0, arg1 any) *MockStateManagerSetRelationCall
- type MockStateManagerRelationCall
- func (c *MockStateManagerRelationCall) Do(f func(int) (*relation.State, error)) *MockStateManagerRelationCall
- func (c *MockStateManagerRelationCall) DoAndReturn(f func(int) (*relation.State, error)) *MockStateManagerRelationCall
- func (c *MockStateManagerRelationCall) Return(arg0 *relation.State, arg1 error) *MockStateManagerRelationCall
- type MockStateManagerRelationFoundCall
- func (c *MockStateManagerRelationFoundCall) Do(f func(int) bool) *MockStateManagerRelationFoundCall
- func (c *MockStateManagerRelationFoundCall) DoAndReturn(f func(int) bool) *MockStateManagerRelationFoundCall
- func (c *MockStateManagerRelationFoundCall) Return(arg0 bool) *MockStateManagerRelationFoundCall
- type MockStateManagerRemoveRelationCall
- func (c *MockStateManagerRemoveRelationCall) Do(f func(context.Context, int, relation.UnitGetter, map[string]bool) error) *MockStateManagerRemoveRelationCall
- func (c *MockStateManagerRemoveRelationCall) DoAndReturn(f func(context.Context, int, relation.UnitGetter, map[string]bool) error) *MockStateManagerRemoveRelationCall
- func (c *MockStateManagerRemoveRelationCall) Return(arg0 error) *MockStateManagerRemoveRelationCall
- type MockStateManagerSetRelationCall
- func (c *MockStateManagerSetRelationCall) Do(f func(context.Context, *relation.State) error) *MockStateManagerSetRelationCall
- func (c *MockStateManagerSetRelationCall) DoAndReturn(f func(context.Context, *relation.State) error) *MockStateManagerSetRelationCall
- func (c *MockStateManagerSetRelationCall) Return(arg0 error) *MockStateManagerSetRelationCall
- type MockStateTrackerClient
- func (m *MockStateTrackerClient) EXPECT() *MockStateTrackerClientMockRecorder
- func (m *MockStateTrackerClient) Relation(arg0 context.Context, arg1 names.RelationTag) (api.Relation, error)
- func (m *MockStateTrackerClient) RelationById(arg0 context.Context, arg1 int) (api.Relation, error)
- func (m *MockStateTrackerClient) Unit(arg0 context.Context, arg1 names.UnitTag) (api.Unit, error)
- type MockStateTrackerClientMockRecorder
- func (mr *MockStateTrackerClientMockRecorder) Relation(arg0, arg1 any) *MockStateTrackerClientRelationCall
- func (mr *MockStateTrackerClientMockRecorder) RelationById(arg0, arg1 any) *MockStateTrackerClientRelationByIdCall
- func (mr *MockStateTrackerClientMockRecorder) Unit(arg0, arg1 any) *MockStateTrackerClientUnitCall
- type MockStateTrackerClientRelationByIdCall
- func (c *MockStateTrackerClientRelationByIdCall) Do(f func(context.Context, int) (api.Relation, error)) *MockStateTrackerClientRelationByIdCall
- func (c *MockStateTrackerClientRelationByIdCall) DoAndReturn(f func(context.Context, int) (api.Relation, error)) *MockStateTrackerClientRelationByIdCall
- func (c *MockStateTrackerClientRelationByIdCall) Return(arg0 api.Relation, arg1 error) *MockStateTrackerClientRelationByIdCall
- type MockStateTrackerClientRelationCall
- func (c *MockStateTrackerClientRelationCall) Do(f func(context.Context, names.RelationTag) (api.Relation, error)) *MockStateTrackerClientRelationCall
- func (c *MockStateTrackerClientRelationCall) DoAndReturn(f func(context.Context, names.RelationTag) (api.Relation, error)) *MockStateTrackerClientRelationCall
- func (c *MockStateTrackerClientRelationCall) Return(arg0 api.Relation, arg1 error) *MockStateTrackerClientRelationCall
- type MockStateTrackerClientUnitCall
- func (c *MockStateTrackerClientUnitCall) Do(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockStateTrackerClientUnitCall
- func (c *MockStateTrackerClientUnitCall) DoAndReturn(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockStateTrackerClientUnitCall
- func (c *MockStateTrackerClientUnitCall) Return(arg0 api.Unit, arg1 error) *MockStateTrackerClientUnitCall
- type MockSubordinateDestroyer
- type MockSubordinateDestroyerDestroyAllSubordinatesCall
- func (c *MockSubordinateDestroyerDestroyAllSubordinatesCall) Do(f func(context.Context) error) *MockSubordinateDestroyerDestroyAllSubordinatesCall
- func (c *MockSubordinateDestroyerDestroyAllSubordinatesCall) DoAndReturn(f func(context.Context) error) *MockSubordinateDestroyerDestroyAllSubordinatesCall
- func (c *MockSubordinateDestroyerDestroyAllSubordinatesCall) Return(arg0 error) *MockSubordinateDestroyerDestroyAllSubordinatesCall
- type MockSubordinateDestroyerMockRecorder
- type MockUnitGetter
- type MockUnitGetterMockRecorder
- type MockUnitGetterUnitCall
- func (c *MockUnitGetterUnitCall) Do(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockUnitGetterUnitCall
- func (c *MockUnitGetterUnitCall) DoAndReturn(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockUnitGetterUnitCall
- func (c *MockUnitGetterUnitCall) Return(arg0 api.Unit, arg1 error) *MockUnitGetterUnitCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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]*context0.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 ¶
func (m *MockRelationStateTracker) LocalUnitAndApplicationLife(arg0 context.Context) (life.Value, life.Value, error)
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 context.Context, arg1 remotestate.Snapshot) error
SynchronizeScopes mocks base method.
type MockRelationStateTrackerCommitHookCall ¶
MockRelationStateTrackerCommitHookCall wrap *gomock.Call
func (*MockRelationStateTrackerCommitHookCall) Do ¶
func (c *MockRelationStateTrackerCommitHookCall) Do(f func(context.Context, hook.Info) error) *MockRelationStateTrackerCommitHookCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerCommitHookCall) DoAndReturn ¶
func (c *MockRelationStateTrackerCommitHookCall) DoAndReturn(f func(context.Context, hook.Info) error) *MockRelationStateTrackerCommitHookCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerCommitHookCall) Return ¶
func (c *MockRelationStateTrackerCommitHookCall) Return(arg0 error) *MockRelationStateTrackerCommitHookCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerGetInfoCall ¶
MockRelationStateTrackerGetInfoCall wrap *gomock.Call
func (*MockRelationStateTrackerGetInfoCall) Do ¶
func (c *MockRelationStateTrackerGetInfoCall) Do(f func() map[int]*context0.RelationInfo) *MockRelationStateTrackerGetInfoCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerGetInfoCall) DoAndReturn ¶
func (c *MockRelationStateTrackerGetInfoCall) DoAndReturn(f func() map[int]*context0.RelationInfo) *MockRelationStateTrackerGetInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerGetInfoCall) Return ¶
func (c *MockRelationStateTrackerGetInfoCall) Return(arg0 map[int]*context0.RelationInfo) *MockRelationStateTrackerGetInfoCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerHasContainerScopeCall ¶
MockRelationStateTrackerHasContainerScopeCall wrap *gomock.Call
func (*MockRelationStateTrackerHasContainerScopeCall) Do ¶
func (c *MockRelationStateTrackerHasContainerScopeCall) Do(f func(int) (bool, error)) *MockRelationStateTrackerHasContainerScopeCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerHasContainerScopeCall) DoAndReturn ¶
func (c *MockRelationStateTrackerHasContainerScopeCall) DoAndReturn(f func(int) (bool, error)) *MockRelationStateTrackerHasContainerScopeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerHasContainerScopeCall) Return ¶
func (c *MockRelationStateTrackerHasContainerScopeCall) Return(arg0 bool, arg1 error) *MockRelationStateTrackerHasContainerScopeCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerIsImplicitCall ¶
MockRelationStateTrackerIsImplicitCall wrap *gomock.Call
func (*MockRelationStateTrackerIsImplicitCall) Do ¶
func (c *MockRelationStateTrackerIsImplicitCall) Do(f func(int) (bool, error)) *MockRelationStateTrackerIsImplicitCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerIsImplicitCall) DoAndReturn ¶
func (c *MockRelationStateTrackerIsImplicitCall) DoAndReturn(f func(int) (bool, error)) *MockRelationStateTrackerIsImplicitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerIsImplicitCall) Return ¶
func (c *MockRelationStateTrackerIsImplicitCall) Return(arg0 bool, arg1 error) *MockRelationStateTrackerIsImplicitCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerIsKnownCall ¶
MockRelationStateTrackerIsKnownCall wrap *gomock.Call
func (*MockRelationStateTrackerIsKnownCall) Do ¶
func (c *MockRelationStateTrackerIsKnownCall) Do(f func(int) bool) *MockRelationStateTrackerIsKnownCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerIsKnownCall) DoAndReturn ¶
func (c *MockRelationStateTrackerIsKnownCall) DoAndReturn(f func(int) bool) *MockRelationStateTrackerIsKnownCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerIsKnownCall) Return ¶
func (c *MockRelationStateTrackerIsKnownCall) Return(arg0 bool) *MockRelationStateTrackerIsKnownCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerIsPeerRelationCall ¶
MockRelationStateTrackerIsPeerRelationCall wrap *gomock.Call
func (*MockRelationStateTrackerIsPeerRelationCall) Do ¶
func (c *MockRelationStateTrackerIsPeerRelationCall) Do(f func(int) (bool, error)) *MockRelationStateTrackerIsPeerRelationCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerIsPeerRelationCall) DoAndReturn ¶
func (c *MockRelationStateTrackerIsPeerRelationCall) DoAndReturn(f func(int) (bool, error)) *MockRelationStateTrackerIsPeerRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerIsPeerRelationCall) Return ¶
func (c *MockRelationStateTrackerIsPeerRelationCall) Return(arg0 bool, arg1 error) *MockRelationStateTrackerIsPeerRelationCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerLocalUnitAndApplicationLifeCall ¶
MockRelationStateTrackerLocalUnitAndApplicationLifeCall wrap *gomock.Call
func (*MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Do ¶
func (c *MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Do(f func(context.Context) (life.Value, life.Value, error)) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerLocalUnitAndApplicationLifeCall) DoAndReturn ¶
func (c *MockRelationStateTrackerLocalUnitAndApplicationLifeCall) DoAndReturn(f func(context.Context) (life.Value, life.Value, error)) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Return ¶
func (c *MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Return(arg0, arg1 life.Value, arg2 error) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerLocalUnitNameCall ¶
MockRelationStateTrackerLocalUnitNameCall wrap *gomock.Call
func (*MockRelationStateTrackerLocalUnitNameCall) Do ¶
func (c *MockRelationStateTrackerLocalUnitNameCall) Do(f func() string) *MockRelationStateTrackerLocalUnitNameCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerLocalUnitNameCall) DoAndReturn ¶
func (c *MockRelationStateTrackerLocalUnitNameCall) DoAndReturn(f func() string) *MockRelationStateTrackerLocalUnitNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerLocalUnitNameCall) Return ¶
func (c *MockRelationStateTrackerLocalUnitNameCall) Return(arg0 string) *MockRelationStateTrackerLocalUnitNameCall
Return rewrite *gomock.Call.Return
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, arg1 any) *MockRelationStateTrackerCommitHookCall
CommitHook indicates an expected call of CommitHook.
func (*MockRelationStateTrackerMockRecorder) GetInfo ¶
func (mr *MockRelationStateTrackerMockRecorder) GetInfo() *MockRelationStateTrackerGetInfoCall
GetInfo indicates an expected call of GetInfo.
func (*MockRelationStateTrackerMockRecorder) HasContainerScope ¶
func (mr *MockRelationStateTrackerMockRecorder) HasContainerScope(arg0 any) *MockRelationStateTrackerHasContainerScopeCall
HasContainerScope indicates an expected call of HasContainerScope.
func (*MockRelationStateTrackerMockRecorder) IsImplicit ¶
func (mr *MockRelationStateTrackerMockRecorder) IsImplicit(arg0 any) *MockRelationStateTrackerIsImplicitCall
IsImplicit indicates an expected call of IsImplicit.
func (*MockRelationStateTrackerMockRecorder) IsKnown ¶
func (mr *MockRelationStateTrackerMockRecorder) IsKnown(arg0 any) *MockRelationStateTrackerIsKnownCall
IsKnown indicates an expected call of IsKnown.
func (*MockRelationStateTrackerMockRecorder) IsPeerRelation ¶
func (mr *MockRelationStateTrackerMockRecorder) IsPeerRelation(arg0 any) *MockRelationStateTrackerIsPeerRelationCall
IsPeerRelation indicates an expected call of IsPeerRelation.
func (*MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife ¶
func (mr *MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife(arg0 any) *MockRelationStateTrackerLocalUnitAndApplicationLifeCall
LocalUnitAndApplicationLife indicates an expected call of LocalUnitAndApplicationLife.
func (*MockRelationStateTrackerMockRecorder) LocalUnitName ¶
func (mr *MockRelationStateTrackerMockRecorder) LocalUnitName() *MockRelationStateTrackerLocalUnitNameCall
LocalUnitName indicates an expected call of LocalUnitName.
func (*MockRelationStateTrackerMockRecorder) Name ¶
func (mr *MockRelationStateTrackerMockRecorder) Name(arg0 any) *MockRelationStateTrackerNameCall
Name indicates an expected call of Name.
func (*MockRelationStateTrackerMockRecorder) PrepareHook ¶
func (mr *MockRelationStateTrackerMockRecorder) PrepareHook(arg0 any) *MockRelationStateTrackerPrepareHookCall
PrepareHook indicates an expected call of PrepareHook.
func (*MockRelationStateTrackerMockRecorder) RelationCreated ¶
func (mr *MockRelationStateTrackerMockRecorder) RelationCreated(arg0 any) *MockRelationStateTrackerRelationCreatedCall
RelationCreated indicates an expected call of RelationCreated.
func (*MockRelationStateTrackerMockRecorder) RemoteApplication ¶
func (mr *MockRelationStateTrackerMockRecorder) RemoteApplication(arg0 any) *MockRelationStateTrackerRemoteApplicationCall
RemoteApplication indicates an expected call of RemoteApplication.
func (*MockRelationStateTrackerMockRecorder) Report ¶
func (mr *MockRelationStateTrackerMockRecorder) Report() *MockRelationStateTrackerReportCall
Report indicates an expected call of Report.
func (*MockRelationStateTrackerMockRecorder) State ¶
func (mr *MockRelationStateTrackerMockRecorder) State(arg0 any) *MockRelationStateTrackerStateCall
State indicates an expected call of State.
func (*MockRelationStateTrackerMockRecorder) StateFound ¶
func (mr *MockRelationStateTrackerMockRecorder) StateFound(arg0 any) *MockRelationStateTrackerStateFoundCall
StateFound indicates an expected call of StateFound.
func (*MockRelationStateTrackerMockRecorder) SynchronizeScopes ¶
func (mr *MockRelationStateTrackerMockRecorder) SynchronizeScopes(arg0, arg1 any) *MockRelationStateTrackerSynchronizeScopesCall
SynchronizeScopes indicates an expected call of SynchronizeScopes.
type MockRelationStateTrackerNameCall ¶
MockRelationStateTrackerNameCall wrap *gomock.Call
func (*MockRelationStateTrackerNameCall) Do ¶
func (c *MockRelationStateTrackerNameCall) Do(f func(int) (string, error)) *MockRelationStateTrackerNameCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerNameCall) DoAndReturn ¶
func (c *MockRelationStateTrackerNameCall) DoAndReturn(f func(int) (string, error)) *MockRelationStateTrackerNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerNameCall) Return ¶
func (c *MockRelationStateTrackerNameCall) Return(arg0 string, arg1 error) *MockRelationStateTrackerNameCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerPrepareHookCall ¶
MockRelationStateTrackerPrepareHookCall wrap *gomock.Call
func (*MockRelationStateTrackerPrepareHookCall) Do ¶
func (c *MockRelationStateTrackerPrepareHookCall) Do(f func(hook.Info) (string, error)) *MockRelationStateTrackerPrepareHookCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerPrepareHookCall) DoAndReturn ¶
func (c *MockRelationStateTrackerPrepareHookCall) DoAndReturn(f func(hook.Info) (string, error)) *MockRelationStateTrackerPrepareHookCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerPrepareHookCall) Return ¶
func (c *MockRelationStateTrackerPrepareHookCall) Return(arg0 string, arg1 error) *MockRelationStateTrackerPrepareHookCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerRelationCreatedCall ¶
MockRelationStateTrackerRelationCreatedCall wrap *gomock.Call
func (*MockRelationStateTrackerRelationCreatedCall) Do ¶
func (c *MockRelationStateTrackerRelationCreatedCall) Do(f func(int) bool) *MockRelationStateTrackerRelationCreatedCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerRelationCreatedCall) DoAndReturn ¶
func (c *MockRelationStateTrackerRelationCreatedCall) DoAndReturn(f func(int) bool) *MockRelationStateTrackerRelationCreatedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerRelationCreatedCall) Return ¶
func (c *MockRelationStateTrackerRelationCreatedCall) Return(arg0 bool) *MockRelationStateTrackerRelationCreatedCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerRemoteApplicationCall ¶
MockRelationStateTrackerRemoteApplicationCall wrap *gomock.Call
func (*MockRelationStateTrackerRemoteApplicationCall) Do ¶
func (c *MockRelationStateTrackerRemoteApplicationCall) Do(f func(int) string) *MockRelationStateTrackerRemoteApplicationCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerRemoteApplicationCall) DoAndReturn ¶
func (c *MockRelationStateTrackerRemoteApplicationCall) DoAndReturn(f func(int) string) *MockRelationStateTrackerRemoteApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerRemoteApplicationCall) Return ¶
func (c *MockRelationStateTrackerRemoteApplicationCall) Return(arg0 string) *MockRelationStateTrackerRemoteApplicationCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerReportCall ¶
MockRelationStateTrackerReportCall wrap *gomock.Call
func (*MockRelationStateTrackerReportCall) Do ¶
func (c *MockRelationStateTrackerReportCall) Do(f func() map[string]any) *MockRelationStateTrackerReportCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerReportCall) DoAndReturn ¶
func (c *MockRelationStateTrackerReportCall) DoAndReturn(f func() map[string]any) *MockRelationStateTrackerReportCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerReportCall) Return ¶
func (c *MockRelationStateTrackerReportCall) Return(arg0 map[string]any) *MockRelationStateTrackerReportCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerStateCall ¶
MockRelationStateTrackerStateCall wrap *gomock.Call
func (*MockRelationStateTrackerStateCall) Do ¶
func (c *MockRelationStateTrackerStateCall) Do(f func(int) (*relation.State, error)) *MockRelationStateTrackerStateCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerStateCall) DoAndReturn ¶
func (c *MockRelationStateTrackerStateCall) DoAndReturn(f func(int) (*relation.State, error)) *MockRelationStateTrackerStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerStateCall) Return ¶
func (c *MockRelationStateTrackerStateCall) Return(arg0 *relation.State, arg1 error) *MockRelationStateTrackerStateCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerStateFoundCall ¶
MockRelationStateTrackerStateFoundCall wrap *gomock.Call
func (*MockRelationStateTrackerStateFoundCall) Do ¶
func (c *MockRelationStateTrackerStateFoundCall) Do(f func(int) bool) *MockRelationStateTrackerStateFoundCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerStateFoundCall) DoAndReturn ¶
func (c *MockRelationStateTrackerStateFoundCall) DoAndReturn(f func(int) bool) *MockRelationStateTrackerStateFoundCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerStateFoundCall) Return ¶
func (c *MockRelationStateTrackerStateFoundCall) Return(arg0 bool) *MockRelationStateTrackerStateFoundCall
Return rewrite *gomock.Call.Return
type MockRelationStateTrackerSynchronizeScopesCall ¶
MockRelationStateTrackerSynchronizeScopesCall wrap *gomock.Call
func (*MockRelationStateTrackerSynchronizeScopesCall) Do ¶
func (c *MockRelationStateTrackerSynchronizeScopesCall) Do(f func(context.Context, remotestate.Snapshot) error) *MockRelationStateTrackerSynchronizeScopesCall
Do rewrite *gomock.Call.Do
func (*MockRelationStateTrackerSynchronizeScopesCall) DoAndReturn ¶
func (c *MockRelationStateTrackerSynchronizeScopesCall) DoAndReturn(f func(context.Context, remotestate.Snapshot) error) *MockRelationStateTrackerSynchronizeScopesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationStateTrackerSynchronizeScopesCall) Return ¶
func (c *MockRelationStateTrackerSynchronizeScopesCall) Return(arg0 error) *MockRelationStateTrackerSynchronizeScopesCall
Return rewrite *gomock.Call.Return
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 ¶
CommitHook mocks base method.
func (*MockRelationer) ContextInfo ¶
func (m *MockRelationer) ContextInfo() *context0.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) Join ¶
func (m *MockRelationer) Join(arg0 context.Context) error
Join 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() api.RelationUnit
RelationUnit mocks base method.
type MockRelationerCommitHookCall ¶
MockRelationerCommitHookCall wrap *gomock.Call
func (*MockRelationerCommitHookCall) Do ¶
func (c *MockRelationerCommitHookCall) Do(f func(context.Context, hook.Info) error) *MockRelationerCommitHookCall
Do rewrite *gomock.Call.Do
func (*MockRelationerCommitHookCall) DoAndReturn ¶
func (c *MockRelationerCommitHookCall) DoAndReturn(f func(context.Context, hook.Info) error) *MockRelationerCommitHookCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerCommitHookCall) Return ¶
func (c *MockRelationerCommitHookCall) Return(arg0 error) *MockRelationerCommitHookCall
Return rewrite *gomock.Call.Return
type MockRelationerContextInfoCall ¶
MockRelationerContextInfoCall wrap *gomock.Call
func (*MockRelationerContextInfoCall) Do ¶
func (c *MockRelationerContextInfoCall) Do(f func() *context0.RelationInfo) *MockRelationerContextInfoCall
Do rewrite *gomock.Call.Do
func (*MockRelationerContextInfoCall) DoAndReturn ¶
func (c *MockRelationerContextInfoCall) DoAndReturn(f func() *context0.RelationInfo) *MockRelationerContextInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerContextInfoCall) Return ¶
func (c *MockRelationerContextInfoCall) Return(arg0 *context0.RelationInfo) *MockRelationerContextInfoCall
Return rewrite *gomock.Call.Return
type MockRelationerIsDyingCall ¶
MockRelationerIsDyingCall wrap *gomock.Call
func (*MockRelationerIsDyingCall) Do ¶
func (c *MockRelationerIsDyingCall) Do(f func() bool) *MockRelationerIsDyingCall
Do rewrite *gomock.Call.Do
func (*MockRelationerIsDyingCall) DoAndReturn ¶
func (c *MockRelationerIsDyingCall) DoAndReturn(f func() bool) *MockRelationerIsDyingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerIsDyingCall) Return ¶
func (c *MockRelationerIsDyingCall) Return(arg0 bool) *MockRelationerIsDyingCall
Return rewrite *gomock.Call.Return
type MockRelationerIsImplicitCall ¶
MockRelationerIsImplicitCall wrap *gomock.Call
func (*MockRelationerIsImplicitCall) Do ¶
func (c *MockRelationerIsImplicitCall) Do(f func() bool) *MockRelationerIsImplicitCall
Do rewrite *gomock.Call.Do
func (*MockRelationerIsImplicitCall) DoAndReturn ¶
func (c *MockRelationerIsImplicitCall) DoAndReturn(f func() bool) *MockRelationerIsImplicitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerIsImplicitCall) Return ¶
func (c *MockRelationerIsImplicitCall) Return(arg0 bool) *MockRelationerIsImplicitCall
Return rewrite *gomock.Call.Return
type MockRelationerJoinCall ¶
MockRelationerJoinCall wrap *gomock.Call
func (*MockRelationerJoinCall) Do ¶
func (c *MockRelationerJoinCall) Do(f func(context.Context) error) *MockRelationerJoinCall
Do rewrite *gomock.Call.Do
func (*MockRelationerJoinCall) DoAndReturn ¶
func (c *MockRelationerJoinCall) DoAndReturn(f func(context.Context) error) *MockRelationerJoinCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerJoinCall) Return ¶
func (c *MockRelationerJoinCall) Return(arg0 error) *MockRelationerJoinCall
Return rewrite *gomock.Call.Return
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, arg1 any) *MockRelationerCommitHookCall
CommitHook indicates an expected call of CommitHook.
func (*MockRelationerMockRecorder) ContextInfo ¶
func (mr *MockRelationerMockRecorder) ContextInfo() *MockRelationerContextInfoCall
ContextInfo indicates an expected call of ContextInfo.
func (*MockRelationerMockRecorder) IsDying ¶
func (mr *MockRelationerMockRecorder) IsDying() *MockRelationerIsDyingCall
IsDying indicates an expected call of IsDying.
func (*MockRelationerMockRecorder) IsImplicit ¶
func (mr *MockRelationerMockRecorder) IsImplicit() *MockRelationerIsImplicitCall
IsImplicit indicates an expected call of IsImplicit.
func (*MockRelationerMockRecorder) Join ¶
func (mr *MockRelationerMockRecorder) Join(arg0 any) *MockRelationerJoinCall
Join indicates an expected call of Join.
func (*MockRelationerMockRecorder) PrepareHook ¶
func (mr *MockRelationerMockRecorder) PrepareHook(arg0 any) *MockRelationerPrepareHookCall
PrepareHook indicates an expected call of PrepareHook.
func (*MockRelationerMockRecorder) RelationUnit ¶
func (mr *MockRelationerMockRecorder) RelationUnit() *MockRelationerRelationUnitCall
RelationUnit indicates an expected call of RelationUnit.
func (*MockRelationerMockRecorder) SetDying ¶
func (mr *MockRelationerMockRecorder) SetDying(arg0 any) *MockRelationerSetDyingCall
SetDying indicates an expected call of SetDying.
type MockRelationerPrepareHookCall ¶
MockRelationerPrepareHookCall wrap *gomock.Call
func (*MockRelationerPrepareHookCall) Do ¶
func (c *MockRelationerPrepareHookCall) Do(f func(hook.Info) (string, error)) *MockRelationerPrepareHookCall
Do rewrite *gomock.Call.Do
func (*MockRelationerPrepareHookCall) DoAndReturn ¶
func (c *MockRelationerPrepareHookCall) DoAndReturn(f func(hook.Info) (string, error)) *MockRelationerPrepareHookCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerPrepareHookCall) Return ¶
func (c *MockRelationerPrepareHookCall) Return(arg0 string, arg1 error) *MockRelationerPrepareHookCall
Return rewrite *gomock.Call.Return
type MockRelationerRelationUnitCall ¶
MockRelationerRelationUnitCall wrap *gomock.Call
func (*MockRelationerRelationUnitCall) Do ¶
func (c *MockRelationerRelationUnitCall) Do(f func() api.RelationUnit) *MockRelationerRelationUnitCall
Do rewrite *gomock.Call.Do
func (*MockRelationerRelationUnitCall) DoAndReturn ¶
func (c *MockRelationerRelationUnitCall) DoAndReturn(f func() api.RelationUnit) *MockRelationerRelationUnitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerRelationUnitCall) Return ¶
func (c *MockRelationerRelationUnitCall) Return(arg0 api.RelationUnit) *MockRelationerRelationUnitCall
Return rewrite *gomock.Call.Return
type MockRelationerSetDyingCall ¶
MockRelationerSetDyingCall wrap *gomock.Call
func (*MockRelationerSetDyingCall) Do ¶
func (c *MockRelationerSetDyingCall) Do(f func(context.Context) error) *MockRelationerSetDyingCall
Do rewrite *gomock.Call.Do
func (*MockRelationerSetDyingCall) DoAndReturn ¶
func (c *MockRelationerSetDyingCall) DoAndReturn(f func(context.Context) error) *MockRelationerSetDyingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationerSetDyingCall) Return ¶
func (c *MockRelationerSetDyingCall) Return(arg0 error) *MockRelationerSetDyingCall
Return rewrite *gomock.Call.Return
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 context.Context, arg1 int, arg2 relation.UnitGetter, arg3 map[string]bool) error
RemoveRelation mocks base method.
func (*MockStateManager) SetRelation ¶
SetRelation mocks base method.
type MockStateManagerKnownIDsCall ¶
MockStateManagerKnownIDsCall wrap *gomock.Call
func (*MockStateManagerKnownIDsCall) Do ¶
func (c *MockStateManagerKnownIDsCall) Do(f func() []int) *MockStateManagerKnownIDsCall
Do rewrite *gomock.Call.Do
func (*MockStateManagerKnownIDsCall) DoAndReturn ¶
func (c *MockStateManagerKnownIDsCall) DoAndReturn(f func() []int) *MockStateManagerKnownIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateManagerKnownIDsCall) Return ¶
func (c *MockStateManagerKnownIDsCall) Return(arg0 []int) *MockStateManagerKnownIDsCall
Return rewrite *gomock.Call.Return
type MockStateManagerMockRecorder ¶
type MockStateManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockStateManagerMockRecorder is the mock recorder for MockStateManager.
func (*MockStateManagerMockRecorder) KnownIDs ¶
func (mr *MockStateManagerMockRecorder) KnownIDs() *MockStateManagerKnownIDsCall
KnownIDs indicates an expected call of KnownIDs.
func (*MockStateManagerMockRecorder) Relation ¶
func (mr *MockStateManagerMockRecorder) Relation(arg0 any) *MockStateManagerRelationCall
Relation indicates an expected call of Relation.
func (*MockStateManagerMockRecorder) RelationFound ¶
func (mr *MockStateManagerMockRecorder) RelationFound(arg0 any) *MockStateManagerRelationFoundCall
RelationFound indicates an expected call of RelationFound.
func (*MockStateManagerMockRecorder) RemoveRelation ¶
func (mr *MockStateManagerMockRecorder) RemoveRelation(arg0, arg1, arg2, arg3 any) *MockStateManagerRemoveRelationCall
RemoveRelation indicates an expected call of RemoveRelation.
func (*MockStateManagerMockRecorder) SetRelation ¶
func (mr *MockStateManagerMockRecorder) SetRelation(arg0, arg1 any) *MockStateManagerSetRelationCall
SetRelation indicates an expected call of SetRelation.
type MockStateManagerRelationCall ¶
MockStateManagerRelationCall wrap *gomock.Call
func (*MockStateManagerRelationCall) Do ¶
func (c *MockStateManagerRelationCall) Do(f func(int) (*relation.State, error)) *MockStateManagerRelationCall
Do rewrite *gomock.Call.Do
func (*MockStateManagerRelationCall) DoAndReturn ¶
func (c *MockStateManagerRelationCall) DoAndReturn(f func(int) (*relation.State, error)) *MockStateManagerRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateManagerRelationCall) Return ¶
func (c *MockStateManagerRelationCall) Return(arg0 *relation.State, arg1 error) *MockStateManagerRelationCall
Return rewrite *gomock.Call.Return
type MockStateManagerRelationFoundCall ¶
MockStateManagerRelationFoundCall wrap *gomock.Call
func (*MockStateManagerRelationFoundCall) Do ¶
func (c *MockStateManagerRelationFoundCall) Do(f func(int) bool) *MockStateManagerRelationFoundCall
Do rewrite *gomock.Call.Do
func (*MockStateManagerRelationFoundCall) DoAndReturn ¶
func (c *MockStateManagerRelationFoundCall) DoAndReturn(f func(int) bool) *MockStateManagerRelationFoundCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateManagerRelationFoundCall) Return ¶
func (c *MockStateManagerRelationFoundCall) Return(arg0 bool) *MockStateManagerRelationFoundCall
Return rewrite *gomock.Call.Return
type MockStateManagerRemoveRelationCall ¶
MockStateManagerRemoveRelationCall wrap *gomock.Call
func (*MockStateManagerRemoveRelationCall) Do ¶
func (c *MockStateManagerRemoveRelationCall) Do(f func(context.Context, int, relation.UnitGetter, map[string]bool) error) *MockStateManagerRemoveRelationCall
Do rewrite *gomock.Call.Do
func (*MockStateManagerRemoveRelationCall) DoAndReturn ¶
func (c *MockStateManagerRemoveRelationCall) DoAndReturn(f func(context.Context, int, relation.UnitGetter, map[string]bool) error) *MockStateManagerRemoveRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateManagerRemoveRelationCall) Return ¶
func (c *MockStateManagerRemoveRelationCall) Return(arg0 error) *MockStateManagerRemoveRelationCall
Return rewrite *gomock.Call.Return
type MockStateManagerSetRelationCall ¶
MockStateManagerSetRelationCall wrap *gomock.Call
func (*MockStateManagerSetRelationCall) Do ¶
func (c *MockStateManagerSetRelationCall) Do(f func(context.Context, *relation.State) error) *MockStateManagerSetRelationCall
Do rewrite *gomock.Call.Do
func (*MockStateManagerSetRelationCall) DoAndReturn ¶
func (c *MockStateManagerSetRelationCall) DoAndReturn(f func(context.Context, *relation.State) error) *MockStateManagerSetRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateManagerSetRelationCall) Return ¶
func (c *MockStateManagerSetRelationCall) Return(arg0 error) *MockStateManagerSetRelationCall
Return rewrite *gomock.Call.Return
type MockStateTrackerClient ¶
type MockStateTrackerClient struct {
// contains filtered or unexported fields
}
MockStateTrackerClient is a mock of StateTrackerClient interface.
func NewMockStateTrackerClient ¶
func NewMockStateTrackerClient(ctrl *gomock.Controller) *MockStateTrackerClient
NewMockStateTrackerClient creates a new mock instance.
func (*MockStateTrackerClient) EXPECT ¶
func (m *MockStateTrackerClient) EXPECT() *MockStateTrackerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateTrackerClient) Relation ¶
func (m *MockStateTrackerClient) Relation(arg0 context.Context, arg1 names.RelationTag) (api.Relation, error)
Relation mocks base method.
func (*MockStateTrackerClient) RelationById ¶
RelationById mocks base method.
type MockStateTrackerClientMockRecorder ¶
type MockStateTrackerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockStateTrackerClientMockRecorder is the mock recorder for MockStateTrackerClient.
func (*MockStateTrackerClientMockRecorder) Relation ¶
func (mr *MockStateTrackerClientMockRecorder) Relation(arg0, arg1 any) *MockStateTrackerClientRelationCall
Relation indicates an expected call of Relation.
func (*MockStateTrackerClientMockRecorder) RelationById ¶
func (mr *MockStateTrackerClientMockRecorder) RelationById(arg0, arg1 any) *MockStateTrackerClientRelationByIdCall
RelationById indicates an expected call of RelationById.
func (*MockStateTrackerClientMockRecorder) Unit ¶
func (mr *MockStateTrackerClientMockRecorder) Unit(arg0, arg1 any) *MockStateTrackerClientUnitCall
Unit indicates an expected call of Unit.
type MockStateTrackerClientRelationByIdCall ¶
MockStateTrackerClientRelationByIdCall wrap *gomock.Call
func (*MockStateTrackerClientRelationByIdCall) Do ¶
func (c *MockStateTrackerClientRelationByIdCall) Do(f func(context.Context, int) (api.Relation, error)) *MockStateTrackerClientRelationByIdCall
Do rewrite *gomock.Call.Do
func (*MockStateTrackerClientRelationByIdCall) DoAndReturn ¶
func (c *MockStateTrackerClientRelationByIdCall) DoAndReturn(f func(context.Context, int) (api.Relation, error)) *MockStateTrackerClientRelationByIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateTrackerClientRelationByIdCall) Return ¶
func (c *MockStateTrackerClientRelationByIdCall) Return(arg0 api.Relation, arg1 error) *MockStateTrackerClientRelationByIdCall
Return rewrite *gomock.Call.Return
type MockStateTrackerClientRelationCall ¶
MockStateTrackerClientRelationCall wrap *gomock.Call
func (*MockStateTrackerClientRelationCall) Do ¶
func (c *MockStateTrackerClientRelationCall) Do(f func(context.Context, names.RelationTag) (api.Relation, error)) *MockStateTrackerClientRelationCall
Do rewrite *gomock.Call.Do
func (*MockStateTrackerClientRelationCall) DoAndReturn ¶
func (c *MockStateTrackerClientRelationCall) DoAndReturn(f func(context.Context, names.RelationTag) (api.Relation, error)) *MockStateTrackerClientRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateTrackerClientRelationCall) Return ¶
func (c *MockStateTrackerClientRelationCall) Return(arg0 api.Relation, arg1 error) *MockStateTrackerClientRelationCall
Return rewrite *gomock.Call.Return
type MockStateTrackerClientUnitCall ¶
MockStateTrackerClientUnitCall wrap *gomock.Call
func (*MockStateTrackerClientUnitCall) Do ¶
func (c *MockStateTrackerClientUnitCall) Do(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockStateTrackerClientUnitCall
Do rewrite *gomock.Call.Do
func (*MockStateTrackerClientUnitCall) DoAndReturn ¶
func (c *MockStateTrackerClientUnitCall) DoAndReturn(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockStateTrackerClientUnitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStateTrackerClientUnitCall) Return ¶
func (c *MockStateTrackerClientUnitCall) Return(arg0 api.Unit, arg1 error) *MockStateTrackerClientUnitCall
Return rewrite *gomock.Call.Return
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(arg0 context.Context) 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 MockSubordinateDestroyerDestroyAllSubordinatesCall ¶
MockSubordinateDestroyerDestroyAllSubordinatesCall wrap *gomock.Call
func (*MockSubordinateDestroyerDestroyAllSubordinatesCall) Do ¶
func (c *MockSubordinateDestroyerDestroyAllSubordinatesCall) Do(f func(context.Context) error) *MockSubordinateDestroyerDestroyAllSubordinatesCall
Do rewrite *gomock.Call.Do
func (*MockSubordinateDestroyerDestroyAllSubordinatesCall) DoAndReturn ¶
func (c *MockSubordinateDestroyerDestroyAllSubordinatesCall) DoAndReturn(f func(context.Context) error) *MockSubordinateDestroyerDestroyAllSubordinatesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSubordinateDestroyerDestroyAllSubordinatesCall) Return ¶
func (c *MockSubordinateDestroyerDestroyAllSubordinatesCall) Return(arg0 error) *MockSubordinateDestroyerDestroyAllSubordinatesCall
Return rewrite *gomock.Call.Return
type MockSubordinateDestroyerMockRecorder ¶
type MockSubordinateDestroyerMockRecorder struct {
// contains filtered or unexported fields
}
MockSubordinateDestroyerMockRecorder is the mock recorder for MockSubordinateDestroyer.
func (*MockSubordinateDestroyerMockRecorder) DestroyAllSubordinates ¶
func (mr *MockSubordinateDestroyerMockRecorder) DestroyAllSubordinates(arg0 any) *MockSubordinateDestroyerDestroyAllSubordinatesCall
DestroyAllSubordinates indicates an expected call of DestroyAllSubordinates.
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.
func (*MockUnitGetterMockRecorder) Unit ¶
func (mr *MockUnitGetterMockRecorder) Unit(arg0, arg1 any) *MockUnitGetterUnitCall
Unit indicates an expected call of Unit.
type MockUnitGetterUnitCall ¶
MockUnitGetterUnitCall wrap *gomock.Call
func (*MockUnitGetterUnitCall) Do ¶
func (c *MockUnitGetterUnitCall) Do(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockUnitGetterUnitCall
Do rewrite *gomock.Call.Do
func (*MockUnitGetterUnitCall) DoAndReturn ¶
func (c *MockUnitGetterUnitCall) DoAndReturn(f func(context.Context, names.UnitTag) (api.Unit, error)) *MockUnitGetterUnitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitGetterUnitCall) Return ¶
func (c *MockUnitGetterUnitCall) Return(arg0 api.Unit, arg1 error) *MockUnitGetterUnitCall
Return rewrite *gomock.Call.Return