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.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) DownloadCharm(arg0, arg1 string) (*charm.CharmArchive, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) FindDownloadURL(arg0 *charm.URL, arg1 charm0.Origin) (*url.URL, charm0.Origin, error)
- func (m *MockRepository) Resolve(arg0 *charm.URL) (*charm.URL, []string, error)
- type MockRepositoryMockRecorder
- type MockState
- func (m *MockState) ControllerConfig() (controller.Config, error)
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) Model() (application.StateModel, error)
- func (m *MockState) ModelUUID() string
- func (m *MockState) MongoSession() *mgo.Session
- func (m *MockState) PrepareCharmUpload(arg0 *charm.URL) (application.StateCharm, error)
- func (m *MockState) UpdateUploadedCharm(arg0 state.CharmInfo) (*state.Charm, error)
- type MockStateCharm
- type MockStateCharmMockRecorder
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call
- func (mr *MockStateMockRecorder) Model() *gomock.Call
- func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call
- func (mr *MockStateMockRecorder) MongoSession() *gomock.Call
- func (mr *MockStateMockRecorder) PrepareCharmUpload(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) UpdateUploadedCharm(arg0 interface{}) *gomock.Call
- type MockStateModel
- type MockStateModelMockRecorder
- type MockStorage
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) Get(arg0 string) (io.ReadCloser, int64, error)
- func (m *MockStorage) Put(arg0 string, arg1 io.Reader, arg2 int64) error
- func (m *MockStorage) PutAndCheckHash(arg0 string, arg1 io.Reader, arg2 int64, arg3 string) error
- func (m *MockStorage) Remove(arg0 string) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) PutAndCheckHash(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Remove(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance
func (*MockRepository) DownloadCharm ¶
func (m *MockRepository) DownloadCharm(arg0, arg1 string) (*charm.CharmArchive, error)
DownloadCharm mocks base method
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) DownloadCharm ¶
func (mr *MockRepositoryMockRecorder) DownloadCharm(arg0, arg1 interface{}) *gomock.Call
DownloadCharm indicates an expected call of DownloadCharm
func (*MockRepositoryMockRecorder) FindDownloadURL ¶
func (mr *MockRepositoryMockRecorder) FindDownloadURL(arg0, arg1 interface{}) *gomock.Call
FindDownloadURL indicates an expected call of FindDownloadURL
func (*MockRepositoryMockRecorder) Resolve ¶
func (mr *MockRepositoryMockRecorder) Resolve(arg0 interface{}) *gomock.Call
Resolve indicates an expected call of Resolve
type MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance
func (*MockState) ControllerConfig ¶
func (m *MockState) ControllerConfig() (controller.Config, error)
ControllerConfig mocks base method
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockState) Model ¶
func (m *MockState) Model() (application.StateModel, error)
Model mocks base method
func (*MockState) MongoSession ¶
MongoSession mocks base method
func (*MockState) PrepareCharmUpload ¶
func (m *MockState) PrepareCharmUpload(arg0 *charm.URL) (application.StateCharm, error)
PrepareCharmUpload mocks base method
type MockStateCharm ¶
type MockStateCharm struct {
// contains filtered or unexported fields
}
MockStateCharm is a mock of StateCharm interface
func NewMockStateCharm ¶
func NewMockStateCharm(ctrl *gomock.Controller) *MockStateCharm
NewMockStateCharm creates a new mock instance
func (*MockStateCharm) EXPECT ¶
func (m *MockStateCharm) EXPECT() *MockStateCharmMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStateCharm) IsUploaded ¶
func (m *MockStateCharm) IsUploaded() bool
IsUploaded mocks base method
type MockStateCharmMockRecorder ¶
type MockStateCharmMockRecorder struct {
// contains filtered or unexported fields
}
MockStateCharmMockRecorder is the mock recorder for MockStateCharm
func (*MockStateCharmMockRecorder) IsUploaded ¶
func (mr *MockStateCharmMockRecorder) IsUploaded() *gomock.Call
IsUploaded indicates an expected call of IsUploaded
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState
func (*MockStateMockRecorder) ControllerConfig ¶
func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call
ControllerConfig indicates an expected call of ControllerConfig
func (*MockStateMockRecorder) Model ¶
func (mr *MockStateMockRecorder) Model() *gomock.Call
Model indicates an expected call of Model
func (*MockStateMockRecorder) ModelUUID ¶
func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call
ModelUUID indicates an expected call of ModelUUID
func (*MockStateMockRecorder) MongoSession ¶
func (mr *MockStateMockRecorder) MongoSession() *gomock.Call
MongoSession indicates an expected call of MongoSession
func (*MockStateMockRecorder) PrepareCharmUpload ¶
func (mr *MockStateMockRecorder) PrepareCharmUpload(arg0 interface{}) *gomock.Call
PrepareCharmUpload indicates an expected call of PrepareCharmUpload
func (*MockStateMockRecorder) UpdateUploadedCharm ¶
func (mr *MockStateMockRecorder) UpdateUploadedCharm(arg0 interface{}) *gomock.Call
UpdateUploadedCharm indicates an expected call of UpdateUploadedCharm
type MockStateModel ¶
type MockStateModel struct {
// contains filtered or unexported fields
}
MockStateModel is a mock of StateModel interface
func NewMockStateModel ¶
func NewMockStateModel(ctrl *gomock.Controller) *MockStateModel
NewMockStateModel creates a new mock instance
func (*MockStateModel) EXPECT ¶
func (m *MockStateModel) EXPECT() *MockStateModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStateModel) ModelConfig ¶
func (m *MockStateModel) ModelConfig() (*config.Config, error)
ModelConfig mocks base method
type MockStateModelMockRecorder ¶
type MockStateModelMockRecorder struct {
// contains filtered or unexported fields
}
MockStateModelMockRecorder is the mock recorder for MockStateModel
func (*MockStateModelMockRecorder) ModelConfig ¶
func (mr *MockStateModelMockRecorder) ModelConfig() *gomock.Call
ModelConfig indicates an expected call of ModelConfig
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStorage) Get ¶
func (m *MockStorage) Get(arg0 string) (io.ReadCloser, int64, error)
Get mocks base method
func (*MockStorage) PutAndCheckHash ¶
PutAndCheckHash mocks base method
func (*MockStorage) Remove ¶
func (m *MockStorage) Remove(arg0 string) error
Remove mocks base method
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage
func (*MockStorageMockRecorder) Get ¶
func (mr *MockStorageMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockStorageMockRecorder) Put ¶
func (mr *MockStorageMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockStorageMockRecorder) PutAndCheckHash ¶
func (mr *MockStorageMockRecorder) PutAndCheckHash(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutAndCheckHash indicates an expected call of PutAndCheckHash
func (*MockStorageMockRecorder) Remove ¶
func (mr *MockStorageMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove