Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAPICaller
- func (m *MockAPICaller) APICall(arg0 string, arg1 int, arg2, arg3 string, arg4, arg5 interface{}) error
- func (m *MockAPICaller) BakeryClient() base.MacaroonDischarger
- func (m *MockAPICaller) BestFacadeVersion(arg0 string) int
- func (m *MockAPICaller) ConnectControllerStream(arg0 string, arg1 url.Values, arg2 http.Header) (base.Stream, error)
- func (m *MockAPICaller) ConnectStream(arg0 string, arg1 url.Values) (base.Stream, error)
- func (m *MockAPICaller) Context() context.Context
- func (m *MockAPICaller) EXPECT() *MockAPICallerMockRecorder
- func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error)
- func (m *MockAPICaller) ModelTag() (names.ModelTag, bool)
- type MockAPICallerMockRecorder
- func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockAPICallerMockRecorder) BakeryClient() *gomock.Call
- func (mr *MockAPICallerMockRecorder) BestFacadeVersion(arg0 interface{}) *gomock.Call
- func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAPICallerMockRecorder) Context() *gomock.Call
- func (mr *MockAPICallerMockRecorder) HTTPClient() *gomock.Call
- func (mr *MockAPICallerMockRecorder) ModelTag() *gomock.Call
- type MockCAASBroker
- type MockCAASBrokerMockRecorder
- type MockCAASFirewallerAPI
- func (m *MockCAASFirewallerAPI) ApplicationCharmInfo(arg0 string) (*charms.CharmInfo, error)
- func (m *MockCAASFirewallerAPI) ApplicationConfig(arg0 string) (application.ConfigAttributes, error)
- func (m *MockCAASFirewallerAPI) EXPECT() *MockCAASFirewallerAPIMockRecorder
- func (m *MockCAASFirewallerAPI) IsExposed(arg0 string) (bool, error)
- func (m *MockCAASFirewallerAPI) WatchApplication(arg0 string) (watcher.NotifyWatcher, error)
- func (m *MockCAASFirewallerAPI) WatchApplications() (watcher.StringsWatcher, error)
- func (m *MockCAASFirewallerAPI) WatchOpenedPorts() (watcher.StringsWatcher, error)
- type MockCAASFirewallerAPIMockRecorder
- func (mr *MockCAASFirewallerAPIMockRecorder) ApplicationCharmInfo(arg0 interface{}) *gomock.Call
- func (mr *MockCAASFirewallerAPIMockRecorder) ApplicationConfig(arg0 interface{}) *gomock.Call
- func (mr *MockCAASFirewallerAPIMockRecorder) IsExposed(arg0 interface{}) *gomock.Call
- func (mr *MockCAASFirewallerAPIMockRecorder) WatchApplication(arg0 interface{}) *gomock.Call
- func (mr *MockCAASFirewallerAPIMockRecorder) WatchApplications() *gomock.Call
- func (mr *MockCAASFirewallerAPIMockRecorder) WatchOpenedPorts() *gomock.Call
- type MockClient
- func (m *MockClient) ApplicationCharmInfo(arg0 string) (*charms.CharmInfo, error)
- func (m *MockClient) ApplicationConfig(arg0 string) (application.ConfigAttributes, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) IsExposed(arg0 string) (bool, error)
- func (m *MockClient) Life(arg0 string) (life.Value, error)
- func (m *MockClient) WatchApplication(arg0 string) (watcher.NotifyWatcher, error)
- func (m *MockClient) WatchApplications() (watcher.StringsWatcher, error)
- func (m *MockClient) WatchOpenedPorts() (watcher.StringsWatcher, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) ApplicationCharmInfo(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ApplicationConfig(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) IsExposed(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Life(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) WatchApplication(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) WatchApplications() *gomock.Call
- func (mr *MockClientMockRecorder) WatchOpenedPorts() *gomock.Call
- type MockLifeGetter
- type MockLifeGetterMockRecorder
- type MockPortMutator
- type MockPortMutatorMockRecorder
- type MockServiceUpdater
- type MockServiceUpdaterMockRecorder
- type MockWorker
- type MockWorkerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPICaller ¶
type MockAPICaller struct {
// contains filtered or unexported fields
}
MockAPICaller is a mock of APICaller interface.
func NewMockAPICaller ¶
func NewMockAPICaller(ctrl *gomock.Controller) *MockAPICaller
NewMockAPICaller creates a new mock instance.
func (*MockAPICaller) APICall ¶
func (m *MockAPICaller) APICall(arg0 string, arg1 int, arg2, arg3 string, arg4, arg5 interface{}) error
APICall mocks base method.
func (*MockAPICaller) BakeryClient ¶
func (m *MockAPICaller) BakeryClient() base.MacaroonDischarger
BakeryClient mocks base method.
func (*MockAPICaller) BestFacadeVersion ¶
func (m *MockAPICaller) BestFacadeVersion(arg0 string) int
BestFacadeVersion mocks base method.
func (*MockAPICaller) ConnectControllerStream ¶
func (m *MockAPICaller) ConnectControllerStream(arg0 string, arg1 url.Values, arg2 http.Header) (base.Stream, error)
ConnectControllerStream mocks base method.
func (*MockAPICaller) ConnectStream ¶
ConnectStream mocks base method.
func (*MockAPICaller) Context ¶
func (m *MockAPICaller) Context() context.Context
Context mocks base method.
func (*MockAPICaller) EXPECT ¶
func (m *MockAPICaller) EXPECT() *MockAPICallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPICaller) HTTPClient ¶
func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error)
HTTPClient mocks base method.
type MockAPICallerMockRecorder ¶
type MockAPICallerMockRecorder struct {
// contains filtered or unexported fields
}
MockAPICallerMockRecorder is the mock recorder for MockAPICaller.
func (*MockAPICallerMockRecorder) APICall ¶
func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
APICall indicates an expected call of APICall.
func (*MockAPICallerMockRecorder) BakeryClient ¶
func (mr *MockAPICallerMockRecorder) BakeryClient() *gomock.Call
BakeryClient indicates an expected call of BakeryClient.
func (*MockAPICallerMockRecorder) BestFacadeVersion ¶
func (mr *MockAPICallerMockRecorder) BestFacadeVersion(arg0 interface{}) *gomock.Call
BestFacadeVersion indicates an expected call of BestFacadeVersion.
func (*MockAPICallerMockRecorder) ConnectControllerStream ¶
func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2 interface{}) *gomock.Call
ConnectControllerStream indicates an expected call of ConnectControllerStream.
func (*MockAPICallerMockRecorder) ConnectStream ¶
func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1 interface{}) *gomock.Call
ConnectStream indicates an expected call of ConnectStream.
func (*MockAPICallerMockRecorder) Context ¶
func (mr *MockAPICallerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockAPICallerMockRecorder) HTTPClient ¶
func (mr *MockAPICallerMockRecorder) HTTPClient() *gomock.Call
HTTPClient indicates an expected call of HTTPClient.
func (*MockAPICallerMockRecorder) ModelTag ¶
func (mr *MockAPICallerMockRecorder) ModelTag() *gomock.Call
ModelTag indicates an expected call of ModelTag.
type MockCAASBroker ¶
type MockCAASBroker struct {
// contains filtered or unexported fields
}
MockCAASBroker is a mock of CAASBroker interface.
func NewMockCAASBroker ¶
func NewMockCAASBroker(ctrl *gomock.Controller) *MockCAASBroker
NewMockCAASBroker creates a new mock instance.
func (*MockCAASBroker) Application ¶
func (m *MockCAASBroker) Application(arg0 string, arg1 caas.DeploymentType) caas.Application
Application mocks base method.
func (*MockCAASBroker) EXPECT ¶
func (m *MockCAASBroker) EXPECT() *MockCAASBrokerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCAASBrokerMockRecorder ¶
type MockCAASBrokerMockRecorder struct {
// contains filtered or unexported fields
}
MockCAASBrokerMockRecorder is the mock recorder for MockCAASBroker.
func (*MockCAASBrokerMockRecorder) Application ¶
func (mr *MockCAASBrokerMockRecorder) Application(arg0, arg1 interface{}) *gomock.Call
Application indicates an expected call of Application.
type MockCAASFirewallerAPI ¶
type MockCAASFirewallerAPI struct {
// contains filtered or unexported fields
}
MockCAASFirewallerAPI is a mock of CAASFirewallerAPI interface.
func NewMockCAASFirewallerAPI ¶
func NewMockCAASFirewallerAPI(ctrl *gomock.Controller) *MockCAASFirewallerAPI
NewMockCAASFirewallerAPI creates a new mock instance.
func (*MockCAASFirewallerAPI) ApplicationCharmInfo ¶
func (m *MockCAASFirewallerAPI) ApplicationCharmInfo(arg0 string) (*charms.CharmInfo, error)
ApplicationCharmInfo mocks base method.
func (*MockCAASFirewallerAPI) ApplicationConfig ¶
func (m *MockCAASFirewallerAPI) ApplicationConfig(arg0 string) (application.ConfigAttributes, error)
ApplicationConfig mocks base method.
func (*MockCAASFirewallerAPI) EXPECT ¶
func (m *MockCAASFirewallerAPI) EXPECT() *MockCAASFirewallerAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCAASFirewallerAPI) IsExposed ¶
func (m *MockCAASFirewallerAPI) IsExposed(arg0 string) (bool, error)
IsExposed mocks base method.
func (*MockCAASFirewallerAPI) WatchApplication ¶
func (m *MockCAASFirewallerAPI) WatchApplication(arg0 string) (watcher.NotifyWatcher, error)
WatchApplication mocks base method.
func (*MockCAASFirewallerAPI) WatchApplications ¶
func (m *MockCAASFirewallerAPI) WatchApplications() (watcher.StringsWatcher, error)
WatchApplications mocks base method.
func (*MockCAASFirewallerAPI) WatchOpenedPorts ¶
func (m *MockCAASFirewallerAPI) WatchOpenedPorts() (watcher.StringsWatcher, error)
WatchOpenedPorts mocks base method.
type MockCAASFirewallerAPIMockRecorder ¶
type MockCAASFirewallerAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockCAASFirewallerAPIMockRecorder is the mock recorder for MockCAASFirewallerAPI.
func (*MockCAASFirewallerAPIMockRecorder) ApplicationCharmInfo ¶
func (mr *MockCAASFirewallerAPIMockRecorder) ApplicationCharmInfo(arg0 interface{}) *gomock.Call
ApplicationCharmInfo indicates an expected call of ApplicationCharmInfo.
func (*MockCAASFirewallerAPIMockRecorder) ApplicationConfig ¶
func (mr *MockCAASFirewallerAPIMockRecorder) ApplicationConfig(arg0 interface{}) *gomock.Call
ApplicationConfig indicates an expected call of ApplicationConfig.
func (*MockCAASFirewallerAPIMockRecorder) IsExposed ¶
func (mr *MockCAASFirewallerAPIMockRecorder) IsExposed(arg0 interface{}) *gomock.Call
IsExposed indicates an expected call of IsExposed.
func (*MockCAASFirewallerAPIMockRecorder) WatchApplication ¶
func (mr *MockCAASFirewallerAPIMockRecorder) WatchApplication(arg0 interface{}) *gomock.Call
WatchApplication indicates an expected call of WatchApplication.
func (*MockCAASFirewallerAPIMockRecorder) WatchApplications ¶
func (mr *MockCAASFirewallerAPIMockRecorder) WatchApplications() *gomock.Call
WatchApplications indicates an expected call of WatchApplications.
func (*MockCAASFirewallerAPIMockRecorder) WatchOpenedPorts ¶
func (mr *MockCAASFirewallerAPIMockRecorder) WatchOpenedPorts() *gomock.Call
WatchOpenedPorts indicates an expected call of WatchOpenedPorts.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) ApplicationCharmInfo ¶
func (m *MockClient) ApplicationCharmInfo(arg0 string) (*charms.CharmInfo, error)
ApplicationCharmInfo mocks base method.
func (*MockClient) ApplicationConfig ¶
func (m *MockClient) ApplicationConfig(arg0 string) (application.ConfigAttributes, error)
ApplicationConfig mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) IsExposed ¶
func (m *MockClient) IsExposed(arg0 string) (bool, error)
IsExposed mocks base method.
func (*MockClient) Life ¶
func (m *MockClient) Life(arg0 string) (life.Value, error)
Life mocks base method.
func (*MockClient) WatchApplication ¶
func (m *MockClient) WatchApplication(arg0 string) (watcher.NotifyWatcher, error)
WatchApplication mocks base method.
func (*MockClient) WatchApplications ¶
func (m *MockClient) WatchApplications() (watcher.StringsWatcher, error)
WatchApplications mocks base method.
func (*MockClient) WatchOpenedPorts ¶
func (m *MockClient) WatchOpenedPorts() (watcher.StringsWatcher, error)
WatchOpenedPorts mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) ApplicationCharmInfo ¶
func (mr *MockClientMockRecorder) ApplicationCharmInfo(arg0 interface{}) *gomock.Call
ApplicationCharmInfo indicates an expected call of ApplicationCharmInfo.
func (*MockClientMockRecorder) ApplicationConfig ¶
func (mr *MockClientMockRecorder) ApplicationConfig(arg0 interface{}) *gomock.Call
ApplicationConfig indicates an expected call of ApplicationConfig.
func (*MockClientMockRecorder) IsExposed ¶
func (mr *MockClientMockRecorder) IsExposed(arg0 interface{}) *gomock.Call
IsExposed indicates an expected call of IsExposed.
func (*MockClientMockRecorder) Life ¶
func (mr *MockClientMockRecorder) Life(arg0 interface{}) *gomock.Call
Life indicates an expected call of Life.
func (*MockClientMockRecorder) WatchApplication ¶
func (mr *MockClientMockRecorder) WatchApplication(arg0 interface{}) *gomock.Call
WatchApplication indicates an expected call of WatchApplication.
func (*MockClientMockRecorder) WatchApplications ¶
func (mr *MockClientMockRecorder) WatchApplications() *gomock.Call
WatchApplications indicates an expected call of WatchApplications.
func (*MockClientMockRecorder) WatchOpenedPorts ¶
func (mr *MockClientMockRecorder) WatchOpenedPorts() *gomock.Call
WatchOpenedPorts indicates an expected call of WatchOpenedPorts.
type MockLifeGetter ¶
type MockLifeGetter struct {
// contains filtered or unexported fields
}
MockLifeGetter is a mock of LifeGetter interface.
func NewMockLifeGetter ¶
func NewMockLifeGetter(ctrl *gomock.Controller) *MockLifeGetter
NewMockLifeGetter creates a new mock instance.
func (*MockLifeGetter) EXPECT ¶
func (m *MockLifeGetter) EXPECT() *MockLifeGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLifeGetterMockRecorder ¶
type MockLifeGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockLifeGetterMockRecorder is the mock recorder for MockLifeGetter.
func (*MockLifeGetterMockRecorder) Life ¶
func (mr *MockLifeGetterMockRecorder) Life(arg0 interface{}) *gomock.Call
Life indicates an expected call of Life.
type MockPortMutator ¶
type MockPortMutator struct {
// contains filtered or unexported fields
}
MockPortMutator is a mock of PortMutator interface.
func NewMockPortMutator ¶
func NewMockPortMutator(ctrl *gomock.Controller) *MockPortMutator
NewMockPortMutator creates a new mock instance.
func (*MockPortMutator) EXPECT ¶
func (m *MockPortMutator) EXPECT() *MockPortMutatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPortMutator) UpdatePorts ¶
func (m *MockPortMutator) UpdatePorts(arg0 []caas.ServicePort, arg1 bool) error
UpdatePorts mocks base method.
type MockPortMutatorMockRecorder ¶
type MockPortMutatorMockRecorder struct {
// contains filtered or unexported fields
}
MockPortMutatorMockRecorder is the mock recorder for MockPortMutator.
func (*MockPortMutatorMockRecorder) UpdatePorts ¶
func (mr *MockPortMutatorMockRecorder) UpdatePorts(arg0, arg1 interface{}) *gomock.Call
UpdatePorts indicates an expected call of UpdatePorts.
type MockServiceUpdater ¶
type MockServiceUpdater struct {
// contains filtered or unexported fields
}
MockServiceUpdater is a mock of ServiceUpdater interface.
func NewMockServiceUpdater ¶
func NewMockServiceUpdater(ctrl *gomock.Controller) *MockServiceUpdater
NewMockServiceUpdater creates a new mock instance.
func (*MockServiceUpdater) EXPECT ¶
func (m *MockServiceUpdater) EXPECT() *MockServiceUpdaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockServiceUpdater) UpdateService ¶
func (m *MockServiceUpdater) UpdateService(arg0 caas.ServiceParam) error
UpdateService mocks base method.
type MockServiceUpdaterMockRecorder ¶
type MockServiceUpdaterMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceUpdaterMockRecorder is the mock recorder for MockServiceUpdater.
func (*MockServiceUpdaterMockRecorder) UpdateService ¶
func (mr *MockServiceUpdaterMockRecorder) UpdateService(arg0 interface{}) *gomock.Call
UpdateService indicates an expected call of UpdateService.
type MockWorker ¶
type MockWorker struct {
// contains filtered or unexported fields
}
MockWorker is a mock of Worker interface.
func NewMockWorker ¶
func NewMockWorker(ctrl *gomock.Controller) *MockWorker
NewMockWorker creates a new mock instance.
func (*MockWorker) EXPECT ¶
func (m *MockWorker) EXPECT() *MockWorkerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWorkerMockRecorder ¶
type MockWorkerMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerMockRecorder is the mock recorder for MockWorker.
func (*MockWorkerMockRecorder) Kill ¶
func (mr *MockWorkerMockRecorder) Kill() *gomock.Call
Kill indicates an expected call of Kill.
func (*MockWorkerMockRecorder) Wait ¶
func (mr *MockWorkerMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait.