Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationMockRecorder
- type MockCharmHub
- type MockCharmHubMockRecorder
- type MockResourceGetter
- type MockResourceGetterMockRecorder
- type MockResourceOpenerState
- func (m *MockResourceOpenerState) Application(arg0 string) (resourceadapters.Application, error)
- func (m *MockResourceOpenerState) Charm(arg0 *charm.URL) (*state.Charm, error)
- func (m *MockResourceOpenerState) ControllerConfig() (controller.Config, error)
- func (m *MockResourceOpenerState) EXPECT() *MockResourceOpenerStateMockRecorder
- func (m *MockResourceOpenerState) Model() (resourceadapters.Model, error)
- func (m *MockResourceOpenerState) Resources() (resourceadapters.Resources, error)
- func (m *MockResourceOpenerState) Unit(arg0 string) (resourceadapters.Unit, error)
- type MockResourceOpenerStateMockRecorder
- func (mr *MockResourceOpenerStateMockRecorder) Application(arg0 interface{}) *gomock.Call
- func (mr *MockResourceOpenerStateMockRecorder) Charm(arg0 interface{}) *gomock.Call
- func (mr *MockResourceOpenerStateMockRecorder) ControllerConfig() *gomock.Call
- func (mr *MockResourceOpenerStateMockRecorder) Model() *gomock.Call
- func (mr *MockResourceOpenerStateMockRecorder) Resources() *gomock.Call
- func (mr *MockResourceOpenerStateMockRecorder) Unit(arg0 interface{}) *gomock.Call
- type MockResources
- func (m *MockResources) EXPECT() *MockResourcesMockRecorder
- func (m *MockResources) GetResource(arg0, arg1 string) (resource0.Resource, error)
- func (m *MockResources) OpenResource(arg0, arg1 string) (resource0.Resource, io.ReadCloser, error)
- func (m *MockResources) OpenResourceForUniter(arg0 resource0.Unit, arg1 string) (resource0.Resource, io.ReadCloser, error)
- func (m *MockResources) SetResource(arg0, arg1 string, arg2 resource.Resource, arg3 io.Reader) (resource0.Resource, error)
- type MockResourcesMockRecorder
- func (mr *MockResourcesMockRecorder) GetResource(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourcesMockRecorder) OpenResource(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourcesMockRecorder) OpenResourceForUniter(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourcesMockRecorder) SetResource(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockUnit
- type MockUnitMockRecorder
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 ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (mr *MockApplicationMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockApplicationMockRecorder) Tag ¶
func (mr *MockApplicationMockRecorder) Tag() *gomock.Call
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 ¶
func (m *MockCharmHub) EXPECT() *MockCharmHubMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCharmHub) Refresh ¶
func (m *MockCharmHub) Refresh(arg0 context.Context, arg1 charmhub.RefreshConfig) ([]transport.RefreshResponse, error)
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 ¶
func (m *MockResourceGetter) EXPECT() *MockResourceGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockResourceGetter) GetResource ¶
func (m *MockResourceGetter) GetResource(arg0 repositories.ResourceRequest) (charmstore.ResourceData, error)
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 ¶
func (m *MockResourceOpenerState) Application(arg0 string) (resourceadapters.Application, error)
Application mocks base method
func (*MockResourceOpenerState) ControllerConfig ¶
func (m *MockResourceOpenerState) ControllerConfig() (controller.Config, error)
ControllerConfig mocks base method
func (*MockResourceOpenerState) EXPECT ¶
func (m *MockResourceOpenerState) EXPECT() *MockResourceOpenerStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockResourceOpenerState) Model ¶
func (m *MockResourceOpenerState) Model() (resourceadapters.Model, error)
Model mocks base method
func (*MockResourceOpenerState) Resources ¶
func (m *MockResourceOpenerState) Resources() (resourceadapters.Resources, error)
Resources mocks base method
func (*MockResourceOpenerState) Unit ¶
func (m *MockResourceOpenerState) Unit(arg0 string) (resourceadapters.Unit, error)
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 ¶
func (mr *MockResourceOpenerStateMockRecorder) Model() *gomock.Call
Model indicates an expected call of Model
func (*MockResourceOpenerStateMockRecorder) Resources ¶
func (mr *MockResourceOpenerStateMockRecorder) Resources() *gomock.Call
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 ¶
func (m *MockResources) EXPECT() *MockResourcesMockRecorder
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
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 ¶
ApplicationName mocks base method
func (*MockUnit) EXPECT ¶
func (m *MockUnit) EXPECT() *MockUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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