api

package
v0.0.0-...-cd5507d Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package api defines the api client interfaces used by the uniter and the gomock mocks used in testing.

Package api is a generated GoMock package.

Package api is a generated GoMock package.

Package api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Life() life.Value
	Tag() names.ApplicationTag
	Status(ctx context.Context, unitName string) (params.ApplicationStatusResult, error)
	SetStatus(ctx context.Context, unitName string, appStatus status.Status, info string, data map[string]interface{}) error
	CharmModifiedVersion(context.Context) (int, error)
	CharmURL(context.Context) (string, bool, error)

	Watch(context.Context) (watcher.NotifyWatcher, error)
	Refresh(context.Context) error
}

Application defines the methods on uniter.api.Application.

type Charm

type Charm interface {
	URL() string
	LXDProfileRequired(context.Context) (bool, error)
	ArchiveSha256(context.Context) (string, error)
}

Charm defines the methods on uniter.api.Charm.

type MockApplication

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

MockApplication is a mock of Application interface.

func NewMockApplication

func NewMockApplication(ctrl *gomock.Controller) *MockApplication

NewMockApplication creates a new mock instance.

func (*MockApplication) CharmModifiedVersion

func (m *MockApplication) CharmModifiedVersion(arg0 context.Context) (int, error)

CharmModifiedVersion mocks base method.

func (*MockApplication) CharmURL

func (m *MockApplication) CharmURL(arg0 context.Context) (string, bool, error)

CharmURL mocks base method.

func (*MockApplication) EXPECT

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

func (*MockApplication) Life

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

Life mocks base method.

func (*MockApplication) Refresh

func (m *MockApplication) Refresh(arg0 context.Context) error

Refresh mocks base method.

func (*MockApplication) SetStatus

func (m *MockApplication) SetStatus(arg0 context.Context, arg1 string, arg2 status.Status, arg3 string, arg4 map[string]any) error

SetStatus mocks base method.

func (*MockApplication) Status

Status mocks base method.

func (*MockApplication) Tag

Tag mocks base method.

func (*MockApplication) Watch

func (m *MockApplication) Watch(arg0 context.Context) (watcher.Watcher[struct{}], error)

Watch mocks base method.

type MockApplicationCharmModifiedVersionCall

type MockApplicationCharmModifiedVersionCall struct {
	*gomock.Call
}

MockApplicationCharmModifiedVersionCall wrap *gomock.Call

func (*MockApplicationCharmModifiedVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationCharmModifiedVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationCharmModifiedVersionCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationCharmURLCall

type MockApplicationCharmURLCall struct {
	*gomock.Call
}

MockApplicationCharmURLCall wrap *gomock.Call

func (*MockApplicationCharmURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationCharmURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationCharmURLCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationLifeCall

type MockApplicationLifeCall struct {
	*gomock.Call
}

MockApplicationLifeCall wrap *gomock.Call

func (*MockApplicationLifeCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationLifeCall) DoAndReturn

func (c *MockApplicationLifeCall) DoAndReturn(f func() life.Value) *MockApplicationLifeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationLifeCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) CharmModifiedVersion

CharmModifiedVersion indicates an expected call of CharmModifiedVersion.

func (*MockApplicationMockRecorder) CharmURL

CharmURL indicates an expected call of CharmURL.

func (*MockApplicationMockRecorder) Life

Life indicates an expected call of Life.

func (*MockApplicationMockRecorder) Refresh

Refresh indicates an expected call of Refresh.

func (*MockApplicationMockRecorder) SetStatus

func (mr *MockApplicationMockRecorder) SetStatus(arg0, arg1, arg2, arg3, arg4 any) *MockApplicationSetStatusCall

SetStatus indicates an expected call of SetStatus.

func (*MockApplicationMockRecorder) Status

Status indicates an expected call of Status.

func (*MockApplicationMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockApplicationMockRecorder) Watch

Watch indicates an expected call of Watch.

type MockApplicationRefreshCall

type MockApplicationRefreshCall struct {
	*gomock.Call
}

MockApplicationRefreshCall wrap *gomock.Call

func (*MockApplicationRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationRefreshCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationSetStatusCall

type MockApplicationSetStatusCall struct {
	*gomock.Call
}

MockApplicationSetStatusCall wrap *gomock.Call

func (*MockApplicationSetStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationSetStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationSetStatusCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationStatusCall

type MockApplicationStatusCall struct {
	*gomock.Call
}

MockApplicationStatusCall wrap *gomock.Call

func (*MockApplicationStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationStatusCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationTagCall

type MockApplicationTagCall struct {
	*gomock.Call
}

MockApplicationTagCall wrap *gomock.Call

func (*MockApplicationTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationTagCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationWatchCall

type MockApplicationWatchCall struct {
	*gomock.Call
}

MockApplicationWatchCall wrap *gomock.Call

func (*MockApplicationWatchCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationWatchCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationWatchCall) Return

func (c *MockApplicationWatchCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockApplicationWatchCall

Return rewrite *gomock.Call.Return

type MockCharm

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

MockCharm is a mock of Charm interface.

func NewMockCharm

func NewMockCharm(ctrl *gomock.Controller) *MockCharm

NewMockCharm creates a new mock instance.

func (*MockCharm) ArchiveSha256

func (m *MockCharm) ArchiveSha256(arg0 context.Context) (string, error)

ArchiveSha256 mocks base method.

func (*MockCharm) EXPECT

func (m *MockCharm) EXPECT() *MockCharmMockRecorder

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

func (*MockCharm) LXDProfileRequired

func (m *MockCharm) LXDProfileRequired(arg0 context.Context) (bool, error)

LXDProfileRequired mocks base method.

func (*MockCharm) URL

func (m *MockCharm) URL() string

URL mocks base method.

type MockCharmArchiveSha256Call

type MockCharmArchiveSha256Call struct {
	*gomock.Call
}

MockCharmArchiveSha256Call wrap *gomock.Call

func (*MockCharmArchiveSha256Call) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveSha256Call) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveSha256Call) Return

Return rewrite *gomock.Call.Return

type MockCharmLXDProfileRequiredCall

type MockCharmLXDProfileRequiredCall struct {
	*gomock.Call
}

MockCharmLXDProfileRequiredCall wrap *gomock.Call

func (*MockCharmLXDProfileRequiredCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmLXDProfileRequiredCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmLXDProfileRequiredCall) Return

Return rewrite *gomock.Call.Return

type MockCharmMockRecorder

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

MockCharmMockRecorder is the mock recorder for MockCharm.

func (*MockCharmMockRecorder) ArchiveSha256

func (mr *MockCharmMockRecorder) ArchiveSha256(arg0 any) *MockCharmArchiveSha256Call

ArchiveSha256 indicates an expected call of ArchiveSha256.

func (*MockCharmMockRecorder) LXDProfileRequired

func (mr *MockCharmMockRecorder) LXDProfileRequired(arg0 any) *MockCharmLXDProfileRequiredCall

LXDProfileRequired indicates an expected call of LXDProfileRequired.

func (*MockCharmMockRecorder) URL

URL indicates an expected call of URL.

type MockCharmURLCall

type MockCharmURLCall struct {
	*gomock.Call
}

MockCharmURLCall wrap *gomock.Call

func (*MockCharmURLCall) Do

func (c *MockCharmURLCall) Do(f func() string) *MockCharmURLCall

Do rewrite *gomock.Call.Do

func (*MockCharmURLCall) DoAndReturn

func (c *MockCharmURLCall) DoAndReturn(f func() string) *MockCharmURLCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmURLCall) Return

func (c *MockCharmURLCall) Return(arg0 string) *MockCharmURLCall

Return rewrite *gomock.Call.Return

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

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

func (*MockRelation) Endpoint

func (m *MockRelation) Endpoint(arg0 context.Context) (*uniter.Endpoint, error)

Endpoint mocks base method.

func (*MockRelation) Id

func (m *MockRelation) Id() int

Id mocks base method.

func (*MockRelation) Life

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

Life mocks base method.

func (*MockRelation) OtherApplication

func (m *MockRelation) OtherApplication() string

OtherApplication mocks base method.

func (*MockRelation) OtherModelUUID

func (m *MockRelation) OtherModelUUID() string

OtherModelUUID mocks base method.

func (*MockRelation) Refresh

func (m *MockRelation) Refresh(arg0 context.Context) error

Refresh mocks base method.

func (*MockRelation) SetStatus

func (m *MockRelation) SetStatus(arg0 context.Context, arg1 relation.Status) error

SetStatus mocks base method.

func (*MockRelation) String

func (m *MockRelation) String() string

String mocks base method.

func (*MockRelation) Suspended

func (m *MockRelation) Suspended() bool

Suspended mocks base method.

func (*MockRelation) Tag

func (m *MockRelation) Tag() names.RelationTag

Tag mocks base method.

func (*MockRelation) Unit

func (m *MockRelation) Unit(arg0 context.Context, arg1 names.UnitTag) (RelationUnit, error)

Unit mocks base method.

func (*MockRelation) UpdateSuspended

func (m *MockRelation) UpdateSuspended(arg0 bool)

UpdateSuspended mocks base method.

type MockRelationEndpointCall

type MockRelationEndpointCall struct {
	*gomock.Call
}

MockRelationEndpointCall wrap *gomock.Call

func (*MockRelationEndpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationEndpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationEndpointCall) Return

Return rewrite *gomock.Call.Return

type MockRelationIdCall

type MockRelationIdCall struct {
	*gomock.Call
}

MockRelationIdCall wrap *gomock.Call

func (*MockRelationIdCall) Do

func (c *MockRelationIdCall) Do(f func() int) *MockRelationIdCall

Do rewrite *gomock.Call.Do

func (*MockRelationIdCall) DoAndReturn

func (c *MockRelationIdCall) DoAndReturn(f func() int) *MockRelationIdCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationIdCall) Return

func (c *MockRelationIdCall) Return(arg0 int) *MockRelationIdCall

Return rewrite *gomock.Call.Return

type MockRelationLifeCall

type MockRelationLifeCall struct {
	*gomock.Call
}

MockRelationLifeCall wrap *gomock.Call

func (*MockRelationLifeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationLifeCall) DoAndReturn

func (c *MockRelationLifeCall) DoAndReturn(f func() life.Value) *MockRelationLifeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationLifeCall) Return

Return rewrite *gomock.Call.Return

type MockRelationMockRecorder

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

MockRelationMockRecorder is the mock recorder for MockRelation.

func (*MockRelationMockRecorder) Endpoint

Endpoint indicates an expected call of Endpoint.

func (*MockRelationMockRecorder) Id

Id indicates an expected call of Id.

func (*MockRelationMockRecorder) Life

Life indicates an expected call of Life.

func (*MockRelationMockRecorder) OtherApplication

OtherApplication indicates an expected call of OtherApplication.

func (*MockRelationMockRecorder) OtherModelUUID

OtherModelUUID indicates an expected call of OtherModelUUID.

func (*MockRelationMockRecorder) Refresh

Refresh indicates an expected call of Refresh.

func (*MockRelationMockRecorder) SetStatus

func (mr *MockRelationMockRecorder) SetStatus(arg0, arg1 any) *MockRelationSetStatusCall

SetStatus indicates an expected call of SetStatus.

func (*MockRelationMockRecorder) String

String indicates an expected call of String.

func (*MockRelationMockRecorder) Suspended

Suspended indicates an expected call of Suspended.

func (*MockRelationMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockRelationMockRecorder) Unit

func (mr *MockRelationMockRecorder) Unit(arg0, arg1 any) *MockRelationUnitCall

Unit indicates an expected call of Unit.

func (*MockRelationMockRecorder) UpdateSuspended

UpdateSuspended indicates an expected call of UpdateSuspended.

type MockRelationOtherApplicationCall

type MockRelationOtherApplicationCall struct {
	*gomock.Call
}

MockRelationOtherApplicationCall wrap *gomock.Call

func (*MockRelationOtherApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationOtherApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationOtherApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockRelationOtherModelUUIDCall

type MockRelationOtherModelUUIDCall struct {
	*gomock.Call
}

MockRelationOtherModelUUIDCall wrap *gomock.Call

func (*MockRelationOtherModelUUIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationOtherModelUUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationOtherModelUUIDCall) Return

Return rewrite *gomock.Call.Return

type MockRelationRefreshCall

type MockRelationRefreshCall struct {
	*gomock.Call
}

MockRelationRefreshCall wrap *gomock.Call

func (*MockRelationRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationRefreshCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockRelationSetStatusCall

type MockRelationSetStatusCall struct {
	*gomock.Call
}

MockRelationSetStatusCall wrap *gomock.Call

func (*MockRelationSetStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationSetStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationSetStatusCall) Return

Return rewrite *gomock.Call.Return

type MockRelationStringCall

type MockRelationStringCall struct {
	*gomock.Call
}

MockRelationStringCall wrap *gomock.Call

func (*MockRelationStringCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationStringCall) DoAndReturn

func (c *MockRelationStringCall) DoAndReturn(f func() string) *MockRelationStringCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationStringCall) Return

Return rewrite *gomock.Call.Return

type MockRelationSuspendedCall

type MockRelationSuspendedCall struct {
	*gomock.Call
}

MockRelationSuspendedCall wrap *gomock.Call

func (*MockRelationSuspendedCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationSuspendedCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationSuspendedCall) Return

Return rewrite *gomock.Call.Return

type MockRelationTagCall

type MockRelationTagCall struct {
	*gomock.Call
}

MockRelationTagCall wrap *gomock.Call

func (*MockRelationTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationTagCall) DoAndReturn

func (c *MockRelationTagCall) DoAndReturn(f func() names.RelationTag) *MockRelationTagCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationTagCall) Return

Return rewrite *gomock.Call.Return

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(arg0 context.Context) (*uniter.Settings, error)

ApplicationSettings mocks base method.

func (*MockRelationUnit) EXPECT

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(arg0 context.Context) error

EnterScope mocks base method.

func (*MockRelationUnit) LeaveScope

func (m *MockRelationUnit) LeaveScope(arg0 context.Context) error

LeaveScope mocks base method.

func (*MockRelationUnit) ReadSettings

func (m *MockRelationUnit) ReadSettings(arg0 context.Context, arg1 string) (params.Settings, error)

ReadSettings mocks base method.

func (*MockRelationUnit) Relation

func (m *MockRelationUnit) Relation() Relation

Relation mocks base method.

func (*MockRelationUnit) Settings

func (m *MockRelationUnit) Settings(arg0 context.Context) (*uniter.Settings, error)

Settings mocks base method.

type MockRelationUnitApplicationSettingsCall

type MockRelationUnitApplicationSettingsCall struct {
	*gomock.Call
}

MockRelationUnitApplicationSettingsCall wrap *gomock.Call

func (*MockRelationUnitApplicationSettingsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitApplicationSettingsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitApplicationSettingsCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitCall

type MockRelationUnitCall struct {
	*gomock.Call
}

MockRelationUnitCall wrap *gomock.Call

func (*MockRelationUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitEndpointCall

type MockRelationUnitEndpointCall struct {
	*gomock.Call
}

MockRelationUnitEndpointCall wrap *gomock.Call

func (*MockRelationUnitEndpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitEndpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitEndpointCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitEnterScopeCall

type MockRelationUnitEnterScopeCall struct {
	*gomock.Call
}

MockRelationUnitEnterScopeCall wrap *gomock.Call

func (*MockRelationUnitEnterScopeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitEnterScopeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitEnterScopeCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitLeaveScopeCall

type MockRelationUnitLeaveScopeCall struct {
	*gomock.Call
}

MockRelationUnitLeaveScopeCall wrap *gomock.Call

func (*MockRelationUnitLeaveScopeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitLeaveScopeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitLeaveScopeCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitMockRecorder

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

MockRelationUnitMockRecorder is the mock recorder for MockRelationUnit.

func (*MockRelationUnitMockRecorder) ApplicationSettings

ApplicationSettings indicates an expected call of ApplicationSettings.

func (*MockRelationUnitMockRecorder) Endpoint

Endpoint indicates an expected call of Endpoint.

func (*MockRelationUnitMockRecorder) EnterScope

EnterScope indicates an expected call of EnterScope.

func (*MockRelationUnitMockRecorder) LeaveScope

LeaveScope indicates an expected call of LeaveScope.

func (*MockRelationUnitMockRecorder) ReadSettings

ReadSettings indicates an expected call of ReadSettings.

func (*MockRelationUnitMockRecorder) Relation

Relation indicates an expected call of Relation.

func (*MockRelationUnitMockRecorder) Settings

Settings indicates an expected call of Settings.

type MockRelationUnitReadSettingsCall

type MockRelationUnitReadSettingsCall struct {
	*gomock.Call
}

MockRelationUnitReadSettingsCall wrap *gomock.Call

func (*MockRelationUnitReadSettingsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitReadSettingsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitReadSettingsCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitRelationCall

type MockRelationUnitRelationCall struct {
	*gomock.Call
}

MockRelationUnitRelationCall wrap *gomock.Call

func (*MockRelationUnitRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitRelationCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUnitSettingsCall

type MockRelationUnitSettingsCall struct {
	*gomock.Call
}

MockRelationUnitSettingsCall wrap *gomock.Call

func (*MockRelationUnitSettingsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUnitSettingsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUnitSettingsCall) Return

Return rewrite *gomock.Call.Return

type MockRelationUpdateSuspendedCall

type MockRelationUpdateSuspendedCall struct {
	*gomock.Call
}

MockRelationUpdateSuspendedCall wrap *gomock.Call

func (*MockRelationUpdateSuspendedCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationUpdateSuspendedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationUpdateSuspendedCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackend

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

MockSecretsBackend is a mock of SecretsBackend interface.

func NewMockSecretsBackend

func NewMockSecretsBackend(ctrl *gomock.Controller) *MockSecretsBackend

NewMockSecretsBackend creates a new mock instance.

func (*MockSecretsBackend) DeleteContent

func (m *MockSecretsBackend) DeleteContent(arg0 context.Context, arg1 *secrets.URI, arg2 int) error

DeleteContent mocks base method.

func (*MockSecretsBackend) DeleteExternalContent

func (m *MockSecretsBackend) DeleteExternalContent(arg0 context.Context, arg1 secrets.ValueRef) error

DeleteExternalContent mocks base method.

func (*MockSecretsBackend) EXPECT

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

func (*MockSecretsBackend) GetContent

func (m *MockSecretsBackend) GetContent(arg0 context.Context, arg1 *secrets.URI, arg2 string, arg3, arg4 bool) (secrets.SecretValue, error)

GetContent mocks base method.

func (*MockSecretsBackend) SaveContent

func (m *MockSecretsBackend) SaveContent(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 secrets.SecretValue) (secrets.ValueRef, error)

SaveContent mocks base method.

type MockSecretsBackendDeleteContentCall

type MockSecretsBackendDeleteContentCall struct {
	*gomock.Call
}

MockSecretsBackendDeleteContentCall wrap *gomock.Call

func (*MockSecretsBackendDeleteContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendDeleteContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendDeleteContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackendDeleteExternalContentCall

type MockSecretsBackendDeleteExternalContentCall struct {
	*gomock.Call
}

MockSecretsBackendDeleteExternalContentCall wrap *gomock.Call

func (*MockSecretsBackendDeleteExternalContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendDeleteExternalContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendDeleteExternalContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackendGetContentCall

type MockSecretsBackendGetContentCall struct {
	*gomock.Call
}

MockSecretsBackendGetContentCall wrap *gomock.Call

func (*MockSecretsBackendGetContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendGetContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendGetContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackendMockRecorder

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

MockSecretsBackendMockRecorder is the mock recorder for MockSecretsBackend.

func (*MockSecretsBackendMockRecorder) DeleteContent

func (mr *MockSecretsBackendMockRecorder) DeleteContent(arg0, arg1, arg2 any) *MockSecretsBackendDeleteContentCall

DeleteContent indicates an expected call of DeleteContent.

func (*MockSecretsBackendMockRecorder) DeleteExternalContent

DeleteExternalContent indicates an expected call of DeleteExternalContent.

func (*MockSecretsBackendMockRecorder) GetContent

func (mr *MockSecretsBackendMockRecorder) GetContent(arg0, arg1, arg2, arg3, arg4 any) *MockSecretsBackendGetContentCall

GetContent indicates an expected call of GetContent.

func (*MockSecretsBackendMockRecorder) SaveContent

func (mr *MockSecretsBackendMockRecorder) SaveContent(arg0, arg1, arg2, arg3 any) *MockSecretsBackendSaveContentCall

SaveContent indicates an expected call of SaveContent.

type MockSecretsBackendSaveContentCall

type MockSecretsBackendSaveContentCall struct {
	*gomock.Call
}

MockSecretsBackendSaveContentCall wrap *gomock.Call

func (*MockSecretsBackendSaveContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendSaveContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendSaveContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsClient

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

MockSecretsClient is a mock of SecretsClient interface.

func NewMockSecretsClient

func NewMockSecretsClient(ctrl *gomock.Controller) *MockSecretsClient

NewMockSecretsClient creates a new mock instance.

func (*MockSecretsClient) CreateSecretURIs

func (m *MockSecretsClient) CreateSecretURIs(arg0 context.Context, arg1 int) ([]*secrets.URI, error)

CreateSecretURIs mocks base method.

func (*MockSecretsClient) EXPECT

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

func (*MockSecretsClient) GetConsumerSecretsRevisionInfo

func (m *MockSecretsClient) GetConsumerSecretsRevisionInfo(arg0 context.Context, arg1 string, arg2 []string) (map[string]secrets.SecretRevisionInfo, error)

GetConsumerSecretsRevisionInfo mocks base method.

func (*MockSecretsClient) SecretMetadata

func (m *MockSecretsClient) SecretMetadata(arg0 context.Context) ([]secrets.SecretOwnerMetadata, error)

SecretMetadata mocks base method.

func (*MockSecretsClient) SecretRotated

func (m *MockSecretsClient) SecretRotated(arg0 context.Context, arg1 string, arg2 int) error

SecretRotated mocks base method.

func (*MockSecretsClient) WatchConsumedSecretsChanges

func (m *MockSecretsClient) WatchConsumedSecretsChanges(arg0 context.Context, arg1 string) (watcher.Watcher[[]string], error)

WatchConsumedSecretsChanges mocks base method.

func (*MockSecretsClient) WatchObsolete

func (m *MockSecretsClient) WatchObsolete(arg0 context.Context, arg1 ...names.Tag) (watcher.Watcher[[]string], error)

WatchObsolete mocks base method.

type MockSecretsClientCreateSecretURIsCall

type MockSecretsClientCreateSecretURIsCall struct {
	*gomock.Call
}

MockSecretsClientCreateSecretURIsCall wrap *gomock.Call

func (*MockSecretsClientCreateSecretURIsCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsClientCreateSecretURIsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsClientCreateSecretURIsCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsClientGetConsumerSecretsRevisionInfoCall

type MockSecretsClientGetConsumerSecretsRevisionInfoCall struct {
	*gomock.Call
}

MockSecretsClientGetConsumerSecretsRevisionInfoCall wrap *gomock.Call

func (*MockSecretsClientGetConsumerSecretsRevisionInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsClientGetConsumerSecretsRevisionInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsClientGetConsumerSecretsRevisionInfoCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsClientMockRecorder

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

MockSecretsClientMockRecorder is the mock recorder for MockSecretsClient.

func (*MockSecretsClientMockRecorder) CreateSecretURIs

CreateSecretURIs indicates an expected call of CreateSecretURIs.

func (*MockSecretsClientMockRecorder) GetConsumerSecretsRevisionInfo

func (mr *MockSecretsClientMockRecorder) GetConsumerSecretsRevisionInfo(arg0, arg1, arg2 any) *MockSecretsClientGetConsumerSecretsRevisionInfoCall

GetConsumerSecretsRevisionInfo indicates an expected call of GetConsumerSecretsRevisionInfo.

func (*MockSecretsClientMockRecorder) SecretMetadata

SecretMetadata indicates an expected call of SecretMetadata.

func (*MockSecretsClientMockRecorder) SecretRotated

func (mr *MockSecretsClientMockRecorder) SecretRotated(arg0, arg1, arg2 any) *MockSecretsClientSecretRotatedCall

SecretRotated indicates an expected call of SecretRotated.

func (*MockSecretsClientMockRecorder) WatchConsumedSecretsChanges

func (mr *MockSecretsClientMockRecorder) WatchConsumedSecretsChanges(arg0, arg1 any) *MockSecretsClientWatchConsumedSecretsChangesCall

WatchConsumedSecretsChanges indicates an expected call of WatchConsumedSecretsChanges.

func (*MockSecretsClientMockRecorder) WatchObsolete

func (mr *MockSecretsClientMockRecorder) WatchObsolete(arg0 any, arg1 ...any) *MockSecretsClientWatchObsoleteCall

WatchObsolete indicates an expected call of WatchObsolete.

type MockSecretsClientSecretMetadataCall

type MockSecretsClientSecretMetadataCall struct {
	*gomock.Call
}

MockSecretsClientSecretMetadataCall wrap *gomock.Call

func (*MockSecretsClientSecretMetadataCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsClientSecretMetadataCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsClientSecretMetadataCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsClientSecretRotatedCall

type MockSecretsClientSecretRotatedCall struct {
	*gomock.Call
}

MockSecretsClientSecretRotatedCall wrap *gomock.Call

func (*MockSecretsClientSecretRotatedCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsClientSecretRotatedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsClientSecretRotatedCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsClientWatchConsumedSecretsChangesCall

type MockSecretsClientWatchConsumedSecretsChangesCall struct {
	*gomock.Call
}

MockSecretsClientWatchConsumedSecretsChangesCall wrap *gomock.Call

func (*MockSecretsClientWatchConsumedSecretsChangesCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsClientWatchConsumedSecretsChangesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsClientWatchConsumedSecretsChangesCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsClientWatchObsoleteCall

type MockSecretsClientWatchObsoleteCall struct {
	*gomock.Call
}

MockSecretsClientWatchObsoleteCall wrap *gomock.Call

func (*MockSecretsClientWatchObsoleteCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsClientWatchObsoleteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsClientWatchObsoleteCall) Return

Return rewrite *gomock.Call.Return

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(arg0 context.Context) (Application, error)

Application mocks base method.

func (*MockUnit) ApplicationName

func (m *MockUnit) ApplicationName() string

ApplicationName mocks base method.

func (*MockUnit) ApplicationTag

func (m *MockUnit) ApplicationTag() names.ApplicationTag

ApplicationTag mocks base method.

func (*MockUnit) AssignedMachine

func (m *MockUnit) AssignedMachine(arg0 context.Context) (names.MachineTag, error)

AssignedMachine mocks base method.

func (*MockUnit) AvailabilityZone

func (m *MockUnit) AvailabilityZone(arg0 context.Context) (string, error)

AvailabilityZone mocks base method.

func (*MockUnit) CanApplyLXDProfile

func (m *MockUnit) CanApplyLXDProfile(arg0 context.Context) (bool, error)

CanApplyLXDProfile mocks base method.

func (*MockUnit) CharmURL

func (m *MockUnit) CharmURL(arg0 context.Context) (string, error)

CharmURL mocks base method.

func (*MockUnit) ClearResolved

func (m *MockUnit) ClearResolved(arg0 context.Context) error

ClearResolved mocks base method.

func (*MockUnit) CommitHookChanges

func (m *MockUnit) CommitHookChanges(arg0 context.Context, arg1 params.CommitHookChangesArgs) error

CommitHookChanges mocks base method.

func (*MockUnit) ConfigSettings

func (m *MockUnit) ConfigSettings(arg0 context.Context) (charm.Settings, error)

ConfigSettings mocks base method.

func (*MockUnit) Destroy

func (m *MockUnit) Destroy(arg0 context.Context) error

Destroy mocks base method.

func (*MockUnit) DestroyAllSubordinates

func (m *MockUnit) DestroyAllSubordinates(arg0 context.Context) error

DestroyAllSubordinates 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) EnsureDead

func (m *MockUnit) EnsureDead(arg0 context.Context) error

EnsureDead mocks base method.

func (*MockUnit) HasSubordinates

func (m *MockUnit) HasSubordinates(arg0 context.Context) (bool, error)

HasSubordinates mocks base method.

func (*MockUnit) LXDProfileName

func (m *MockUnit) LXDProfileName(arg0 context.Context) (string, error)

LXDProfileName mocks base method.

func (*MockUnit) Life

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

Life mocks base method.

func (*MockUnit) LogActionMessage

func (m *MockUnit) LogActionMessage(arg0 context.Context, arg1 names.ActionTag, arg2 string) error

LogActionMessage mocks base method.

func (*MockUnit) Name

func (m *MockUnit) Name() string

Name mocks base method.

func (*MockUnit) NetworkInfo

func (m *MockUnit) NetworkInfo(arg0 context.Context, arg1 []string, arg2 *int) (map[string]params.NetworkInfoResult, error)

NetworkInfo mocks base method.

func (*MockUnit) PrincipalName

func (m *MockUnit) PrincipalName(arg0 context.Context) (string, bool, error)

PrincipalName mocks base method.

func (*MockUnit) PrivateAddress

func (m *MockUnit) PrivateAddress(arg0 context.Context) (string, error)

PrivateAddress mocks base method.

func (*MockUnit) ProviderID

func (m *MockUnit) ProviderID() string

ProviderID mocks base method.

func (*MockUnit) PublicAddress

func (m *MockUnit) PublicAddress(arg0 context.Context) (string, error)

PublicAddress mocks base method.

func (*MockUnit) Refresh

func (m *MockUnit) Refresh(arg0 context.Context) error

Refresh mocks base method.

func (*MockUnit) RelationsStatus

func (m *MockUnit) RelationsStatus(arg0 context.Context) ([]uniter.RelationStatus, error)

RelationsStatus mocks base method.

func (*MockUnit) RequestReboot

func (m *MockUnit) RequestReboot(arg0 context.Context) error

RequestReboot mocks base method.

func (*MockUnit) Resolved

func (m *MockUnit) Resolved() params.ResolvedMode

Resolved mocks base method.

func (*MockUnit) SetAgentStatus

func (m *MockUnit) SetAgentStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error

SetAgentStatus mocks base method.

func (*MockUnit) SetCharmURL

func (m *MockUnit) SetCharmURL(arg0 context.Context, arg1 string) error

SetCharmURL mocks base method.

func (*MockUnit) SetState

func (m *MockUnit) SetState(arg0 context.Context, arg1 params.SetUnitStateArg) error

SetState mocks base method.

func (*MockUnit) SetUnitStatus

func (m *MockUnit) SetUnitStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error

SetUnitStatus mocks base method.

func (*MockUnit) State

func (m *MockUnit) State(arg0 context.Context) (params.UnitStateResult, error)

State mocks base method.

func (*MockUnit) Tag

func (m *MockUnit) Tag() names.UnitTag

Tag mocks base method.

func (*MockUnit) UnitStatus

func (m *MockUnit) UnitStatus(arg0 context.Context) (params.StatusResult, error)

UnitStatus mocks base method.

func (*MockUnit) Watch

func (m *MockUnit) Watch(arg0 context.Context) (watcher.Watcher[struct{}], error)

Watch mocks base method.

func (*MockUnit) WatchActionNotifications

func (m *MockUnit) WatchActionNotifications(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchActionNotifications mocks base method.

func (*MockUnit) WatchAddressesHash

func (m *MockUnit) WatchAddressesHash(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchAddressesHash mocks base method.

func (*MockUnit) WatchConfigSettingsHash

func (m *MockUnit) WatchConfigSettingsHash(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchConfigSettingsHash mocks base method.

func (*MockUnit) WatchInstanceData

func (m *MockUnit) WatchInstanceData(arg0 context.Context) (watcher.Watcher[struct{}], error)

WatchInstanceData mocks base method.

func (*MockUnit) WatchRelations

func (m *MockUnit) WatchRelations(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchRelations mocks base method.

func (*MockUnit) WatchStorage

func (m *MockUnit) WatchStorage(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchStorage mocks base method.

func (*MockUnit) WatchTrustConfigSettingsHash

func (m *MockUnit) WatchTrustConfigSettingsHash(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchTrustConfigSettingsHash mocks base method.

type MockUnitApplicationCall

type MockUnitApplicationCall struct {
	*gomock.Call
}

MockUnitApplicationCall wrap *gomock.Call

func (*MockUnitApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockUnitApplicationNameCall

type MockUnitApplicationNameCall struct {
	*gomock.Call
}

MockUnitApplicationNameCall wrap *gomock.Call

func (*MockUnitApplicationNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitApplicationNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitApplicationNameCall) Return

Return rewrite *gomock.Call.Return

type MockUnitApplicationTagCall

type MockUnitApplicationTagCall struct {
	*gomock.Call
}

MockUnitApplicationTagCall wrap *gomock.Call

func (*MockUnitApplicationTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitApplicationTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitApplicationTagCall) Return

Return rewrite *gomock.Call.Return

type MockUnitAssignedMachineCall

type MockUnitAssignedMachineCall struct {
	*gomock.Call
}

MockUnitAssignedMachineCall wrap *gomock.Call

func (*MockUnitAssignedMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitAssignedMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitAssignedMachineCall) Return

Return rewrite *gomock.Call.Return

type MockUnitAvailabilityZoneCall

type MockUnitAvailabilityZoneCall struct {
	*gomock.Call
}

MockUnitAvailabilityZoneCall wrap *gomock.Call

func (*MockUnitAvailabilityZoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitAvailabilityZoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitAvailabilityZoneCall) Return

Return rewrite *gomock.Call.Return

type MockUnitCanApplyLXDProfileCall

type MockUnitCanApplyLXDProfileCall struct {
	*gomock.Call
}

MockUnitCanApplyLXDProfileCall wrap *gomock.Call

func (*MockUnitCanApplyLXDProfileCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitCanApplyLXDProfileCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitCanApplyLXDProfileCall) Return

Return rewrite *gomock.Call.Return

type MockUnitCharmURLCall

type MockUnitCharmURLCall struct {
	*gomock.Call
}

MockUnitCharmURLCall wrap *gomock.Call

func (*MockUnitCharmURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitCharmURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitCharmURLCall) Return

func (c *MockUnitCharmURLCall) Return(arg0 string, arg1 error) *MockUnitCharmURLCall

Return rewrite *gomock.Call.Return

type MockUnitClearResolvedCall

type MockUnitClearResolvedCall struct {
	*gomock.Call
}

MockUnitClearResolvedCall wrap *gomock.Call

func (*MockUnitClearResolvedCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitClearResolvedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitClearResolvedCall) Return

Return rewrite *gomock.Call.Return

type MockUnitCommitHookChangesCall

type MockUnitCommitHookChangesCall struct {
	*gomock.Call
}

MockUnitCommitHookChangesCall wrap *gomock.Call

func (*MockUnitCommitHookChangesCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitCommitHookChangesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitCommitHookChangesCall) Return

Return rewrite *gomock.Call.Return

type MockUnitConfigSettingsCall

type MockUnitConfigSettingsCall struct {
	*gomock.Call
}

MockUnitConfigSettingsCall wrap *gomock.Call

func (*MockUnitConfigSettingsCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitConfigSettingsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitConfigSettingsCall) Return

Return rewrite *gomock.Call.Return

type MockUnitDestroyAllSubordinatesCall

type MockUnitDestroyAllSubordinatesCall struct {
	*gomock.Call
}

MockUnitDestroyAllSubordinatesCall wrap *gomock.Call

func (*MockUnitDestroyAllSubordinatesCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitDestroyAllSubordinatesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitDestroyAllSubordinatesCall) Return

Return rewrite *gomock.Call.Return

type MockUnitDestroyCall

type MockUnitDestroyCall struct {
	*gomock.Call
}

MockUnitDestroyCall wrap *gomock.Call

func (*MockUnitDestroyCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitDestroyCall) DoAndReturn

func (c *MockUnitDestroyCall) DoAndReturn(f func(context.Context) error) *MockUnitDestroyCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitDestroyCall) Return

Return rewrite *gomock.Call.Return

type MockUnitEnsureDeadCall

type MockUnitEnsureDeadCall struct {
	*gomock.Call
}

MockUnitEnsureDeadCall wrap *gomock.Call

func (*MockUnitEnsureDeadCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitEnsureDeadCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitEnsureDeadCall) Return

Return rewrite *gomock.Call.Return

type MockUnitHasSubordinatesCall

type MockUnitHasSubordinatesCall struct {
	*gomock.Call
}

MockUnitHasSubordinatesCall wrap *gomock.Call

func (*MockUnitHasSubordinatesCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitHasSubordinatesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitHasSubordinatesCall) Return

Return rewrite *gomock.Call.Return

type MockUnitLXDProfileNameCall

type MockUnitLXDProfileNameCall struct {
	*gomock.Call
}

MockUnitLXDProfileNameCall wrap *gomock.Call

func (*MockUnitLXDProfileNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitLXDProfileNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitLXDProfileNameCall) Return

Return rewrite *gomock.Call.Return

type MockUnitLifeCall

type MockUnitLifeCall struct {
	*gomock.Call
}

MockUnitLifeCall wrap *gomock.Call

func (*MockUnitLifeCall) Do

func (c *MockUnitLifeCall) Do(f func() life.Value) *MockUnitLifeCall

Do rewrite *gomock.Call.Do

func (*MockUnitLifeCall) DoAndReturn

func (c *MockUnitLifeCall) DoAndReturn(f func() life.Value) *MockUnitLifeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitLifeCall) Return

func (c *MockUnitLifeCall) Return(arg0 life.Value) *MockUnitLifeCall

Return rewrite *gomock.Call.Return

type MockUnitLogActionMessageCall

type MockUnitLogActionMessageCall struct {
	*gomock.Call
}

MockUnitLogActionMessageCall wrap *gomock.Call

func (*MockUnitLogActionMessageCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitLogActionMessageCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitLogActionMessageCall) Return

Return rewrite *gomock.Call.Return

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) Application

func (mr *MockUnitMockRecorder) Application(arg0 any) *MockUnitApplicationCall

Application indicates an expected call of Application.

func (*MockUnitMockRecorder) ApplicationName

func (mr *MockUnitMockRecorder) ApplicationName() *MockUnitApplicationNameCall

ApplicationName indicates an expected call of ApplicationName.

func (*MockUnitMockRecorder) ApplicationTag

func (mr *MockUnitMockRecorder) ApplicationTag() *MockUnitApplicationTagCall

ApplicationTag indicates an expected call of ApplicationTag.

func (*MockUnitMockRecorder) AssignedMachine

func (mr *MockUnitMockRecorder) AssignedMachine(arg0 any) *MockUnitAssignedMachineCall

AssignedMachine indicates an expected call of AssignedMachine.

func (*MockUnitMockRecorder) AvailabilityZone

func (mr *MockUnitMockRecorder) AvailabilityZone(arg0 any) *MockUnitAvailabilityZoneCall

AvailabilityZone indicates an expected call of AvailabilityZone.

func (*MockUnitMockRecorder) CanApplyLXDProfile

func (mr *MockUnitMockRecorder) CanApplyLXDProfile(arg0 any) *MockUnitCanApplyLXDProfileCall

CanApplyLXDProfile indicates an expected call of CanApplyLXDProfile.

func (*MockUnitMockRecorder) CharmURL

func (mr *MockUnitMockRecorder) CharmURL(arg0 any) *MockUnitCharmURLCall

CharmURL indicates an expected call of CharmURL.

func (*MockUnitMockRecorder) ClearResolved

func (mr *MockUnitMockRecorder) ClearResolved(arg0 any) *MockUnitClearResolvedCall

ClearResolved indicates an expected call of ClearResolved.

func (*MockUnitMockRecorder) CommitHookChanges

func (mr *MockUnitMockRecorder) CommitHookChanges(arg0, arg1 any) *MockUnitCommitHookChangesCall

CommitHookChanges indicates an expected call of CommitHookChanges.

func (*MockUnitMockRecorder) ConfigSettings

func (mr *MockUnitMockRecorder) ConfigSettings(arg0 any) *MockUnitConfigSettingsCall

ConfigSettings indicates an expected call of ConfigSettings.

func (*MockUnitMockRecorder) Destroy

func (mr *MockUnitMockRecorder) Destroy(arg0 any) *MockUnitDestroyCall

Destroy indicates an expected call of Destroy.

func (*MockUnitMockRecorder) DestroyAllSubordinates

func (mr *MockUnitMockRecorder) DestroyAllSubordinates(arg0 any) *MockUnitDestroyAllSubordinatesCall

DestroyAllSubordinates indicates an expected call of DestroyAllSubordinates.

func (*MockUnitMockRecorder) EnsureDead

func (mr *MockUnitMockRecorder) EnsureDead(arg0 any) *MockUnitEnsureDeadCall

EnsureDead indicates an expected call of EnsureDead.

func (*MockUnitMockRecorder) HasSubordinates

func (mr *MockUnitMockRecorder) HasSubordinates(arg0 any) *MockUnitHasSubordinatesCall

HasSubordinates indicates an expected call of HasSubordinates.

func (*MockUnitMockRecorder) LXDProfileName

func (mr *MockUnitMockRecorder) LXDProfileName(arg0 any) *MockUnitLXDProfileNameCall

LXDProfileName indicates an expected call of LXDProfileName.

func (*MockUnitMockRecorder) Life

Life indicates an expected call of Life.

func (*MockUnitMockRecorder) LogActionMessage

func (mr *MockUnitMockRecorder) LogActionMessage(arg0, arg1, arg2 any) *MockUnitLogActionMessageCall

LogActionMessage indicates an expected call of LogActionMessage.

func (*MockUnitMockRecorder) Name

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) NetworkInfo

func (mr *MockUnitMockRecorder) NetworkInfo(arg0, arg1, arg2 any) *MockUnitNetworkInfoCall

NetworkInfo indicates an expected call of NetworkInfo.

func (*MockUnitMockRecorder) PrincipalName

func (mr *MockUnitMockRecorder) PrincipalName(arg0 any) *MockUnitPrincipalNameCall

PrincipalName indicates an expected call of PrincipalName.

func (*MockUnitMockRecorder) PrivateAddress

func (mr *MockUnitMockRecorder) PrivateAddress(arg0 any) *MockUnitPrivateAddressCall

PrivateAddress indicates an expected call of PrivateAddress.

func (*MockUnitMockRecorder) ProviderID

func (mr *MockUnitMockRecorder) ProviderID() *MockUnitProviderIDCall

ProviderID indicates an expected call of ProviderID.

func (*MockUnitMockRecorder) PublicAddress

func (mr *MockUnitMockRecorder) PublicAddress(arg0 any) *MockUnitPublicAddressCall

PublicAddress indicates an expected call of PublicAddress.

func (*MockUnitMockRecorder) Refresh

func (mr *MockUnitMockRecorder) Refresh(arg0 any) *MockUnitRefreshCall

Refresh indicates an expected call of Refresh.

func (*MockUnitMockRecorder) RelationsStatus

func (mr *MockUnitMockRecorder) RelationsStatus(arg0 any) *MockUnitRelationsStatusCall

RelationsStatus indicates an expected call of RelationsStatus.

func (*MockUnitMockRecorder) RequestReboot

func (mr *MockUnitMockRecorder) RequestReboot(arg0 any) *MockUnitRequestRebootCall

RequestReboot indicates an expected call of RequestReboot.

func (*MockUnitMockRecorder) Resolved

Resolved indicates an expected call of Resolved.

func (*MockUnitMockRecorder) SetAgentStatus

func (mr *MockUnitMockRecorder) SetAgentStatus(arg0, arg1, arg2, arg3 any) *MockUnitSetAgentStatusCall

SetAgentStatus indicates an expected call of SetAgentStatus.

func (*MockUnitMockRecorder) SetCharmURL

func (mr *MockUnitMockRecorder) SetCharmURL(arg0, arg1 any) *MockUnitSetCharmURLCall

SetCharmURL indicates an expected call of SetCharmURL.

func (*MockUnitMockRecorder) SetState

func (mr *MockUnitMockRecorder) SetState(arg0, arg1 any) *MockUnitSetStateCall

SetState indicates an expected call of SetState.

func (*MockUnitMockRecorder) SetUnitStatus

func (mr *MockUnitMockRecorder) SetUnitStatus(arg0, arg1, arg2, arg3 any) *MockUnitSetUnitStatusCall

SetUnitStatus indicates an expected call of SetUnitStatus.

func (*MockUnitMockRecorder) State

func (mr *MockUnitMockRecorder) State(arg0 any) *MockUnitStateCall

State indicates an expected call of State.

func (*MockUnitMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockUnitMockRecorder) UnitStatus

func (mr *MockUnitMockRecorder) UnitStatus(arg0 any) *MockUnitUnitStatusCall

UnitStatus indicates an expected call of UnitStatus.

func (*MockUnitMockRecorder) Watch

func (mr *MockUnitMockRecorder) Watch(arg0 any) *MockUnitWatchCall

Watch indicates an expected call of Watch.

func (*MockUnitMockRecorder) WatchActionNotifications

func (mr *MockUnitMockRecorder) WatchActionNotifications(arg0 any) *MockUnitWatchActionNotificationsCall

WatchActionNotifications indicates an expected call of WatchActionNotifications.

func (*MockUnitMockRecorder) WatchAddressesHash

func (mr *MockUnitMockRecorder) WatchAddressesHash(arg0 any) *MockUnitWatchAddressesHashCall

WatchAddressesHash indicates an expected call of WatchAddressesHash.

func (*MockUnitMockRecorder) WatchConfigSettingsHash

func (mr *MockUnitMockRecorder) WatchConfigSettingsHash(arg0 any) *MockUnitWatchConfigSettingsHashCall

WatchConfigSettingsHash indicates an expected call of WatchConfigSettingsHash.

func (*MockUnitMockRecorder) WatchInstanceData

func (mr *MockUnitMockRecorder) WatchInstanceData(arg0 any) *MockUnitWatchInstanceDataCall

WatchInstanceData indicates an expected call of WatchInstanceData.

func (*MockUnitMockRecorder) WatchRelations

func (mr *MockUnitMockRecorder) WatchRelations(arg0 any) *MockUnitWatchRelationsCall

WatchRelations indicates an expected call of WatchRelations.

func (*MockUnitMockRecorder) WatchStorage

func (mr *MockUnitMockRecorder) WatchStorage(arg0 any) *MockUnitWatchStorageCall

WatchStorage indicates an expected call of WatchStorage.

func (*MockUnitMockRecorder) WatchTrustConfigSettingsHash

func (mr *MockUnitMockRecorder) WatchTrustConfigSettingsHash(arg0 any) *MockUnitWatchTrustConfigSettingsHashCall

WatchTrustConfigSettingsHash indicates an expected call of WatchTrustConfigSettingsHash.

type MockUnitNameCall

type MockUnitNameCall struct {
	*gomock.Call
}

MockUnitNameCall wrap *gomock.Call

func (*MockUnitNameCall) Do

func (c *MockUnitNameCall) Do(f func() string) *MockUnitNameCall

Do rewrite *gomock.Call.Do

func (*MockUnitNameCall) DoAndReturn

func (c *MockUnitNameCall) DoAndReturn(f func() string) *MockUnitNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitNameCall) Return

func (c *MockUnitNameCall) Return(arg0 string) *MockUnitNameCall

Return rewrite *gomock.Call.Return

type MockUnitNetworkInfoCall

type MockUnitNetworkInfoCall struct {
	*gomock.Call
}

MockUnitNetworkInfoCall wrap *gomock.Call

func (*MockUnitNetworkInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitNetworkInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitNetworkInfoCall) Return

Return rewrite *gomock.Call.Return

type MockUnitPrincipalNameCall

type MockUnitPrincipalNameCall struct {
	*gomock.Call
}

MockUnitPrincipalNameCall wrap *gomock.Call

func (*MockUnitPrincipalNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitPrincipalNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitPrincipalNameCall) Return

Return rewrite *gomock.Call.Return

type MockUnitPrivateAddressCall

type MockUnitPrivateAddressCall struct {
	*gomock.Call
}

MockUnitPrivateAddressCall wrap *gomock.Call

func (*MockUnitPrivateAddressCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitPrivateAddressCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitPrivateAddressCall) Return

Return rewrite *gomock.Call.Return

type MockUnitProviderIDCall

type MockUnitProviderIDCall struct {
	*gomock.Call
}

MockUnitProviderIDCall wrap *gomock.Call

func (*MockUnitProviderIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitProviderIDCall) DoAndReturn

func (c *MockUnitProviderIDCall) DoAndReturn(f func() string) *MockUnitProviderIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitProviderIDCall) Return

Return rewrite *gomock.Call.Return

type MockUnitPublicAddressCall

type MockUnitPublicAddressCall struct {
	*gomock.Call
}

MockUnitPublicAddressCall wrap *gomock.Call

func (*MockUnitPublicAddressCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitPublicAddressCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitPublicAddressCall) Return

Return rewrite *gomock.Call.Return

type MockUnitRefreshCall

type MockUnitRefreshCall struct {
	*gomock.Call
}

MockUnitRefreshCall wrap *gomock.Call

func (*MockUnitRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitRefreshCall) DoAndReturn

func (c *MockUnitRefreshCall) DoAndReturn(f func(context.Context) error) *MockUnitRefreshCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockUnitRelationsStatusCall

type MockUnitRelationsStatusCall struct {
	*gomock.Call
}

MockUnitRelationsStatusCall wrap *gomock.Call

func (*MockUnitRelationsStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitRelationsStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitRelationsStatusCall) Return

Return rewrite *gomock.Call.Return

type MockUnitRequestRebootCall

type MockUnitRequestRebootCall struct {
	*gomock.Call
}

MockUnitRequestRebootCall wrap *gomock.Call

func (*MockUnitRequestRebootCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitRequestRebootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitRequestRebootCall) Return

Return rewrite *gomock.Call.Return

type MockUnitResolvedCall

type MockUnitResolvedCall struct {
	*gomock.Call
}

MockUnitResolvedCall wrap *gomock.Call

func (*MockUnitResolvedCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitResolvedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitResolvedCall) Return

Return rewrite *gomock.Call.Return

type MockUnitSetAgentStatusCall

type MockUnitSetAgentStatusCall struct {
	*gomock.Call
}

MockUnitSetAgentStatusCall wrap *gomock.Call

func (*MockUnitSetAgentStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitSetAgentStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitSetAgentStatusCall) Return

Return rewrite *gomock.Call.Return

type MockUnitSetCharmURLCall

type MockUnitSetCharmURLCall struct {
	*gomock.Call
}

MockUnitSetCharmURLCall wrap *gomock.Call

func (*MockUnitSetCharmURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitSetCharmURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitSetCharmURLCall) Return

Return rewrite *gomock.Call.Return

type MockUnitSetStateCall

type MockUnitSetStateCall struct {
	*gomock.Call
}

MockUnitSetStateCall wrap *gomock.Call

func (*MockUnitSetStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitSetStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitSetStateCall) Return

Return rewrite *gomock.Call.Return

type MockUnitSetUnitStatusCall

type MockUnitSetUnitStatusCall struct {
	*gomock.Call
}

MockUnitSetUnitStatusCall wrap *gomock.Call

func (*MockUnitSetUnitStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitSetUnitStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitSetUnitStatusCall) Return

Return rewrite *gomock.Call.Return

type MockUnitStateCall

type MockUnitStateCall struct {
	*gomock.Call
}

MockUnitStateCall wrap *gomock.Call

func (*MockUnitStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitStateCall) Return

Return rewrite *gomock.Call.Return

type MockUnitTagCall

type MockUnitTagCall struct {
	*gomock.Call
}

MockUnitTagCall wrap *gomock.Call

func (*MockUnitTagCall) Do

func (c *MockUnitTagCall) Do(f func() names.UnitTag) *MockUnitTagCall

Do rewrite *gomock.Call.Do

func (*MockUnitTagCall) DoAndReturn

func (c *MockUnitTagCall) DoAndReturn(f func() names.UnitTag) *MockUnitTagCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitTagCall) Return

func (c *MockUnitTagCall) Return(arg0 names.UnitTag) *MockUnitTagCall

Return rewrite *gomock.Call.Return

type MockUnitUnitStatusCall

type MockUnitUnitStatusCall struct {
	*gomock.Call
}

MockUnitUnitStatusCall wrap *gomock.Call

func (*MockUnitUnitStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitUnitStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitUnitStatusCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchActionNotificationsCall

type MockUnitWatchActionNotificationsCall struct {
	*gomock.Call
}

MockUnitWatchActionNotificationsCall wrap *gomock.Call

func (*MockUnitWatchActionNotificationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchActionNotificationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchActionNotificationsCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchAddressesHashCall

type MockUnitWatchAddressesHashCall struct {
	*gomock.Call
}

MockUnitWatchAddressesHashCall wrap *gomock.Call

func (*MockUnitWatchAddressesHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchAddressesHashCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchAddressesHashCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchCall

type MockUnitWatchCall struct {
	*gomock.Call
}

MockUnitWatchCall wrap *gomock.Call

func (*MockUnitWatchCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchCall) DoAndReturn

func (c *MockUnitWatchCall) DoAndReturn(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockUnitWatchCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchCall) Return

func (c *MockUnitWatchCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockUnitWatchCall

Return rewrite *gomock.Call.Return

type MockUnitWatchConfigSettingsHashCall

type MockUnitWatchConfigSettingsHashCall struct {
	*gomock.Call
}

MockUnitWatchConfigSettingsHashCall wrap *gomock.Call

func (*MockUnitWatchConfigSettingsHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchConfigSettingsHashCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchConfigSettingsHashCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchInstanceDataCall

type MockUnitWatchInstanceDataCall struct {
	*gomock.Call
}

MockUnitWatchInstanceDataCall wrap *gomock.Call

func (*MockUnitWatchInstanceDataCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchInstanceDataCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchInstanceDataCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchRelationsCall

type MockUnitWatchRelationsCall struct {
	*gomock.Call
}

MockUnitWatchRelationsCall wrap *gomock.Call

func (*MockUnitWatchRelationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchRelationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchRelationsCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchStorageCall

type MockUnitWatchStorageCall struct {
	*gomock.Call
}

MockUnitWatchStorageCall wrap *gomock.Call

func (*MockUnitWatchStorageCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchStorageCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchStorageCall) Return

Return rewrite *gomock.Call.Return

type MockUnitWatchTrustConfigSettingsHashCall

type MockUnitWatchTrustConfigSettingsHashCall struct {
	*gomock.Call
}

MockUnitWatchTrustConfigSettingsHashCall wrap *gomock.Call

func (*MockUnitWatchTrustConfigSettingsHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitWatchTrustConfigSettingsHashCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitWatchTrustConfigSettingsHashCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClient

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

MockUniterClient is a mock of UniterClient interface.

func NewMockUniterClient

func NewMockUniterClient(ctrl *gomock.Controller) *MockUniterClient

NewMockUniterClient creates a new mock instance.

func (*MockUniterClient) APIAddresses

func (m *MockUniterClient) APIAddresses(arg0 context.Context) ([]string, error)

APIAddresses mocks base method.

func (*MockUniterClient) Action

Action mocks base method.

func (*MockUniterClient) ActionBegin

func (m *MockUniterClient) ActionBegin(ctx context.Context, tag names.ActionTag) error

ActionBegin mocks base method.

func (*MockUniterClient) ActionFinish

func (m *MockUniterClient) ActionFinish(ctx context.Context, tag names.ActionTag, status string, results map[string]any, message string) error

ActionFinish mocks base method.

func (*MockUniterClient) ActionStatus

func (m *MockUniterClient) ActionStatus(ctx context.Context, tag names.ActionTag) (string, error)

ActionStatus mocks base method.

func (*MockUniterClient) Application

Application mocks base method.

func (*MockUniterClient) Charm

func (m *MockUniterClient) Charm(curl string) (Charm, error)

Charm mocks base method.

func (*MockUniterClient) CloudAPIVersion

func (m *MockUniterClient) CloudAPIVersion(arg0 context.Context) (string, error)

CloudAPIVersion mocks base method.

func (*MockUniterClient) CloudSpec

func (m *MockUniterClient) CloudSpec(arg0 context.Context) (*params.CloudSpec, error)

CloudSpec mocks base method.

func (*MockUniterClient) DestroyUnitStorageAttachments

func (m *MockUniterClient) DestroyUnitStorageAttachments(arg0 context.Context, arg1 names.UnitTag) error

DestroyUnitStorageAttachments mocks base method.

func (*MockUniterClient) EXPECT

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

func (*MockUniterClient) GoalState

GoalState mocks base method.

func (*MockUniterClient) Model

func (m *MockUniterClient) Model(arg0 context.Context) (*types.Model, error)

Model mocks base method.

func (*MockUniterClient) ModelConfig

func (m *MockUniterClient) ModelConfig(arg0 context.Context) (*config.Config, error)

ModelConfig mocks base method.

func (*MockUniterClient) OpenedMachinePortRangesByEndpoint

func (m *MockUniterClient) OpenedMachinePortRangesByEndpoint(ctx context.Context, machineTag names.MachineTag) (map[names.UnitTag]network.GroupedPortRanges, error)

OpenedMachinePortRangesByEndpoint mocks base method.

func (*MockUniterClient) OpenedPortRangesByEndpoint

func (m *MockUniterClient) OpenedPortRangesByEndpoint(ctx context.Context) (map[names.UnitTag]network.GroupedPortRanges, error)

OpenedPortRangesByEndpoint mocks base method.

func (*MockUniterClient) Relation

func (m *MockUniterClient) Relation(ctx context.Context, tag names.RelationTag) (Relation, error)

Relation mocks base method.

func (*MockUniterClient) RelationById

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

RelationById mocks base method.

func (*MockUniterClient) RemoveStorageAttachment

func (m *MockUniterClient) RemoveStorageAttachment(arg0 context.Context, arg1 names.StorageTag, arg2 names.UnitTag) error

RemoveStorageAttachment mocks base method.

func (*MockUniterClient) SetUnitWorkloadVersion

func (m *MockUniterClient) SetUnitWorkloadVersion(ctx context.Context, tag names.UnitTag, version string) error

SetUnitWorkloadVersion mocks base method.

func (*MockUniterClient) StorageAttachment

func (m *MockUniterClient) StorageAttachment(arg0 context.Context, arg1 names.StorageTag, arg2 names.UnitTag) (params.StorageAttachment, error)

StorageAttachment mocks base method.

func (*MockUniterClient) StorageAttachmentLife

func (m *MockUniterClient) StorageAttachmentLife(arg0 context.Context, arg1 []params.StorageAttachmentId) ([]params.LifeResult, error)

StorageAttachmentLife mocks base method.

func (*MockUniterClient) Unit

func (m *MockUniterClient) Unit(ctx context.Context, tag names.UnitTag) (Unit, error)

Unit mocks base method.

func (*MockUniterClient) UnitStorageAttachments

func (m *MockUniterClient) UnitStorageAttachments(arg0 context.Context, arg1 names.UnitTag) ([]params.StorageAttachmentId, error)

UnitStorageAttachments mocks base method.

func (*MockUniterClient) UnitWorkloadVersion

func (m *MockUniterClient) UnitWorkloadVersion(ctx context.Context, tag names.UnitTag) (string, error)

UnitWorkloadVersion mocks base method.

func (*MockUniterClient) UpdateStatusHookInterval

func (m *MockUniterClient) UpdateStatusHookInterval(arg0 context.Context) (time.Duration, error)

UpdateStatusHookInterval mocks base method.

func (*MockUniterClient) WatchRelationUnits

func (m *MockUniterClient) WatchRelationUnits(arg0 context.Context, arg1 names.RelationTag, arg2 names.UnitTag) (watcher.RelationUnitsWatcher, error)

WatchRelationUnits mocks base method.

func (*MockUniterClient) WatchStorageAttachment

func (m *MockUniterClient) WatchStorageAttachment(arg0 context.Context, arg1 names.StorageTag, arg2 names.UnitTag) (watcher.NotifyWatcher, error)

WatchStorageAttachment mocks base method.

func (*MockUniterClient) WatchUpdateStatusHookInterval

func (m *MockUniterClient) WatchUpdateStatusHookInterval(arg0 context.Context) (watcher.NotifyWatcher, error)

WatchUpdateStatusHookInterval mocks base method.

type MockUniterClientAPIAddressesCall

type MockUniterClientAPIAddressesCall struct {
	*gomock.Call
}

MockUniterClientAPIAddressesCall wrap *gomock.Call

func (*MockUniterClientAPIAddressesCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientAPIAddressesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientAPIAddressesCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientActionBeginCall

type MockUniterClientActionBeginCall struct {
	*gomock.Call
}

MockUniterClientActionBeginCall wrap *gomock.Call

func (*MockUniterClientActionBeginCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientActionBeginCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientActionBeginCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientActionCall

type MockUniterClientActionCall struct {
	*gomock.Call
}

MockUniterClientActionCall wrap *gomock.Call

func (*MockUniterClientActionCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientActionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientActionCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientActionFinishCall

type MockUniterClientActionFinishCall struct {
	*gomock.Call
}

MockUniterClientActionFinishCall wrap *gomock.Call

func (*MockUniterClientActionFinishCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientActionFinishCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientActionFinishCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientActionStatusCall

type MockUniterClientActionStatusCall struct {
	*gomock.Call
}

MockUniterClientActionStatusCall wrap *gomock.Call

func (*MockUniterClientActionStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientActionStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientActionStatusCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientApplicationCall

type MockUniterClientApplicationCall struct {
	*gomock.Call
}

MockUniterClientApplicationCall wrap *gomock.Call

func (*MockUniterClientApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientCharmCall

type MockUniterClientCharmCall struct {
	*gomock.Call
}

MockUniterClientCharmCall wrap *gomock.Call

func (*MockUniterClientCharmCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientCharmCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientCharmCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientCloudAPIVersionCall

type MockUniterClientCloudAPIVersionCall struct {
	*gomock.Call
}

MockUniterClientCloudAPIVersionCall wrap *gomock.Call

func (*MockUniterClientCloudAPIVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientCloudAPIVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientCloudAPIVersionCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientCloudSpecCall

type MockUniterClientCloudSpecCall struct {
	*gomock.Call
}

MockUniterClientCloudSpecCall wrap *gomock.Call

func (*MockUniterClientCloudSpecCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientCloudSpecCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientCloudSpecCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientDestroyUnitStorageAttachmentsCall

type MockUniterClientDestroyUnitStorageAttachmentsCall struct {
	*gomock.Call
}

MockUniterClientDestroyUnitStorageAttachmentsCall wrap *gomock.Call

func (*MockUniterClientDestroyUnitStorageAttachmentsCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientDestroyUnitStorageAttachmentsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientDestroyUnitStorageAttachmentsCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientGoalStateCall

type MockUniterClientGoalStateCall struct {
	*gomock.Call
}

MockUniterClientGoalStateCall wrap *gomock.Call

func (*MockUniterClientGoalStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientGoalStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientGoalStateCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientMockRecorder

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

MockUniterClientMockRecorder is the mock recorder for MockUniterClient.

func (*MockUniterClientMockRecorder) APIAddresses

APIAddresses indicates an expected call of APIAddresses.

func (*MockUniterClientMockRecorder) Action

Action indicates an expected call of Action.

func (*MockUniterClientMockRecorder) ActionBegin

ActionBegin indicates an expected call of ActionBegin.

func (*MockUniterClientMockRecorder) ActionFinish

func (mr *MockUniterClientMockRecorder) ActionFinish(ctx, tag, status, results, message any) *MockUniterClientActionFinishCall

ActionFinish indicates an expected call of ActionFinish.

func (*MockUniterClientMockRecorder) ActionStatus

ActionStatus indicates an expected call of ActionStatus.

func (*MockUniterClientMockRecorder) Application

Application indicates an expected call of Application.

func (*MockUniterClientMockRecorder) Charm

Charm indicates an expected call of Charm.

func (*MockUniterClientMockRecorder) CloudAPIVersion

CloudAPIVersion indicates an expected call of CloudAPIVersion.

func (*MockUniterClientMockRecorder) CloudSpec

CloudSpec indicates an expected call of CloudSpec.

func (*MockUniterClientMockRecorder) DestroyUnitStorageAttachments

func (mr *MockUniterClientMockRecorder) DestroyUnitStorageAttachments(arg0, arg1 any) *MockUniterClientDestroyUnitStorageAttachmentsCall

DestroyUnitStorageAttachments indicates an expected call of DestroyUnitStorageAttachments.

func (*MockUniterClientMockRecorder) GoalState

GoalState indicates an expected call of GoalState.

func (*MockUniterClientMockRecorder) Model

Model indicates an expected call of Model.

func (*MockUniterClientMockRecorder) ModelConfig

ModelConfig indicates an expected call of ModelConfig.

func (*MockUniterClientMockRecorder) OpenedMachinePortRangesByEndpoint

func (mr *MockUniterClientMockRecorder) OpenedMachinePortRangesByEndpoint(ctx, machineTag any) *MockUniterClientOpenedMachinePortRangesByEndpointCall

OpenedMachinePortRangesByEndpoint indicates an expected call of OpenedMachinePortRangesByEndpoint.

func (*MockUniterClientMockRecorder) OpenedPortRangesByEndpoint

OpenedPortRangesByEndpoint indicates an expected call of OpenedPortRangesByEndpoint.

func (*MockUniterClientMockRecorder) Relation

Relation indicates an expected call of Relation.

func (*MockUniterClientMockRecorder) RelationById

RelationById indicates an expected call of RelationById.

func (*MockUniterClientMockRecorder) RemoveStorageAttachment

func (mr *MockUniterClientMockRecorder) RemoveStorageAttachment(arg0, arg1, arg2 any) *MockUniterClientRemoveStorageAttachmentCall

RemoveStorageAttachment indicates an expected call of RemoveStorageAttachment.

func (*MockUniterClientMockRecorder) SetUnitWorkloadVersion

func (mr *MockUniterClientMockRecorder) SetUnitWorkloadVersion(ctx, tag, version any) *MockUniterClientSetUnitWorkloadVersionCall

SetUnitWorkloadVersion indicates an expected call of SetUnitWorkloadVersion.

func (*MockUniterClientMockRecorder) StorageAttachment

func (mr *MockUniterClientMockRecorder) StorageAttachment(arg0, arg1, arg2 any) *MockUniterClientStorageAttachmentCall

StorageAttachment indicates an expected call of StorageAttachment.

func (*MockUniterClientMockRecorder) StorageAttachmentLife

func (mr *MockUniterClientMockRecorder) StorageAttachmentLife(arg0, arg1 any) *MockUniterClientStorageAttachmentLifeCall

StorageAttachmentLife indicates an expected call of StorageAttachmentLife.

func (*MockUniterClientMockRecorder) Unit

Unit indicates an expected call of Unit.

func (*MockUniterClientMockRecorder) UnitStorageAttachments

func (mr *MockUniterClientMockRecorder) UnitStorageAttachments(arg0, arg1 any) *MockUniterClientUnitStorageAttachmentsCall

UnitStorageAttachments indicates an expected call of UnitStorageAttachments.

func (*MockUniterClientMockRecorder) UnitWorkloadVersion

UnitWorkloadVersion indicates an expected call of UnitWorkloadVersion.

func (*MockUniterClientMockRecorder) UpdateStatusHookInterval

UpdateStatusHookInterval indicates an expected call of UpdateStatusHookInterval.

func (*MockUniterClientMockRecorder) WatchRelationUnits

func (mr *MockUniterClientMockRecorder) WatchRelationUnits(arg0, arg1, arg2 any) *MockUniterClientWatchRelationUnitsCall

WatchRelationUnits indicates an expected call of WatchRelationUnits.

func (*MockUniterClientMockRecorder) WatchStorageAttachment

func (mr *MockUniterClientMockRecorder) WatchStorageAttachment(arg0, arg1, arg2 any) *MockUniterClientWatchStorageAttachmentCall

WatchStorageAttachment indicates an expected call of WatchStorageAttachment.

func (*MockUniterClientMockRecorder) WatchUpdateStatusHookInterval

WatchUpdateStatusHookInterval indicates an expected call of WatchUpdateStatusHookInterval.

type MockUniterClientModelCall

type MockUniterClientModelCall struct {
	*gomock.Call
}

MockUniterClientModelCall wrap *gomock.Call

func (*MockUniterClientModelCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientModelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientModelCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientModelConfigCall

type MockUniterClientModelConfigCall struct {
	*gomock.Call
}

MockUniterClientModelConfigCall wrap *gomock.Call

func (*MockUniterClientModelConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientModelConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientModelConfigCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientOpenedMachinePortRangesByEndpointCall

type MockUniterClientOpenedMachinePortRangesByEndpointCall struct {
	*gomock.Call
}

MockUniterClientOpenedMachinePortRangesByEndpointCall wrap *gomock.Call

func (*MockUniterClientOpenedMachinePortRangesByEndpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientOpenedMachinePortRangesByEndpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientOpenedMachinePortRangesByEndpointCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientOpenedPortRangesByEndpointCall

type MockUniterClientOpenedPortRangesByEndpointCall struct {
	*gomock.Call
}

MockUniterClientOpenedPortRangesByEndpointCall wrap *gomock.Call

func (*MockUniterClientOpenedPortRangesByEndpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientOpenedPortRangesByEndpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientOpenedPortRangesByEndpointCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientRelationByIdCall

type MockUniterClientRelationByIdCall struct {
	*gomock.Call
}

MockUniterClientRelationByIdCall wrap *gomock.Call

func (*MockUniterClientRelationByIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientRelationByIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientRelationByIdCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientRelationCall

type MockUniterClientRelationCall struct {
	*gomock.Call
}

MockUniterClientRelationCall wrap *gomock.Call

func (*MockUniterClientRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientRelationCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientRemoveStorageAttachmentCall

type MockUniterClientRemoveStorageAttachmentCall struct {
	*gomock.Call
}

MockUniterClientRemoveStorageAttachmentCall wrap *gomock.Call

func (*MockUniterClientRemoveStorageAttachmentCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientRemoveStorageAttachmentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientRemoveStorageAttachmentCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientSetUnitWorkloadVersionCall

type MockUniterClientSetUnitWorkloadVersionCall struct {
	*gomock.Call
}

MockUniterClientSetUnitWorkloadVersionCall wrap *gomock.Call

func (*MockUniterClientSetUnitWorkloadVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientSetUnitWorkloadVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientSetUnitWorkloadVersionCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientStorageAttachmentCall

type MockUniterClientStorageAttachmentCall struct {
	*gomock.Call
}

MockUniterClientStorageAttachmentCall wrap *gomock.Call

func (*MockUniterClientStorageAttachmentCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientStorageAttachmentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientStorageAttachmentCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientStorageAttachmentLifeCall

type MockUniterClientStorageAttachmentLifeCall struct {
	*gomock.Call
}

MockUniterClientStorageAttachmentLifeCall wrap *gomock.Call

func (*MockUniterClientStorageAttachmentLifeCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientStorageAttachmentLifeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientStorageAttachmentLifeCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientUnitCall

type MockUniterClientUnitCall struct {
	*gomock.Call
}

MockUniterClientUnitCall wrap *gomock.Call

func (*MockUniterClientUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientUnitCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientUnitStorageAttachmentsCall

type MockUniterClientUnitStorageAttachmentsCall struct {
	*gomock.Call
}

MockUniterClientUnitStorageAttachmentsCall wrap *gomock.Call

func (*MockUniterClientUnitStorageAttachmentsCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientUnitStorageAttachmentsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientUnitStorageAttachmentsCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientUnitWorkloadVersionCall

type MockUniterClientUnitWorkloadVersionCall struct {
	*gomock.Call
}

MockUniterClientUnitWorkloadVersionCall wrap *gomock.Call

func (*MockUniterClientUnitWorkloadVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientUnitWorkloadVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientUnitWorkloadVersionCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientUpdateStatusHookIntervalCall

type MockUniterClientUpdateStatusHookIntervalCall struct {
	*gomock.Call
}

MockUniterClientUpdateStatusHookIntervalCall wrap *gomock.Call

func (*MockUniterClientUpdateStatusHookIntervalCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientUpdateStatusHookIntervalCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientUpdateStatusHookIntervalCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientWatchRelationUnitsCall

type MockUniterClientWatchRelationUnitsCall struct {
	*gomock.Call
}

MockUniterClientWatchRelationUnitsCall wrap *gomock.Call

func (*MockUniterClientWatchRelationUnitsCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientWatchRelationUnitsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientWatchRelationUnitsCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientWatchStorageAttachmentCall

type MockUniterClientWatchStorageAttachmentCall struct {
	*gomock.Call
}

MockUniterClientWatchStorageAttachmentCall wrap *gomock.Call

func (*MockUniterClientWatchStorageAttachmentCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientWatchStorageAttachmentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientWatchStorageAttachmentCall) Return

Return rewrite *gomock.Call.Return

type MockUniterClientWatchUpdateStatusHookIntervalCall

type MockUniterClientWatchUpdateStatusHookIntervalCall struct {
	*gomock.Call
}

MockUniterClientWatchUpdateStatusHookIntervalCall wrap *gomock.Call

func (*MockUniterClientWatchUpdateStatusHookIntervalCall) Do

Do rewrite *gomock.Call.Do

func (*MockUniterClientWatchUpdateStatusHookIntervalCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUniterClientWatchUpdateStatusHookIntervalCall) Return

Return rewrite *gomock.Call.Return

type ProviderIDGetter

type ProviderIDGetter interface {
	ProviderID() string
	Refresh(ctx context.Context) error
	Name() string
}

ProviderIDGetter defines the API to get provider ID.

type Relation

type Relation interface {
	Endpoint(context.Context) (*uniter.Endpoint, error)
	Id() int
	Life() life.Value
	OtherApplication() string
	OtherModelUUID() string
	Refresh(context.Context) error
	SetStatus(ctx context.Context, status2 relation.Status) error
	String() string
	Suspended() bool
	Tag() names.RelationTag
	Unit(context.Context, names.UnitTag) (RelationUnit, error)
	UpdateSuspended(bool)
}

Relation defines the methods on uniter.api.Relation.

type RelationUnit

type RelationUnit interface {
	ApplicationSettings(context.Context) (*uniter.Settings, error)
	Endpoint() uniter.Endpoint
	EnterScope(context.Context) error
	LeaveScope(context.Context) error
	Relation() Relation
	ReadSettings(ctx context.Context, name string) (params.Settings, error)
	Settings(context.Context) (*uniter.Settings, error)
}

RelationUnit defines the methods on uniter.api.RelationUnit.

type RelationUnitShim

type RelationUnitShim struct {
	*uniter.RelationUnit
}

func (RelationUnitShim) Relation

func (s RelationUnitShim) Relation() Relation

type SecretsAccessor

type SecretsAccessor interface {
	CreateSecretURIs(context.Context, int) ([]*secrets.URI, error)
	SecretMetadata(context.Context) ([]secrets.SecretOwnerMetadata, error)
	SecretRotated(ctx context.Context, uri string, oldRevision int) error
}

SecretsAccessor is used by the hook context to access the secrets backend.

type SecretsBackend

type SecretsBackend interface {
	GetContent(ctx context.Context, uri *secrets.URI, label string, refresh, peek bool) (secrets.SecretValue, error)
	SaveContent(ctx context.Context, uri *secrets.URI, revision int, value secrets.SecretValue) (secrets.ValueRef, error)
	DeleteContent(ctx context.Context, uri *secrets.URI, revision int) error
	DeleteExternalContent(ctx context.Context, ref secrets.ValueRef) error
}

SecretsBackend provides access to a secrets backend.

type SecretsClient

type SecretsClient interface {
	SecretsWatcher
	SecretsAccessor
}

SecretsClient provides access to the secrets manager facade.

type SecretsWatcher

type SecretsWatcher interface {
	WatchConsumedSecretsChanges(ctx context.Context, unitName string) (watcher.StringsWatcher, error)
	GetConsumerSecretsRevisionInfo(context.Context, string, []string) (map[string]secrets.SecretRevisionInfo, error)
	WatchObsolete(ctx context.Context, ownerTags ...names.Tag) (watcher.StringsWatcher, error)
}

SecretsWatcher is used by the remote state watcher.

type StorageAccessor

type StorageAccessor interface {
	StorageAttachment(context.Context, names.StorageTag, names.UnitTag) (params.StorageAttachment, error)
	UnitStorageAttachments(context.Context, names.UnitTag) ([]params.StorageAttachmentId, error)
	DestroyUnitStorageAttachments(context.Context, names.UnitTag) error
	RemoveStorageAttachment(context.Context, names.StorageTag, names.UnitTag) error
}

StorageAccessor is an interface for accessing information about storage attachments.

type Unit

type Unit interface {
	ProviderIDGetter
	Life() life.Value
	Refresh(context.Context) error
	ApplicationTag() names.ApplicationTag
	EnsureDead(context.Context) error
	ClearResolved(context.Context) error
	DestroyAllSubordinates(context.Context) error
	HasSubordinates(context.Context) (bool, error)
	LXDProfileName(context.Context) (string, error)
	CanApplyLXDProfile(context.Context) (bool, error)
	CharmURL(context.Context) (string, error)
	Watch(context.Context) (watcher.NotifyWatcher, error)

	ApplicationName() string
	ConfigSettings(context.Context) (charm.Settings, error)
	LogActionMessage(context.Context, names.ActionTag, string) error
	Name() string
	NetworkInfo(ctx context.Context, bindings []string, relationId *int) (map[string]params.NetworkInfoResult, error)
	RequestReboot(context.Context) error
	SetUnitStatus(ctx context.Context, unitStatus status.Status, info string, data map[string]interface{}) error
	SetAgentStatus(ctx context.Context, agentStatus status.Status, info string, data map[string]interface{}) error
	State(ctx context.Context) (params.UnitStateResult, error)
	SetState(ctx context.Context, unitState params.SetUnitStateArg) error
	Tag() names.UnitTag
	UnitStatus(context.Context) (params.StatusResult, error)
	CommitHookChanges(context.Context, params.CommitHookChangesArgs) error
	PublicAddress(context.Context) (string, error)
	PrincipalName(context.Context) (string, bool, error)
	AssignedMachine(context.Context) (names.MachineTag, error)
	AvailabilityZone(context.Context) (string, error)
	PrivateAddress(context.Context) (string, error)
	Resolved() params.ResolvedMode

	WatchConfigSettingsHash(context.Context) (watcher.StringsWatcher, error)
	WatchTrustConfigSettingsHash(context.Context) (watcher.StringsWatcher, error)
	WatchRelations(context.Context) (watcher.StringsWatcher, error)
	WatchAddressesHash(context.Context) (watcher.StringsWatcher, error)
	WatchActionNotifications(context.Context) (watcher.StringsWatcher, error)
	WatchStorage(context.Context) (watcher.StringsWatcher, error)
	WatchInstanceData(context.Context) (watcher.NotifyWatcher, error)

	Application(context.Context) (Application, error)
	RelationsStatus(context.Context) ([]uniter.RelationStatus, error)
	Destroy(context.Context) error

	SetCharmURL(ctx context.Context, curl string) error
}

Unit defines the methods on uniter.api.Unit.

type UnitShim

type UnitShim struct {
	*uniter.Unit
}

func (UnitShim) Application

func (s UnitShim) Application(ctx context.Context) (Application, error)

type UniterClient

type UniterClient interface {
	StorageAccessor
	Charm(curl string) (Charm, error)
	Unit(ctx context.Context, tag names.UnitTag) (Unit, error)
	Action(ctx context.Context, tag names.ActionTag) (*uniter.Action, error)
	Application(ctx context.Context, tag names.ApplicationTag) (Application, error)
	ActionStatus(ctx context.Context, tag names.ActionTag) (string, error)
	Relation(ctx context.Context, tag names.RelationTag) (Relation, error)
	RelationById(context.Context, int) (Relation, error)
	Model(context.Context) (*types.Model, error)
	ModelConfig(context.Context) (*config.Config, error)
	GoalState(context.Context) (application.GoalState, error)
	CloudSpec(context.Context) (*params.CloudSpec, error)
	ActionBegin(ctx context.Context, tag names.ActionTag) error
	ActionFinish(ctx context.Context, tag names.ActionTag, status string, results map[string]interface{}, message string) error
	UnitWorkloadVersion(ctx context.Context, tag names.UnitTag) (string, error)
	SetUnitWorkloadVersion(ctx context.Context, tag names.UnitTag, version string) error
	OpenedMachinePortRangesByEndpoint(ctx context.Context, machineTag names.MachineTag) (map[names.UnitTag]network.GroupedPortRanges, error)
	OpenedPortRangesByEndpoint(ctx context.Context) (map[names.UnitTag]network.GroupedPortRanges, error)
	CloudAPIVersion(context.Context) (string, error)
	APIAddresses(context.Context) ([]string, error)
	WatchRelationUnits(context.Context, names.RelationTag, names.UnitTag) (watcher.RelationUnitsWatcher, error)
	WatchStorageAttachment(context.Context, names.StorageTag, names.UnitTag) (watcher.NotifyWatcher, error)
	WatchUpdateStatusHookInterval(context.Context) (watcher.NotifyWatcher, error)
	UpdateStatusHookInterval(context.Context) (time.Duration, error)
	StorageAttachmentLife(context.Context, []params.StorageAttachmentId) ([]params.LifeResult, error)
}

UniterClient provides methods used by the uniter api facade client.

type UniterClientShim

type UniterClientShim struct {
	*uniter.Client
}

func (UniterClientShim) Application

func (s UniterClientShim) Application(ctx context.Context, tag names.ApplicationTag) (Application, error)

func (UniterClientShim) Charm

func (s UniterClientShim) Charm(curl string) (Charm, error)

func (UniterClientShim) Relation

func (s UniterClientShim) Relation(ctx context.Context, tag names.RelationTag) (Relation, error)

func (UniterClientShim) RelationById

func (s UniterClientShim) RelationById(ctx context.Context, id int) (Relation, error)

func (UniterClientShim) Unit

func (s UniterClientShim) Unit(ctx context.Context, tag names.UnitTag) (Unit, error)

Jump to

Keyboard shortcuts

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