mocks

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) CharmOrigin

func (m *MockApplication) CharmOrigin() *state.CharmOrigin

CharmOrigin mocks base method

func (*MockApplication) CharmURL

func (m *MockApplication) CharmURL() (*charm.URL, bool)

CharmURL mocks base method

func (*MockApplication) EXPECT

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

func (*MockApplication) Name

func (m *MockApplication) Name() string

Name mocks base method

func (*MockApplication) Tag

func (m *MockApplication) Tag() names.Tag

Tag mocks base method

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication

func (*MockApplicationMockRecorder) CharmOrigin

func (mr *MockApplicationMockRecorder) CharmOrigin() *gomock.Call

CharmOrigin indicates an expected call of CharmOrigin

func (*MockApplicationMockRecorder) CharmURL

func (mr *MockApplicationMockRecorder) CharmURL() *gomock.Call

CharmURL indicates an expected call of CharmURL

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name

func (*MockApplicationMockRecorder) Tag

Tag indicates an expected call of Tag

type MockCharmHub

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

MockCharmHub is a mock of CharmHub interface

func NewMockCharmHub

func NewMockCharmHub(ctrl *gomock.Controller) *MockCharmHub

NewMockCharmHub creates a new mock instance

func (*MockCharmHub) DownloadResource

func (m *MockCharmHub) DownloadResource(arg0 context.Context, arg1 *url.URL) (io.ReadCloser, error)

DownloadResource mocks base method

func (*MockCharmHub) EXPECT

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

func (*MockCharmHub) Refresh

Refresh mocks base method

type MockCharmHubMockRecorder

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

MockCharmHubMockRecorder is the mock recorder for MockCharmHub

func (*MockCharmHubMockRecorder) DownloadResource

func (mr *MockCharmHubMockRecorder) DownloadResource(arg0, arg1 interface{}) *gomock.Call

DownloadResource indicates an expected call of DownloadResource

func (*MockCharmHubMockRecorder) Refresh

