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 MockClientStore
- func (m *MockClientStore) AccountDetails(arg0 string) (*jujuclient.AccountDetails, error)
- func (m *MockClientStore) AddController(arg0 string, arg1 jujuclient.ControllerDetails) error
- func (m *MockClientStore) AllControllers() (map[string]jujuclient.ControllerDetails, error)
- func (m *MockClientStore) AllCredentials() (map[string]cloud.CloudCredential, error)
- func (m *MockClientStore) AllModels(arg0 string) (map[string]jujuclient.ModelDetails, error)
- func (m *MockClientStore) BootstrapConfigForController(arg0 string) (*jujuclient.BootstrapConfig, error)
- func (m *MockClientStore) ControllerByAPIEndpoints(arg0 ...string) (*jujuclient.ControllerDetails, string, error)
- func (m *MockClientStore) ControllerByName(arg0 string) (*jujuclient.ControllerDetails, error)
- func (m *MockClientStore) CookieJar(arg0 string) (jujuclient.CookieJar, error)
- func (m *MockClientStore) CredentialForCloud(arg0 string) (*cloud.CloudCredential, error)
- func (m *MockClientStore) CurrentController() (string, error)
- func (m *MockClientStore) CurrentModel(arg0 string) (string, error)
- func (m *MockClientStore) EXPECT() *MockClientStoreMockRecorder
- func (m *MockClientStore) ModelByName(arg0, arg1 string) (*jujuclient.ModelDetails, error)
- func (m *MockClientStore) RemoveAccount(arg0 string) error
- func (m *MockClientStore) RemoveController(arg0 string) error
- func (m *MockClientStore) RemoveModel(arg0, arg1 string) error
- func (m *MockClientStore) SetCurrentController(arg0 string) error
- func (m *MockClientStore) SetCurrentModel(arg0, arg1 string) error
- func (m *MockClientStore) SetModels(arg0 string, arg1 map[string]jujuclient.ModelDetails) error
- func (m *MockClientStore) UpdateAccount(arg0 string, arg1 jujuclient.AccountDetails) error
- func (m *MockClientStore) UpdateBootstrapConfig(arg0 string, arg1 jujuclient.BootstrapConfig) error
- func (m *MockClientStore) UpdateController(arg0 string, arg1 jujuclient.ControllerDetails) error
- func (m *MockClientStore) UpdateCredential(arg0 string, arg1 cloud.CloudCredential) error
- func (m *MockClientStore) UpdateModel(arg0, arg1 string, arg2 jujuclient.ModelDetails) error
- type MockClientStoreMockRecorder
- func (mr *MockClientStoreMockRecorder) AccountDetails(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) AddController(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) AllControllers() *gomock.Call
- func (mr *MockClientStoreMockRecorder) AllCredentials() *gomock.Call
- func (mr *MockClientStoreMockRecorder) AllModels(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) BootstrapConfigForController(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) ControllerByAPIEndpoints(arg0 ...any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) ControllerByName(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) CookieJar(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) CredentialForCloud(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) CurrentController() *gomock.Call
- func (mr *MockClientStoreMockRecorder) CurrentModel(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) ModelByName(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) RemoveAccount(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) RemoveController(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) RemoveModel(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) SetCurrentController(arg0 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) SetCurrentModel(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) SetModels(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) UpdateAccount(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) UpdateBootstrapConfig(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) UpdateController(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) UpdateCredential(arg0, arg1 any) *gomock.Call
- func (mr *MockClientStoreMockRecorder) UpdateModel(arg0, arg1, arg2 any) *gomock.Call
- type MockCookieJar
- type MockCookieJarMockRecorder
- type MockModelConfigAPI
- type MockModelConfigAPIMockRecorder
- type MockModelUpgraderAPI
- func (m *MockModelUpgraderAPI) AbortModelUpgrade(arg0 string) error
- func (m *MockModelUpgraderAPI) Close() error
- func (m *MockModelUpgraderAPI) EXPECT() *MockModelUpgraderAPIMockRecorder
- func (m *MockModelUpgraderAPI) UpgradeModel(arg0 string, arg1 version.Number, arg2 string, arg3, arg4 bool) (version.Number, error)
- func (m *MockModelUpgraderAPI) UploadTools(arg0 io.ReadSeeker, arg1 version.Binary) (tools.List, error)
- type MockModelUpgraderAPIMockRecorder
- func (mr *MockModelUpgraderAPIMockRecorder) AbortModelUpgrade(arg0 any) *gomock.Call
- func (mr *MockModelUpgraderAPIMockRecorder) Close() *gomock.Call
- func (mr *MockModelUpgraderAPIMockRecorder) UpgradeModel(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockModelUpgraderAPIMockRecorder) UploadTools(arg0, arg1 any) *gomock.Call
- type MockSyncToolAPI
- type MockSyncToolAPIMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientStore ¶
type MockClientStore struct {
// contains filtered or unexported fields
}
MockClientStore is a mock of ClientStore interface.
func NewMockClientStore ¶
func NewMockClientStore(ctrl *gomock.Controller) *MockClientStore
NewMockClientStore creates a new mock instance.
func (*MockClientStore) AccountDetails ¶
func (m *MockClientStore) AccountDetails(arg0 string) (*jujuclient.AccountDetails, error)
AccountDetails mocks base method.
func (*MockClientStore) AddController ¶
func (m *MockClientStore) AddController(arg0 string, arg1 jujuclient.ControllerDetails) error
AddController mocks base method.
func (*MockClientStore) AllControllers ¶
func (m *MockClientStore) AllControllers() (map[string]jujuclient.ControllerDetails, error)
AllControllers mocks base method.
func (*MockClientStore) AllCredentials ¶
func (m *MockClientStore) AllCredentials() (map[string]cloud.CloudCredential, error)
AllCredentials mocks base method.
func (*MockClientStore) AllModels ¶
func (m *MockClientStore) AllModels(arg0 string) (map[string]jujuclient.ModelDetails, error)
AllModels mocks base method.
func (*MockClientStore) BootstrapConfigForController ¶
func (m *MockClientStore) BootstrapConfigForController(arg0 string) (*jujuclient.BootstrapConfig, error)
BootstrapConfigForController mocks base method.
func (*MockClientStore) ControllerByAPIEndpoints ¶
func (m *MockClientStore) ControllerByAPIEndpoints(arg0 ...string) (*jujuclient.ControllerDetails, string, error)
ControllerByAPIEndpoints mocks base method.
func (*MockClientStore) ControllerByName ¶
func (m *MockClientStore) ControllerByName(arg0 string) (*jujuclient.ControllerDetails, error)
ControllerByName mocks base method.
func (*MockClientStore) CookieJar ¶
func (m *MockClientStore) CookieJar(arg0 string) (jujuclient.CookieJar, error)
CookieJar mocks base method.
func (*MockClientStore) CredentialForCloud ¶
func (m *MockClientStore) CredentialForCloud(arg0 string) (*cloud.CloudCredential, error)
CredentialForCloud mocks base method.
func (*MockClientStore) CurrentController ¶
func (m *MockClientStore) CurrentController() (string, error)
CurrentController mocks base method.
func (*MockClientStore) CurrentModel ¶
func (m *MockClientStore) CurrentModel(arg0 string) (string, error)
CurrentModel mocks base method.
func (*MockClientStore) EXPECT ¶
func (m *MockClientStore) EXPECT() *MockClientStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientStore) ModelByName ¶
func (m *MockClientStore) ModelByName(arg0, arg1 string) (*jujuclient.ModelDetails, error)
ModelByName mocks base method.
func (*MockClientStore) RemoveAccount ¶
func (m *MockClientStore) RemoveAccount(arg0 string) error
RemoveAccount mocks base method.
func (*MockClientStore) RemoveController ¶
func (m *MockClientStore) RemoveController(arg0 string) error
RemoveController mocks base method.
func (*MockClientStore) RemoveModel ¶
func (m *MockClientStore) RemoveModel(arg0, arg1 string) error
RemoveModel mocks base method.
func (*MockClientStore) SetCurrentController ¶
func (m *MockClientStore) SetCurrentController(arg0 string) error
SetCurrentController mocks base method.
func (*MockClientStore) SetCurrentModel ¶
func (m *MockClientStore) SetCurrentModel(arg0, arg1 string) error
SetCurrentModel mocks base method.
func (*MockClientStore) SetModels ¶
func (m *MockClientStore) SetModels(arg0 string, arg1 map[string]jujuclient.ModelDetails) error
SetModels mocks base method.
func (*MockClientStore) UpdateAccount ¶
func (m *MockClientStore) UpdateAccount(arg0 string, arg1 jujuclient.AccountDetails) error
UpdateAccount mocks base method.
func (*MockClientStore) UpdateBootstrapConfig ¶
func (m *MockClientStore) UpdateBootstrapConfig(arg0 string, arg1 jujuclient.BootstrapConfig) error
UpdateBootstrapConfig mocks base method.
func (*MockClientStore) UpdateController ¶
func (m *MockClientStore) UpdateController(arg0 string, arg1 jujuclient.ControllerDetails) error
UpdateController mocks base method.
func (*MockClientStore) UpdateCredential ¶
func (m *MockClientStore) UpdateCredential(arg0 string, arg1 cloud.CloudCredential) error
UpdateCredential mocks base method.
func (*MockClientStore) UpdateModel ¶
func (m *MockClientStore) UpdateModel(arg0, arg1 string, arg2 jujuclient.ModelDetails) error
UpdateModel mocks base method.
type MockClientStoreMockRecorder ¶
type MockClientStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockClientStoreMockRecorder is the mock recorder for MockClientStore.
func (*MockClientStoreMockRecorder) AccountDetails ¶
func (mr *MockClientStoreMockRecorder) AccountDetails(arg0 any) *gomock.Call
AccountDetails indicates an expected call of AccountDetails.
func (*MockClientStoreMockRecorder) AddController ¶
func (mr *MockClientStoreMockRecorder) AddController(arg0, arg1 any) *gomock.Call
AddController indicates an expected call of AddController.
func (*MockClientStoreMockRecorder) AllControllers ¶
func (mr *MockClientStoreMockRecorder) AllControllers() *gomock.Call
AllControllers indicates an expected call of AllControllers.
func (*MockClientStoreMockRecorder) AllCredentials ¶
func (mr *MockClientStoreMockRecorder) AllCredentials() *gomock.Call
AllCredentials indicates an expected call of AllCredentials.
func (*MockClientStoreMockRecorder) AllModels ¶
func (mr *MockClientStoreMockRecorder) AllModels(arg0 any) *gomock.Call
AllModels indicates an expected call of AllModels.
func (*MockClientStoreMockRecorder) BootstrapConfigForController ¶
func (mr *MockClientStoreMockRecorder) BootstrapConfigForController(arg0 any) *gomock.Call
BootstrapConfigForController indicates an expected call of BootstrapConfigForController.
func (*MockClientStoreMockRecorder) ControllerByAPIEndpoints ¶
func (mr *MockClientStoreMockRecorder) ControllerByAPIEndpoints(arg0 ...any) *gomock.Call
ControllerByAPIEndpoints indicates an expected call of ControllerByAPIEndpoints.
func (*MockClientStoreMockRecorder) ControllerByName ¶
func (mr *MockClientStoreMockRecorder) ControllerByName(arg0 any) *gomock.Call
ControllerByName indicates an expected call of ControllerByName.
func (*MockClientStoreMockRecorder) CookieJar ¶
func (mr *MockClientStoreMockRecorder) CookieJar(arg0 any) *gomock.Call
CookieJar indicates an expected call of CookieJar.
func (*MockClientStoreMockRecorder) CredentialForCloud ¶
func (mr *MockClientStoreMockRecorder) CredentialForCloud(arg0 any) *gomock.Call
CredentialForCloud indicates an expected call of CredentialForCloud.
func (*MockClientStoreMockRecorder) CurrentController ¶
func (mr *MockClientStoreMockRecorder) CurrentController() *gomock.Call
CurrentController indicates an expected call of CurrentController.
func (*MockClientStoreMockRecorder) CurrentModel ¶
func (mr *MockClientStoreMockRecorder) CurrentModel(arg0 any) *gomock.Call
CurrentModel indicates an expected call of CurrentModel.
func (*MockClientStoreMockRecorder) ModelByName ¶
func (mr *MockClientStoreMockRecorder) ModelByName(arg0, arg1 any) *gomock.Call
ModelByName indicates an expected call of ModelByName.
func (*MockClientStoreMockRecorder) RemoveAccount ¶
func (mr *MockClientStoreMockRecorder) RemoveAccount(arg0 any) *gomock.Call
RemoveAccount indicates an expected call of RemoveAccount.
func (*MockClientStoreMockRecorder) RemoveController ¶
func (mr *MockClientStoreMockRecorder) RemoveController(arg0 any) *gomock.Call
RemoveController indicates an expected call of RemoveController.
func (*MockClientStoreMockRecorder) RemoveModel ¶
func (mr *MockClientStoreMockRecorder) RemoveModel(arg0, arg1 any) *gomock.Call
RemoveModel indicates an expected call of RemoveModel.
func (*MockClientStoreMockRecorder) SetCurrentController ¶
func (mr *MockClientStoreMockRecorder) SetCurrentController(arg0 any) *gomock.Call
SetCurrentController indicates an expected call of SetCurrentController.
func (*MockClientStoreMockRecorder) SetCurrentModel ¶
func (mr *MockClientStoreMockRecorder) SetCurrentModel(arg0, arg1 any) *gomock.Call
SetCurrentModel indicates an expected call of SetCurrentModel.
func (*MockClientStoreMockRecorder) SetModels ¶
func (mr *MockClientStoreMockRecorder) SetModels(arg0, arg1 any) *gomock.Call
SetModels indicates an expected call of SetModels.
func (*MockClientStoreMockRecorder) UpdateAccount ¶
func (mr *MockClientStoreMockRecorder) UpdateAccount(arg0, arg1 any) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.
func (*MockClientStoreMockRecorder) UpdateBootstrapConfig ¶
func (mr *MockClientStoreMockRecorder) UpdateBootstrapConfig(arg0, arg1 any) *gomock.Call
UpdateBootstrapConfig indicates an expected call of UpdateBootstrapConfig.
func (*MockClientStoreMockRecorder) UpdateController ¶
func (mr *MockClientStoreMockRecorder) UpdateController(arg0, arg1 any) *gomock.Call
UpdateController indicates an expected call of UpdateController.
func (*MockClientStoreMockRecorder) UpdateCredential ¶
func (mr *MockClientStoreMockRecorder) UpdateCredential(arg0, arg1 any) *gomock.Call
UpdateCredential indicates an expected call of UpdateCredential.
func (*MockClientStoreMockRecorder) UpdateModel ¶
func (mr *MockClientStoreMockRecorder) UpdateModel(arg0, arg1, arg2 any) *gomock.Call
UpdateModel indicates an expected call of UpdateModel.
type MockCookieJar ¶
type MockCookieJar struct {
// contains filtered or unexported fields
}
MockCookieJar is a mock of CookieJar interface.
func NewMockCookieJar ¶
func NewMockCookieJar(ctrl *gomock.Controller) *MockCookieJar
NewMockCookieJar creates a new mock instance.
func (*MockCookieJar) Cookies ¶
func (m *MockCookieJar) Cookies(arg0 *url.URL) []*http.Cookie
Cookies mocks base method.
func (*MockCookieJar) EXPECT ¶
func (m *MockCookieJar) EXPECT() *MockCookieJarMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCookieJar) SetCookies ¶
func (m *MockCookieJar) SetCookies(arg0 *url.URL, arg1 []*http.Cookie)
SetCookies mocks base method.
type MockCookieJarMockRecorder ¶
type MockCookieJarMockRecorder struct {
// contains filtered or unexported fields
}
MockCookieJarMockRecorder is the mock recorder for MockCookieJar.
func (*MockCookieJarMockRecorder) Cookies ¶
func (mr *MockCookieJarMockRecorder) Cookies(arg0 any) *gomock.Call
Cookies indicates an expected call of Cookies.
func (*MockCookieJarMockRecorder) RemoveAll ¶
func (mr *MockCookieJarMockRecorder) RemoveAll() *gomock.Call
RemoveAll indicates an expected call of RemoveAll.
func (*MockCookieJarMockRecorder) Save ¶
func (mr *MockCookieJarMockRecorder) Save() *gomock.Call
Save indicates an expected call of Save.
func (*MockCookieJarMockRecorder) SetCookies ¶
func (mr *MockCookieJarMockRecorder) SetCookies(arg0, arg1 any) *gomock.Call
SetCookies indicates an expected call of SetCookies.
type MockModelConfigAPI ¶
type MockModelConfigAPI struct {
// contains filtered or unexported fields
}
MockModelConfigAPI is a mock of ModelConfigAPI interface.
func NewMockModelConfigAPI ¶
func NewMockModelConfigAPI(ctrl *gomock.Controller) *MockModelConfigAPI
NewMockModelConfigAPI creates a new mock instance.
func (*MockModelConfigAPI) Close ¶
func (m *MockModelConfigAPI) Close() error
Close mocks base method.
func (*MockModelConfigAPI) EXPECT ¶
func (m *MockModelConfigAPI) EXPECT() *MockModelConfigAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockModelConfigAPIMockRecorder ¶
type MockModelConfigAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockModelConfigAPIMockRecorder is the mock recorder for MockModelConfigAPI.
func (*MockModelConfigAPIMockRecorder) Close ¶
func (mr *MockModelConfigAPIMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockModelConfigAPIMockRecorder) ModelGet ¶
func (mr *MockModelConfigAPIMockRecorder) ModelGet() *gomock.Call
ModelGet indicates an expected call of ModelGet.
type MockModelUpgraderAPI ¶
type MockModelUpgraderAPI struct {
// contains filtered or unexported fields
}
MockModelUpgraderAPI is a mock of ModelUpgraderAPI interface.
func NewMockModelUpgraderAPI ¶
func NewMockModelUpgraderAPI(ctrl *gomock.Controller) *MockModelUpgraderAPI
NewMockModelUpgraderAPI creates a new mock instance.
func (*MockModelUpgraderAPI) AbortModelUpgrade ¶
func (m *MockModelUpgraderAPI) AbortModelUpgrade(arg0 string) error
AbortModelUpgrade mocks base method.
func (*MockModelUpgraderAPI) Close ¶
func (m *MockModelUpgraderAPI) Close() error
Close mocks base method.
func (*MockModelUpgraderAPI) EXPECT ¶
func (m *MockModelUpgraderAPI) EXPECT() *MockModelUpgraderAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelUpgraderAPI) UpgradeModel ¶
func (m *MockModelUpgraderAPI) UpgradeModel(arg0 string, arg1 version.Number, arg2 string, arg3, arg4 bool) (version.Number, error)
UpgradeModel mocks base method.
func (*MockModelUpgraderAPI) UploadTools ¶
func (m *MockModelUpgraderAPI) UploadTools(arg0 io.ReadSeeker, arg1 version.Binary) (tools.List, error)
UploadTools mocks base method.
type MockModelUpgraderAPIMockRecorder ¶
type MockModelUpgraderAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockModelUpgraderAPIMockRecorder is the mock recorder for MockModelUpgraderAPI.
func (*MockModelUpgraderAPIMockRecorder) AbortModelUpgrade ¶
func (mr *MockModelUpgraderAPIMockRecorder) AbortModelUpgrade(arg0 any) *gomock.Call
AbortModelUpgrade indicates an expected call of AbortModelUpgrade.
func (*MockModelUpgraderAPIMockRecorder) Close ¶
func (mr *MockModelUpgraderAPIMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockModelUpgraderAPIMockRecorder) UpgradeModel ¶
func (mr *MockModelUpgraderAPIMockRecorder) UpgradeModel(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
UpgradeModel indicates an expected call of UpgradeModel.
func (*MockModelUpgraderAPIMockRecorder) UploadTools ¶
func (mr *MockModelUpgraderAPIMockRecorder) UploadTools(arg0, arg1 any) *gomock.Call
UploadTools indicates an expected call of UploadTools.
type MockSyncToolAPI ¶
type MockSyncToolAPI struct {
// contains filtered or unexported fields
}
MockSyncToolAPI is a mock of SyncToolAPI interface.
func NewMockSyncToolAPI ¶
func NewMockSyncToolAPI(ctrl *gomock.Controller) *MockSyncToolAPI
NewMockSyncToolAPI creates a new mock instance.
func (*MockSyncToolAPI) EXPECT ¶
func (m *MockSyncToolAPI) EXPECT() *MockSyncToolAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncToolAPI) UploadTools ¶
func (m *MockSyncToolAPI) UploadTools(arg0 io.ReadSeeker, arg1 version.Binary) (tools.List, error)
UploadTools mocks base method.
type MockSyncToolAPIMockRecorder ¶
type MockSyncToolAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncToolAPIMockRecorder is the mock recorder for MockSyncToolAPI.
func (*MockSyncToolAPIMockRecorder) Close ¶
func (mr *MockSyncToolAPIMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSyncToolAPIMockRecorder) UploadTools ¶
func (mr *MockSyncToolAPIMockRecorder) UploadTools(arg0, arg1 any) *gomock.Call
UploadTools indicates an expected call of UploadTools.