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 MockCharmHubClient
- type MockCharmHubClientMockRecorder
- type MockDownloadCommandAPI
- func (m *MockDownloadCommandAPI) Download(arg0 context.Context, arg1 *url.URL, arg2 string, ...) error
- func (m *MockDownloadCommandAPI) EXPECT() *MockDownloadCommandAPIMockRecorder
- func (m *MockDownloadCommandAPI) Info(arg0 context.Context, arg1 string, arg2 ...charmhub0.InfoOption) (transport.InfoResponse, error)
- func (m *MockDownloadCommandAPI) Refresh(arg0 context.Context, arg1 charmhub0.RefreshConfig) ([]transport.RefreshResponse, error)
- type MockDownloadCommandAPIMockRecorder
- func (mr *MockDownloadCommandAPIMockRecorder) Download(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDownloadCommandAPIMockRecorder) Info(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDownloadCommandAPIMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
- type MockFilesystem
- func (m *MockFilesystem) Create(arg0 string) (*os.File, error)
- func (m *MockFilesystem) EXPECT() *MockFilesystemMockRecorder
- func (m *MockFilesystem) Open(arg0 string) (modelcmd.ReadSeekCloser, error)
- func (m *MockFilesystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (*os.File, error)
- func (m *MockFilesystem) RemoveAll(arg0 string) error
- func (m *MockFilesystem) Stat(arg0 string) (os.FileInfo, error)
- type MockFilesystemMockRecorder
- func (mr *MockFilesystemMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockFilesystemMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *MockFilesystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFilesystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
- func (mr *MockFilesystemMockRecorder) Stat(arg0 interface{}) *gomock.Call
- type MockFindCommandAPI
- type MockFindCommandAPIMockRecorder
- type MockInfoCommandAPI
- type MockInfoCommandAPIMockRecorder
- type MockModelConfigClient
- type MockModelConfigClientMockRecorder
- type MockModelConfigGetter
- type MockModelConfigGetterMockRecorder
- type MockOSEnviron
- type MockOSEnvironMockRecorder
- type MockReadSeekCloser
- type MockReadSeekCloserMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCharmHubClient ¶
type MockCharmHubClient struct {
// contains filtered or unexported fields
}
MockCharmHubClient is a mock of CharmHubClient interface
func NewMockCharmHubClient ¶
func NewMockCharmHubClient(ctrl *gomock.Controller) *MockCharmHubClient
NewMockCharmHubClient creates a new mock instance
func (*MockCharmHubClient) EXPECT ¶
func (m *MockCharmHubClient) EXPECT() *MockCharmHubClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCharmHubClient) Refresh ¶
func (m *MockCharmHubClient) Refresh(arg0 context.Context, arg1 charmhub0.RefreshConfig) ([]transport.RefreshResponse, error)
Refresh mocks base method
type MockCharmHubClientMockRecorder ¶
type MockCharmHubClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmHubClientMockRecorder is the mock recorder for MockCharmHubClient
func (*MockCharmHubClientMockRecorder) Download ¶
func (mr *MockCharmHubClientMockRecorder) Download(arg0, arg1, arg2 interface{}) *gomock.Call
Download indicates an expected call of Download
func (*MockCharmHubClientMockRecorder) Refresh ¶
func (mr *MockCharmHubClientMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh
type MockDownloadCommandAPI ¶
type MockDownloadCommandAPI struct {
// contains filtered or unexported fields
}
MockDownloadCommandAPI is a mock of DownloadCommandAPI interface
func NewMockDownloadCommandAPI ¶
func NewMockDownloadCommandAPI(ctrl *gomock.Controller) *MockDownloadCommandAPI
NewMockDownloadCommandAPI creates a new mock instance
func (*MockDownloadCommandAPI) Download ¶
func (m *MockDownloadCommandAPI) Download(arg0 context.Context, arg1 *url.URL, arg2 string, arg3 ...charmhub0.DownloadOption) error
Download mocks base method
func (*MockDownloadCommandAPI) EXPECT ¶
func (m *MockDownloadCommandAPI) EXPECT() *MockDownloadCommandAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDownloadCommandAPI) Info ¶
func (m *MockDownloadCommandAPI) Info(arg0 context.Context, arg1 string, arg2 ...charmhub0.InfoOption) (transport.InfoResponse, error)
Info mocks base method
func (*MockDownloadCommandAPI) Refresh ¶
func (m *MockDownloadCommandAPI) Refresh(arg0 context.Context, arg1 charmhub0.RefreshConfig) ([]transport.RefreshResponse, error)
Refresh mocks base method
type MockDownloadCommandAPIMockRecorder ¶
type MockDownloadCommandAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockDownloadCommandAPIMockRecorder is the mock recorder for MockDownloadCommandAPI
func (*MockDownloadCommandAPIMockRecorder) Download ¶
func (mr *MockDownloadCommandAPIMockRecorder) Download(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Download indicates an expected call of Download
func (*MockDownloadCommandAPIMockRecorder) Info ¶
func (mr *MockDownloadCommandAPIMockRecorder) Info(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Info indicates an expected call of Info
func (*MockDownloadCommandAPIMockRecorder) Refresh ¶
func (mr *MockDownloadCommandAPIMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh
type MockFilesystem ¶
type MockFilesystem struct {
// contains filtered or unexported fields
}
MockFilesystem is a mock of Filesystem interface
func NewMockFilesystem ¶
func NewMockFilesystem(ctrl *gomock.Controller) *MockFilesystem
NewMockFilesystem creates a new mock instance
func (*MockFilesystem) Create ¶
func (m *MockFilesystem) Create(arg0 string) (*os.File, error)
Create mocks base method
func (*MockFilesystem) EXPECT ¶
func (m *MockFilesystem) EXPECT() *MockFilesystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFilesystem) Open ¶
func (m *MockFilesystem) Open(arg0 string) (modelcmd.ReadSeekCloser, error)
Open mocks base method
func (*MockFilesystem) RemoveAll ¶
func (m *MockFilesystem) RemoveAll(arg0 string) error
RemoveAll mocks base method
type MockFilesystemMockRecorder ¶
type MockFilesystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFilesystemMockRecorder is the mock recorder for MockFilesystem
func (*MockFilesystemMockRecorder) Create ¶
func (mr *MockFilesystemMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockFilesystemMockRecorder) Open ¶
func (mr *MockFilesystemMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open
func (*MockFilesystemMockRecorder) OpenFile ¶
func (mr *MockFilesystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
OpenFile indicates an expected call of OpenFile
func (*MockFilesystemMockRecorder) RemoveAll ¶
func (mr *MockFilesystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
RemoveAll indicates an expected call of RemoveAll
func (*MockFilesystemMockRecorder) Stat ¶
func (mr *MockFilesystemMockRecorder) Stat(arg0 interface{}) *gomock.Call
Stat indicates an expected call of Stat
type MockFindCommandAPI ¶
type MockFindCommandAPI struct {
// contains filtered or unexported fields
}
MockFindCommandAPI is a mock of FindCommandAPI interface
func NewMockFindCommandAPI ¶
func NewMockFindCommandAPI(ctrl *gomock.Controller) *MockFindCommandAPI
NewMockFindCommandAPI creates a new mock instance
func (*MockFindCommandAPI) Close ¶
func (m *MockFindCommandAPI) Close() error
Close mocks base method
func (*MockFindCommandAPI) EXPECT ¶
func (m *MockFindCommandAPI) EXPECT() *MockFindCommandAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFindCommandAPI) Find ¶
func (m *MockFindCommandAPI) Find(arg0 string, arg1 ...charmhub.FindOption) ([]charmhub.FindResponse, error)
Find mocks base method
type MockFindCommandAPIMockRecorder ¶
type MockFindCommandAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockFindCommandAPIMockRecorder is the mock recorder for MockFindCommandAPI
func (*MockFindCommandAPIMockRecorder) Close ¶
func (mr *MockFindCommandAPIMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockFindCommandAPIMockRecorder) Find ¶
func (mr *MockFindCommandAPIMockRecorder) Find(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Find indicates an expected call of Find
type MockInfoCommandAPI ¶
type MockInfoCommandAPI struct {
// contains filtered or unexported fields
}
MockInfoCommandAPI is a mock of InfoCommandAPI interface
func NewMockInfoCommandAPI ¶
func NewMockInfoCommandAPI(ctrl *gomock.Controller) *MockInfoCommandAPI
NewMockInfoCommandAPI creates a new mock instance
func (*MockInfoCommandAPI) Close ¶
func (m *MockInfoCommandAPI) Close() error
Close mocks base method
func (*MockInfoCommandAPI) EXPECT ¶
func (m *MockInfoCommandAPI) EXPECT() *MockInfoCommandAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInfoCommandAPI) Info ¶
func (m *MockInfoCommandAPI) Info(arg0 string, arg1 ...charmhub.InfoOption) (charmhub.InfoResponse, error)
Info mocks base method
type MockInfoCommandAPIMockRecorder ¶
type MockInfoCommandAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockInfoCommandAPIMockRecorder is the mock recorder for MockInfoCommandAPI
func (*MockInfoCommandAPIMockRecorder) Close ¶
func (mr *MockInfoCommandAPIMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockInfoCommandAPIMockRecorder) Info ¶
func (mr *MockInfoCommandAPIMockRecorder) Info(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Info indicates an expected call of Info
type MockModelConfigClient ¶
type MockModelConfigClient struct {
// contains filtered or unexported fields
}
MockModelConfigClient is a mock of ModelConfigClient interface
func NewMockModelConfigClient ¶
func NewMockModelConfigClient(ctrl *gomock.Controller) *MockModelConfigClient
NewMockModelConfigClient creates a new mock instance
func (*MockModelConfigClient) Close ¶
func (m *MockModelConfigClient) Close() error
Close mocks base method
func (*MockModelConfigClient) EXPECT ¶
func (m *MockModelConfigClient) EXPECT() *MockModelConfigClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockModelConfigClient) ModelGet ¶
func (m *MockModelConfigClient) ModelGet() (map[string]interface{}, error)
ModelGet mocks base method
type MockModelConfigClientMockRecorder ¶
type MockModelConfigClientMockRecorder struct {
// contains filtered or unexported fields
}
MockModelConfigClientMockRecorder is the mock recorder for MockModelConfigClient
func (*MockModelConfigClientMockRecorder) Close ¶
func (mr *MockModelConfigClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockModelConfigClientMockRecorder) ModelGet ¶
func (mr *MockModelConfigClientMockRecorder) ModelGet() *gomock.Call
ModelGet indicates an expected call of ModelGet
type MockModelConfigGetter ¶
type MockModelConfigGetter struct {
// contains filtered or unexported fields
}
MockModelConfigGetter is a mock of ModelConfigGetter interface
func NewMockModelConfigGetter ¶
func NewMockModelConfigGetter(ctrl *gomock.Controller) *MockModelConfigGetter
NewMockModelConfigGetter creates a new mock instance
func (*MockModelConfigGetter) EXPECT ¶
func (m *MockModelConfigGetter) EXPECT() *MockModelConfigGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockModelConfigGetter) ModelGet ¶
func (m *MockModelConfigGetter) ModelGet() (map[string]interface{}, error)
ModelGet mocks base method
type MockModelConfigGetterMockRecorder ¶
type MockModelConfigGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockModelConfigGetterMockRecorder is the mock recorder for MockModelConfigGetter
func (*MockModelConfigGetterMockRecorder) ModelGet ¶
func (mr *MockModelConfigGetterMockRecorder) ModelGet() *gomock.Call
ModelGet indicates an expected call of ModelGet
type MockOSEnviron ¶
type MockOSEnviron struct {
// contains filtered or unexported fields
}
MockOSEnviron is a mock of OSEnviron interface
func NewMockOSEnviron ¶
func NewMockOSEnviron(ctrl *gomock.Controller) *MockOSEnviron
NewMockOSEnviron creates a new mock instance
func (*MockOSEnviron) EXPECT ¶
func (m *MockOSEnviron) EXPECT() *MockOSEnvironMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOSEnviron) Getenv ¶
func (m *MockOSEnviron) Getenv(arg0 string) string
Getenv mocks base method
func (*MockOSEnviron) IsTerminal ¶
func (m *MockOSEnviron) IsTerminal() bool
IsTerminal mocks base method
type MockOSEnvironMockRecorder ¶
type MockOSEnvironMockRecorder struct {
// contains filtered or unexported fields
}
MockOSEnvironMockRecorder is the mock recorder for MockOSEnviron
func (*MockOSEnvironMockRecorder) Getenv ¶
func (mr *MockOSEnvironMockRecorder) Getenv(arg0 interface{}) *gomock.Call
Getenv indicates an expected call of Getenv
func (*MockOSEnvironMockRecorder) IsTerminal ¶
func (mr *MockOSEnvironMockRecorder) IsTerminal() *gomock.Call
IsTerminal indicates an expected call of IsTerminal
type MockReadSeekCloser ¶
type MockReadSeekCloser struct {
// contains filtered or unexported fields
}
MockReadSeekCloser is a mock of ReadSeekCloser interface
func NewMockReadSeekCloser ¶
func NewMockReadSeekCloser(ctrl *gomock.Controller) *MockReadSeekCloser
NewMockReadSeekCloser creates a new mock instance
func (*MockReadSeekCloser) Close ¶
func (m *MockReadSeekCloser) Close() error
Close mocks base method
func (*MockReadSeekCloser) EXPECT ¶
func (m *MockReadSeekCloser) EXPECT() *MockReadSeekCloserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockReadSeekCloserMockRecorder ¶
type MockReadSeekCloserMockRecorder struct {
// contains filtered or unexported fields
}
MockReadSeekCloserMockRecorder is the mock recorder for MockReadSeekCloser
func (*MockReadSeekCloserMockRecorder) Close ¶
func (mr *MockReadSeekCloserMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockReadSeekCloserMockRecorder) Read ¶
func (mr *MockReadSeekCloserMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockReadSeekCloserMockRecorder) Seek ¶
func (mr *MockReadSeekCloserMockRecorder) Seek(arg0, arg1 interface{}) *gomock.Call
Seek indicates an expected call of Seek