func (mr *MockCharmHubMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call

Refresh indicates an expected call of Refresh

type MockResourceGetter

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

MockResourceGetter is a mock of ResourceGetter interface

func NewMockResourceGetter

func NewMockResourceGetter(ctrl *gomock.Controller) *MockResourceGetter

NewMockResourceGetter creates a new mock instance

func (*MockResourceGetter) EXPECT

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

func (*MockResourceGetter) GetResource

GetResource mocks base method

type MockResourceGetterMockRecorder

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

MockResourceGetterMockRecorder is the mock recorder for MockResourceGetter

func (*MockResourceGetterMockRecorder) GetResource

func (mr *MockResourceGetterMockRecorder) GetResource(arg0 interface{}) *gomock.Call

GetResource indicates an expected call of GetResource

type MockResourceOpenerState

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

MockResourceOpenerState is a mock of ResourceOpenerState interface

func NewMockResourceOpenerState

func NewMockResourceOpenerState(ctrl *gomock.Controller) *MockResourceOpenerState

NewMockResourceOpenerState creates a new mock instance

func (*MockResourceOpenerState) Application

Application mocks base method

func (*MockResourceOpenerState) Charm

func (m *MockResourceOpenerState) Charm(arg0 *charm.URL) (*state.Charm, error)

Charm mocks base method

func (*MockResourceOpenerState) ControllerConfig

func (m *MockResourceOpenerState) ControllerConfig() (controller.Config, error)

ControllerConfig mocks base method

func (*MockResourceOpenerState) EXPECT

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

func (*MockResourceOpenerState) Model

Model mocks base method

func (*MockResourceOpenerState) Resources

Resources mocks base method

func (*MockResourceOpenerState) Unit

Unit mocks base method

type MockResourceOpenerStateMockRecorder

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

MockResourceOpenerStateMockRecorder is the mock recorder for MockResourceOpenerState

func (*MockResourceOpenerStateMockRecorder) Application

func (mr *MockResourceOpenerStateMockRecorder) Application(arg0 interface{}) *gomock.Call

Application indicates an expected call of Application

func (*MockResourceOpenerStateMockRecorder) Charm

func (mr *MockResourceOpenerStateMockRecorder) Charm(arg0 interface{}) *gomock.Call

Charm indicates an expected call of Charm

func (*MockResourceOpenerStateMockRecorder) ControllerConfig

func (mr *MockResourceOpenerStateMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig

func (*MockResourceOpenerStateMockRecorder) Model

Model indicates an expected call of Model

func (*MockResourceOpenerStateMockRecorder) Resources

Resources indicates an expected call of Resources

func (*MockResourceOpenerStateMockRecorder) Unit

func (mr *MockResourceOpenerStateMockRecorder) Unit(arg0 interface{}) *gomock.Call

Unit indicates an expected call of Unit

type MockResources

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

MockResources is a mock of Resources interface

func NewMockResources

func NewMockResources(ctrl *gomock.Controller) *MockResources

NewMockResources creates a new mock instance

func (*MockResources) EXPECT

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

func (*MockResources) GetResource

func (m *MockResources) GetResource(arg0, arg1 string) (resource0.Resource, error)

GetResource mocks base method

func (*MockResources) OpenResource

func (m *MockResources) OpenResource(arg0, arg1 string) (resource0.Resource, io.ReadCloser, error)

OpenResource mocks base method

func (*MockResources) OpenResourceForUniter

func (m *MockResources) OpenResourceForUniter(arg0 resource0.Unit, arg1 string) (resource0.Resource, io.ReadCloser, error)

OpenResourceForUniter mocks base method

func (*MockResources) SetResource

func (m *MockResources) SetResource(arg0, arg1 string, arg2 resource.Resource, arg3 io.Reader) (resource0.Resource, error)

SetResource mocks base method

type MockResourcesMockRecorder

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

MockResourcesMockRecorder is the mock recorder for MockResources

func (*MockResourcesMockRecorder) GetResource

func (mr *MockResourcesMockRecorder) GetResource(arg0, arg1 interface{}) *gomock.Call

GetResource indicates an expected call of GetResource

func (*MockResourcesMockRecorder) OpenResource

func (mr *MockResourcesMockRecorder) OpenResource(arg0, arg1 interface{}) *gomock.Call

OpenResource indicates an expected call of OpenResource

func (*MockResourcesMockRecorder) OpenResourceForUniter

func (mr *MockResourcesMockRecorder) OpenResourceForUniter(arg0, arg1 interface{}) *gomock.Call

OpenResourceForUniter indicates an expected call of OpenResourceForUniter

func (*MockResourcesMockRecorder) SetResource

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

SetResource indicates an expected call of SetResource

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() (resourceadapters.Application, error)

Application mocks base method

func (*MockUnit) ApplicationName

func (m *MockUnit) ApplicationName() string

ApplicationName mocks base method

func (*MockUnit) CharmURL

func (m *MockUnit) CharmURL() (*charm.URL, bool)

CharmURL 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) Name

func (m *MockUnit) Name() string

Name mocks base method

func (*MockUnit) Tag

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

Tag mocks base method

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit

func (*MockUnitMockRecorder) Application

func (mr *MockUnitMockRecorder) Application() *gomock.Call

Application indicates an expected call of Application

func (*MockUnitMockRecorder) ApplicationName

func (mr *MockUnitMockRecorder) ApplicationName() *gomock.Call

ApplicationName indicates an expected call of ApplicationName

func (*MockUnitMockRecorder) CharmURL

func (mr *MockUnitMockRecorder) CharmURL() *gomock.Call

CharmURL indicates an expected call of CharmURL

func (*MockUnitMockRecorder) Name

func (mr *MockUnitMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockUnitMockRecorder) Tag

func (mr *MockUnitMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag

Jump to

Keyboard shortcuts

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