mocks

package
v0.0.0-...-4308112 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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 context.Context, arg1 hook.Info) error

CommitHook mocks base method.

func (*MockRelationStateTracker) EXPECT

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

func (*MockRelationStateTracker) GetInfo

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

type MockRelationStateTrackerCommitHookCall struct {
	*gomock.Call
}

MockRelationStateTrackerCommitHookCall wrap *gomock.Call

func (*MockRelationStateTrackerCommitHookCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerCommitHookCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerCommitHookCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerGetInfoCall

type MockRelationStateTrackerGetInfoCall struct {
	*gomock.Call
}

MockRelationStateTrackerGetInfoCall wrap *gomock.Call

func (*MockRelationStateTrackerGetInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerGetInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerGetInfoCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerHasContainerScopeCall

type MockRelationStateTrackerHasContainerScopeCall struct {
	*gomock.Call
}

MockRelationStateTrackerHasContainerScopeCall wrap *gomock.Call

func (*MockRelationStateTrackerHasContainerScopeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerHasContainerScopeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerHasContainerScopeCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerIsImplicitCall

type MockRelationStateTrackerIsImplicitCall struct {
	*gomock.Call
}

MockRelationStateTrackerIsImplicitCall wrap *gomock.Call

func (*MockRelationStateTrackerIsImplicitCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerIsImplicitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerIsImplicitCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerIsKnownCall

type MockRelationStateTrackerIsKnownCall struct {
	*gomock.Call
}

MockRelationStateTrackerIsKnownCall wrap *gomock.Call

func (*MockRelationStateTrackerIsKnownCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerIsKnownCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerIsKnownCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerIsPeerRelationCall

type MockRelationStateTrackerIsPeerRelationCall struct {
	*gomock.Call
}

MockRelationStateTrackerIsPeerRelationCall wrap *gomock.Call

func (*MockRelationStateTrackerIsPeerRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerIsPeerRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerIsPeerRelationCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerLocalUnitAndApplicationLifeCall

type MockRelationStateTrackerLocalUnitAndApplicationLifeCall struct {
	*gomock.Call
}

MockRelationStateTrackerLocalUnitAndApplicationLifeCall wrap *gomock.Call

func (*MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerLocalUnitAndApplicationLifeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerLocalUnitAndApplicationLifeCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerLocalUnitNameCall

type MockRelationStateTrackerLocalUnitNameCall struct {
	*gomock.Call
}

MockRelationStateTrackerLocalUnitNameCall wrap *gomock.Call

func (*MockRelationStateTrackerLocalUnitNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerLocalUnitNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerLocalUnitNameCall) Return

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

CommitHook indicates an expected call of CommitHook.

func (*MockRelationStateTrackerMockRecorder) GetInfo

GetInfo indicates an expected call of GetInfo.

func (*MockRelationStateTrackerMockRecorder) HasContainerScope

HasContainerScope indicates an expected call of HasContainerScope.

func (*MockRelationStateTrackerMockRecorder) IsImplicit

IsImplicit indicates an expected call of IsImplicit.

func (*MockRelationStateTrackerMockRecorder) IsKnown

IsKnown indicates an expected call of IsKnown.

func (*MockRelationStateTrackerMockRecorder) IsPeerRelation

IsPeerRelation indicates an expected call of IsPeerRelation.

func (*MockRelationStateTrackerMockRecorder) LocalUnitAndApplicationLife

LocalUnitAndApplicationLife indicates an expected call of LocalUnitAndApplicationLife.

func (*MockRelationStateTrackerMockRecorder) LocalUnitName

LocalUnitName indicates an expected call of LocalUnitName.

func (*MockRelationStateTrackerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockRelationStateTrackerMockRecorder) PrepareHook

PrepareHook indicates an expected call of PrepareHook.

func (*MockRelationStateTrackerMockRecorder) RelationCreated

RelationCreated indicates an expected call of RelationCreated.

func (*MockRelationStateTrackerMockRecorder) RemoteApplication

RemoteApplication indicates an expected call of RemoteApplication.

func (*MockRelationStateTrackerMockRecorder) Report

Report indicates an expected call of Report.

func (*MockRelationStateTrackerMockRecorder) State

State indicates an expected call of State.

func (*MockRelationStateTrackerMockRecorder) StateFound

StateFound indicates an expected call of StateFound.

func (*MockRelationStateTrackerMockRecorder) SynchronizeScopes

SynchronizeScopes indicates an expected call of SynchronizeScopes.

type MockRelationStateTrackerNameCall

type MockRelationStateTrackerNameCall struct {
	*gomock.Call
}

MockRelationStateTrackerNameCall wrap *gomock.Call

func (*MockRelationStateTrackerNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerNameCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerPrepareHookCall

type MockRelationStateTrackerPrepareHookCall struct {
	*gomock.Call
}

MockRelationStateTrackerPrepareHookCall wrap *gomock.Call

func (*MockRelationStateTrackerPrepareHookCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerPrepareHookCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerPrepareHookCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerRelationCreatedCall

type MockRelationStateTrackerRelationCreatedCall struct {
	*gomock.Call
}

MockRelationStateTrackerRelationCreatedCall wrap *gomock.Call

func (*MockRelationStateTrackerRelationCreatedCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerRelationCreatedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerRelationCreatedCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerRemoteApplicationCall

type MockRelationStateTrackerRemoteApplicationCall struct {
	*gomock.Call
}

MockRelationStateTrackerRemoteApplicationCall wrap *gomock.Call

func (*MockRelationStateTrackerRemoteApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerRemoteApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerRemoteApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerReportCall

type MockRelationStateTrackerReportCall struct {
	*gomock.Call
}

MockRelationStateTrackerReportCall wrap *gomock.Call

func (*MockRelationStateTrackerReportCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerReportCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerReportCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerStateCall

type MockRelationStateTrackerStateCall struct {
	*gomock.Call
}

MockRelationStateTrackerStateCall wrap *gomock.Call

func (*MockRelationStateTrackerStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerStateCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerStateFoundCall

type MockRelationStateTrackerStateFoundCall struct {
	*gomock.Call
}

MockRelationStateTrackerStateFoundCall wrap *gomock.Call

func (*MockRelationStateTrackerStateFoundCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerStateFoundCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerStateFoundCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStateTrackerSynchronizeScopesCall

type MockRelationStateTrackerSynchronizeScopesCall struct {
	*gomock.Call
}

MockRelationStateTrackerSynchronizeScopesCall wrap *gomock.Call

func (*MockRelationStateTrackerSynchronizeScopesCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStateTrackerSynchronizeScopesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStateTrackerSynchronizeScopesCall) Return

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

func (m *MockRelationer) CommitHook(arg0 context.Context, arg1 hook.Info) error

CommitHook mocks base method.

func (*MockRelationer) ContextInfo

func (m *MockRelationer) ContextInfo() *context0.RelationInfo

ContextInfo mocks base method.

func (*MockRelationer) EXPECT

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

func (*MockRelationer) IsDying

func (m *MockRelationer) IsDying() bool

IsDying mocks base method.

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.

func (*MockRelationer) SetDying

func (m *MockRelationer) SetDying(arg0 context.Context) error

SetDying mocks base method.

type MockRelationerCommitHookCall

type MockRelationerCommitHookCall struct {
	*gomock.Call
}

MockRelationerCommitHookCall wrap *gomock.Call

func (*MockRelationerCommitHookCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerCommitHookCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerCommitHookCall) Return

Return rewrite *gomock.Call.Return

type MockRelationerContextInfoCall

type MockRelationerContextInfoCall struct {
	*gomock.Call
}

MockRelationerContextInfoCall wrap *gomock.Call

func (*MockRelationerContextInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerContextInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerContextInfoCall) Return

Return rewrite *gomock.Call.Return

type MockRelationerIsDyingCall

type MockRelationerIsDyingCall struct {
	*gomock.Call
}

MockRelationerIsDyingCall wrap *gomock.Call

func (*MockRelationerIsDyingCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerIsDyingCall) DoAndReturn

func (c *MockRelationerIsDyingCall) DoAndReturn(f func() bool) *MockRelationerIsDyingCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerIsDyingCall) Return

Return rewrite *gomock.Call.Return

type MockRelationerIsImplicitCall

type MockRelationerIsImplicitCall struct {
	*gomock.Call
}

MockRelationerIsImplicitCall wrap *gomock.Call

func (*MockRelationerIsImplicitCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerIsImplicitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerIsImplicitCall) Return

Return rewrite *gomock.Call.Return

type MockRelationerJoinCall

type MockRelationerJoinCall struct {
	*gomock.Call
}

MockRelationerJoinCall wrap *gomock.Call

func (*MockRelationerJoinCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerJoinCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerJoinCall) Return

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

ContextInfo indicates an expected call of ContextInfo.

func (*MockRelationerMockRecorder) IsDying

IsDying indicates an expected call of IsDying.

func (*MockRelationerMockRecorder) IsImplicit

IsImplicit indicates an expected call of IsImplicit.

func (*MockRelationerMockRecorder) Join

Join indicates an expected call of Join.

func (*MockRelationerMockRecorder) PrepareHook

PrepareHook indicates an expected call of PrepareHook.

func (*MockRelationerMockRecorder) RelationUnit

RelationUnit indicates an expected call of RelationUnit.

func (*MockRelationerMockRecorder) SetDying

SetDying indicates an expected call of SetDying.

type MockRelationerPrepareHookCall

type MockRelationerPrepareHookCall struct {
	*gomock.Call
}

MockRelationerPrepareHookCall wrap *gomock.Call

func (*MockRelationerPrepareHookCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerPrepareHookCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerPrepareHookCall) Return

Return rewrite *gomock.Call.Return

type MockRelationerRelationUnitCall

type MockRelationerRelationUnitCall struct {
	*gomock.Call
}

MockRelationerRelationUnitCall wrap *gomock.Call

func (*MockRelationerRelationUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerRelationUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerRelationUnitCall) Return

Return rewrite *gomock.Call.Return

type MockRelationerSetDyingCall

type MockRelationerSetDyingCall struct {
	*gomock.Call
}

MockRelationerSetDyingCall wrap *gomock.Call

func (*MockRelationerSetDyingCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationerSetDyingCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationerSetDyingCall) Return

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

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

func (m *MockStateManager) SetRelation(arg0 context.Context, arg1 *relation.State) error

SetRelation mocks base method.

type MockStateManagerKnownIDsCall

type MockStateManagerKnownIDsCall struct {
	*gomock.Call
}

MockStateManagerKnownIDsCall wrap *gomock.Call

func (*MockStateManagerKnownIDsCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateManagerKnownIDsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateManagerKnownIDsCall) Return

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

KnownIDs indicates an expected call of KnownIDs.

func (*MockStateManagerMockRecorder) Relation

Relation indicates an expected call of Relation.

func (*MockStateManagerMockRecorder) RelationFound

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

SetRelation indicates an expected call of SetRelation.

type MockStateManagerRelationCall

type MockStateManagerRelationCall struct {
	*gomock.Call
}

MockStateManagerRelationCall wrap *gomock.Call

func (*MockStateManagerRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateManagerRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateManagerRelationCall) Return

Return rewrite *gomock.Call.Return

type MockStateManagerRelationFoundCall

type MockStateManagerRelationFoundCall struct {
	*gomock.Call
}

MockStateManagerRelationFoundCall wrap *gomock.Call

func (*MockStateManagerRelationFoundCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateManagerRelationFoundCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateManagerRelationFoundCall) Return

Return rewrite *gomock.Call.Return

type MockStateManagerRemoveRelationCall

type MockStateManagerRemoveRelationCall struct {
	*gomock.Call
}

MockStateManagerRemoveRelationCall wrap *gomock.Call

func (*MockStateManagerRemoveRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateManagerRemoveRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateManagerRemoveRelationCall) Return

Return rewrite *gomock.Call.Return

type MockStateManagerSetRelationCall

type MockStateManagerSetRelationCall struct {
	*gomock.Call
}

MockStateManagerSetRelationCall wrap *gomock.Call

func (*MockStateManagerSetRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateManagerSetRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateManagerSetRelationCall) Return

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

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

func (*MockStateTrackerClient) Relation

Relation mocks base method.

func (*MockStateTrackerClient) RelationById

func (m *MockStateTrackerClient) RelationById(arg0 context.Context, arg1 int) (api.Relation, error)

RelationById mocks base method.

func (*MockStateTrackerClient) Unit

Unit mocks base method.

type MockStateTrackerClientMockRecorder

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

MockStateTrackerClientMockRecorder is the mock recorder for MockStateTrackerClient.

func (*MockStateTrackerClientMockRecorder) Relation

Relation indicates an expected call of Relation.

func (*MockStateTrackerClientMockRecorder) RelationById

RelationById indicates an expected call of RelationById.

func (*MockStateTrackerClientMockRecorder) Unit

Unit indicates an expected call of Unit.

type MockStateTrackerClientRelationByIdCall

type MockStateTrackerClientRelationByIdCall struct {
	*gomock.Call
}

MockStateTrackerClientRelationByIdCall wrap *gomock.Call

func (*MockStateTrackerClientRelationByIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateTrackerClientRelationByIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateTrackerClientRelationByIdCall) Return

Return rewrite *gomock.Call.Return

type MockStateTrackerClientRelationCall

type MockStateTrackerClientRelationCall struct {
	*gomock.Call
}

MockStateTrackerClientRelationCall wrap *gomock.Call

func (*MockStateTrackerClientRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateTrackerClientRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateTrackerClientRelationCall) Return

Return rewrite *gomock.Call.Return

type MockStateTrackerClientUnitCall

type MockStateTrackerClientUnitCall struct {
	*gomock.Call
}

MockStateTrackerClientUnitCall wrap *gomock.Call

func (*MockStateTrackerClientUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockStateTrackerClientUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStateTrackerClientUnitCall) Return

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

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

type MockSubordinateDestroyerDestroyAllSubordinatesCall

type MockSubordinateDestroyerDestroyAllSubordinatesCall struct {
	*gomock.Call
}

MockSubordinateDestroyerDestroyAllSubordinatesCall wrap *gomock.Call

func (*MockSubordinateDestroyerDestroyAllSubordinatesCall) Do

Do rewrite *gomock.Call.Do

func (*MockSubordinateDestroyerDestroyAllSubordinatesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSubordinateDestroyerDestroyAllSubordinatesCall) Return

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

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

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

func (*MockUnitGetter) Unit

func (m *MockUnitGetter) Unit(arg0 context.Context, arg1 names.UnitTag) (api.Unit, error)

Unit mocks base method.

type MockUnitGetterMockRecorder

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

MockUnitGetterMockRecorder is the mock recorder for MockUnitGetter.

func (*MockUnitGetterMockRecorder) Unit

Unit indicates an expected call of Unit.

type MockUnitGetterUnitCall

type MockUnitGetterUnitCall struct {
	*gomock.Call
}

MockUnitGetterUnitCall wrap *gomock.Call

func (*MockUnitGetterUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitGetterUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitGetterUnitCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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