Documentation
¶
Index ¶
- type Downloader
- func (_mock *Downloader) Describe(ctx context.Context, digest string) (*casclient.ResourceInfo, error)
- func (_mock *Downloader) Download(ctx context.Context, w io.Writer, digest string) error
- func (_m *Downloader) EXPECT() *Downloader_Expecter
- func (_mock *Downloader) IsReady(ctx context.Context) (bool, error)
- type DownloaderUploader
- func (_mock *DownloaderUploader) Describe(ctx context.Context, digest string) (*casclient.ResourceInfo, error)
- func (_mock *DownloaderUploader) Download(ctx context.Context, w io.Writer, digest string) error
- func (_m *DownloaderUploader) EXPECT() *DownloaderUploader_Expecter
- func (_mock *DownloaderUploader) IsReady(ctx context.Context) (bool, error)
- func (_mock *DownloaderUploader) Upload(ctx context.Context, r io.Reader, filename string, digest string) (*casclient.UpDownStatus, error)
- func (_mock *DownloaderUploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)
- type DownloaderUploader_Describe_Call
- func (_c *DownloaderUploader_Describe_Call) Return(resourceInfo *casclient.ResourceInfo, err error) *DownloaderUploader_Describe_Call
- func (_c *DownloaderUploader_Describe_Call) Run(run func(ctx context.Context, digest string)) *DownloaderUploader_Describe_Call
- func (_c *DownloaderUploader_Describe_Call) RunAndReturn(run func(ctx context.Context, digest string) (*casclient.ResourceInfo, error)) *DownloaderUploader_Describe_Call
- type DownloaderUploader_Download_Call
- func (_c *DownloaderUploader_Download_Call) Return(err error) *DownloaderUploader_Download_Call
- func (_c *DownloaderUploader_Download_Call) Run(run func(ctx context.Context, w io.Writer, digest string)) *DownloaderUploader_Download_Call
- func (_c *DownloaderUploader_Download_Call) RunAndReturn(run func(ctx context.Context, w io.Writer, digest string) error) *DownloaderUploader_Download_Call
- type DownloaderUploader_Expecter
- func (_e *DownloaderUploader_Expecter) Describe(ctx any, digest any) *DownloaderUploader_Describe_Call
- func (_e *DownloaderUploader_Expecter) Download(ctx any, w any, digest any) *DownloaderUploader_Download_Call
- func (_e *DownloaderUploader_Expecter) IsReady(ctx any) *DownloaderUploader_IsReady_Call
- func (_e *DownloaderUploader_Expecter) Upload(ctx any, r any, filename any, digest any) *DownloaderUploader_Upload_Call
- func (_e *DownloaderUploader_Expecter) UploadFile(ctx any, filepath any) *DownloaderUploader_UploadFile_Call
- type DownloaderUploader_IsReady_Call
- func (_c *DownloaderUploader_IsReady_Call) Return(b bool, err error) *DownloaderUploader_IsReady_Call
- func (_c *DownloaderUploader_IsReady_Call) Run(run func(ctx context.Context)) *DownloaderUploader_IsReady_Call
- func (_c *DownloaderUploader_IsReady_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *DownloaderUploader_IsReady_Call
- type DownloaderUploader_UploadFile_Call
- func (_c *DownloaderUploader_UploadFile_Call) Return(upDownStatus *casclient.UpDownStatus, err error) *DownloaderUploader_UploadFile_Call
- func (_c *DownloaderUploader_UploadFile_Call) Run(run func(ctx context.Context, filepath string)) *DownloaderUploader_UploadFile_Call
- func (_c *DownloaderUploader_UploadFile_Call) RunAndReturn(...) *DownloaderUploader_UploadFile_Call
- type DownloaderUploader_Upload_Call
- func (_c *DownloaderUploader_Upload_Call) Return(upDownStatus *casclient.UpDownStatus, err error) *DownloaderUploader_Upload_Call
- func (_c *DownloaderUploader_Upload_Call) Run(run func(ctx context.Context, r io.Reader, filename string, digest string)) *DownloaderUploader_Upload_Call
- func (_c *DownloaderUploader_Upload_Call) RunAndReturn(...) *DownloaderUploader_Upload_Call
- type Downloader_Describe_Call
- func (_c *Downloader_Describe_Call) Return(resourceInfo *casclient.ResourceInfo, err error) *Downloader_Describe_Call
- func (_c *Downloader_Describe_Call) Run(run func(ctx context.Context, digest string)) *Downloader_Describe_Call
- func (_c *Downloader_Describe_Call) RunAndReturn(run func(ctx context.Context, digest string) (*casclient.ResourceInfo, error)) *Downloader_Describe_Call
- type Downloader_Download_Call
- func (_c *Downloader_Download_Call) Return(err error) *Downloader_Download_Call
- func (_c *Downloader_Download_Call) Run(run func(ctx context.Context, w io.Writer, digest string)) *Downloader_Download_Call
- func (_c *Downloader_Download_Call) RunAndReturn(run func(ctx context.Context, w io.Writer, digest string) error) *Downloader_Download_Call
- type Downloader_Expecter
- type Downloader_IsReady_Call
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
Downloader is an autogenerated mock type for the Downloader type
func NewDownloader ¶
func NewDownloader(t interface {
mock.TestingT
Cleanup(func())
}) *Downloader
NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Downloader) Describe ¶ added in v1.108.5
func (_mock *Downloader) Describe(ctx context.Context, digest string) (*casclient.ResourceInfo, error)
Describe provides a mock function for the type Downloader
func (*Downloader) EXPECT ¶ added in v1.108.5
func (_m *Downloader) EXPECT() *Downloader_Expecter
type DownloaderUploader ¶
DownloaderUploader is an autogenerated mock type for the DownloaderUploader type
func NewDownloaderUploader ¶
func NewDownloaderUploader(t interface {
mock.TestingT
Cleanup(func())
}) *DownloaderUploader
NewDownloaderUploader creates a new instance of DownloaderUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DownloaderUploader) Describe ¶ added in v1.108.5
func (_mock *DownloaderUploader) Describe(ctx context.Context, digest string) (*casclient.ResourceInfo, error)
Describe provides a mock function for the type DownloaderUploader
func (*DownloaderUploader) Download ¶
Download provides a mock function for the type DownloaderUploader
func (*DownloaderUploader) EXPECT ¶ added in v1.108.5
func (_m *DownloaderUploader) EXPECT() *DownloaderUploader_Expecter
func (*DownloaderUploader) IsReady ¶
func (_mock *DownloaderUploader) IsReady(ctx context.Context) (bool, error)
IsReady provides a mock function for the type DownloaderUploader
func (*DownloaderUploader) Upload ¶
func (_mock *DownloaderUploader) Upload(ctx context.Context, r io.Reader, filename string, digest string) (*casclient.UpDownStatus, error)
Upload provides a mock function for the type DownloaderUploader
func (*DownloaderUploader) UploadFile ¶
func (_mock *DownloaderUploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)
UploadFile provides a mock function for the type DownloaderUploader
type DownloaderUploader_Describe_Call ¶ added in v1.108.5
DownloaderUploader_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*DownloaderUploader_Describe_Call) Return ¶ added in v1.108.5
func (_c *DownloaderUploader_Describe_Call) Return(resourceInfo *casclient.ResourceInfo, err error) *DownloaderUploader_Describe_Call
func (*DownloaderUploader_Describe_Call) Run ¶ added in v1.108.5
func (_c *DownloaderUploader_Describe_Call) Run(run func(ctx context.Context, digest string)) *DownloaderUploader_Describe_Call
func (*DownloaderUploader_Describe_Call) RunAndReturn ¶ added in v1.108.5
func (_c *DownloaderUploader_Describe_Call) RunAndReturn(run func(ctx context.Context, digest string) (*casclient.ResourceInfo, error)) *DownloaderUploader_Describe_Call
type DownloaderUploader_Download_Call ¶ added in v1.108.5
DownloaderUploader_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*DownloaderUploader_Download_Call) Return ¶ added in v1.108.5
func (_c *DownloaderUploader_Download_Call) Return(err error) *DownloaderUploader_Download_Call
func (*DownloaderUploader_Download_Call) Run ¶ added in v1.108.5
func (_c *DownloaderUploader_Download_Call) Run(run func(ctx context.Context, w io.Writer, digest string)) *DownloaderUploader_Download_Call
func (*DownloaderUploader_Download_Call) RunAndReturn ¶ added in v1.108.5
func (_c *DownloaderUploader_Download_Call) RunAndReturn(run func(ctx context.Context, w io.Writer, digest string) error) *DownloaderUploader_Download_Call
type DownloaderUploader_Expecter ¶ added in v1.108.5
type DownloaderUploader_Expecter struct {
// contains filtered or unexported fields
}
func (*DownloaderUploader_Expecter) Describe ¶ added in v1.108.5
func (_e *DownloaderUploader_Expecter) Describe(ctx any, digest any) *DownloaderUploader_Describe_Call
Describe is a helper method to define mock.On call
- ctx context.Context
- digest string
func (*DownloaderUploader_Expecter) Download ¶ added in v1.108.5
func (_e *DownloaderUploader_Expecter) Download(ctx any, w any, digest any) *DownloaderUploader_Download_Call
Download is a helper method to define mock.On call
- ctx context.Context
- w io.Writer
- digest string
func (*DownloaderUploader_Expecter) IsReady ¶ added in v1.108.5
func (_e *DownloaderUploader_Expecter) IsReady(ctx any) *DownloaderUploader_IsReady_Call
IsReady is a helper method to define mock.On call
- ctx context.Context
func (*DownloaderUploader_Expecter) Upload ¶ added in v1.108.5
func (_e *DownloaderUploader_Expecter) Upload(ctx any, r any, filename any, digest any) *DownloaderUploader_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- r io.Reader
- filename string
- digest string
func (*DownloaderUploader_Expecter) UploadFile ¶ added in v1.108.5
func (_e *DownloaderUploader_Expecter) UploadFile(ctx any, filepath any) *DownloaderUploader_UploadFile_Call
UploadFile is a helper method to define mock.On call
- ctx context.Context
- filepath string
type DownloaderUploader_IsReady_Call ¶ added in v1.108.5
DownloaderUploader_IsReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsReady'
func (*DownloaderUploader_IsReady_Call) Return ¶ added in v1.108.5
func (_c *DownloaderUploader_IsReady_Call) Return(b bool, err error) *DownloaderUploader_IsReady_Call
func (*DownloaderUploader_IsReady_Call) Run ¶ added in v1.108.5
func (_c *DownloaderUploader_IsReady_Call) Run(run func(ctx context.Context)) *DownloaderUploader_IsReady_Call
func (*DownloaderUploader_IsReady_Call) RunAndReturn ¶ added in v1.108.5
func (_c *DownloaderUploader_IsReady_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *DownloaderUploader_IsReady_Call
type DownloaderUploader_UploadFile_Call ¶ added in v1.108.5
DownloaderUploader_UploadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadFile'
func (*DownloaderUploader_UploadFile_Call) Return ¶ added in v1.108.5
func (_c *DownloaderUploader_UploadFile_Call) Return(upDownStatus *casclient.UpDownStatus, err error) *DownloaderUploader_UploadFile_Call
func (*DownloaderUploader_UploadFile_Call) Run ¶ added in v1.108.5
func (_c *DownloaderUploader_UploadFile_Call) Run(run func(ctx context.Context, filepath string)) *DownloaderUploader_UploadFile_Call
func (*DownloaderUploader_UploadFile_Call) RunAndReturn ¶ added in v1.108.5
func (_c *DownloaderUploader_UploadFile_Call) RunAndReturn(run func(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)) *DownloaderUploader_UploadFile_Call
type DownloaderUploader_Upload_Call ¶ added in v1.108.5
DownloaderUploader_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*DownloaderUploader_Upload_Call) Return ¶ added in v1.108.5
func (_c *DownloaderUploader_Upload_Call) Return(upDownStatus *casclient.UpDownStatus, err error) *DownloaderUploader_Upload_Call
func (*DownloaderUploader_Upload_Call) Run ¶ added in v1.108.5
func (_c *DownloaderUploader_Upload_Call) Run(run func(ctx context.Context, r io.Reader, filename string, digest string)) *DownloaderUploader_Upload_Call
func (*DownloaderUploader_Upload_Call) RunAndReturn ¶ added in v1.108.5
func (_c *DownloaderUploader_Upload_Call) RunAndReturn(run func(ctx context.Context, r io.Reader, filename string, digest string) (*casclient.UpDownStatus, error)) *DownloaderUploader_Upload_Call
type Downloader_Describe_Call ¶ added in v1.108.5
Downloader_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*Downloader_Describe_Call) Return ¶ added in v1.108.5
func (_c *Downloader_Describe_Call) Return(resourceInfo *casclient.ResourceInfo, err error) *Downloader_Describe_Call
func (*Downloader_Describe_Call) Run ¶ added in v1.108.5
func (_c *Downloader_Describe_Call) Run(run func(ctx context.Context, digest string)) *Downloader_Describe_Call
func (*Downloader_Describe_Call) RunAndReturn ¶ added in v1.108.5
func (_c *Downloader_Describe_Call) RunAndReturn(run func(ctx context.Context, digest string) (*casclient.ResourceInfo, error)) *Downloader_Describe_Call
type Downloader_Download_Call ¶ added in v1.108.5
Downloader_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*Downloader_Download_Call) Return ¶ added in v1.108.5
func (_c *Downloader_Download_Call) Return(err error) *Downloader_Download_Call
func (*Downloader_Download_Call) Run ¶ added in v1.108.5
func (_c *Downloader_Download_Call) Run(run func(ctx context.Context, w io.Writer, digest string)) *Downloader_Download_Call
func (*Downloader_Download_Call) RunAndReturn ¶ added in v1.108.5
func (_c *Downloader_Download_Call) RunAndReturn(run func(ctx context.Context, w io.Writer, digest string) error) *Downloader_Download_Call
type Downloader_Expecter ¶ added in v1.108.5
type Downloader_Expecter struct {
// contains filtered or unexported fields
}
func (*Downloader_Expecter) Describe ¶ added in v1.108.5
func (_e *Downloader_Expecter) Describe(ctx any, digest any) *Downloader_Describe_Call
Describe is a helper method to define mock.On call
- ctx context.Context
- digest string
func (*Downloader_Expecter) Download ¶ added in v1.108.5
func (_e *Downloader_Expecter) Download(ctx any, w any, digest any) *Downloader_Download_Call
Download is a helper method to define mock.On call
- ctx context.Context
- w io.Writer
- digest string
func (*Downloader_Expecter) IsReady ¶ added in v1.108.5
func (_e *Downloader_Expecter) IsReady(ctx any) *Downloader_IsReady_Call
IsReady is a helper method to define mock.On call
- ctx context.Context
type Downloader_IsReady_Call ¶ added in v1.108.5
Downloader_IsReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsReady'
func (*Downloader_IsReady_Call) Return ¶ added in v1.108.5
func (_c *Downloader_IsReady_Call) Return(b bool, err error) *Downloader_IsReady_Call
func (*Downloader_IsReady_Call) Run ¶ added in v1.108.5
func (_c *Downloader_IsReady_Call) Run(run func(ctx context.Context)) *Downloader_IsReady_Call
func (*Downloader_IsReady_Call) RunAndReturn ¶ added in v1.108.5
func (_c *Downloader_IsReady_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *Downloader_IsReady_Call
type Uploader ¶
Uploader is an autogenerated mock type for the Uploader type
func NewUploader ¶
func NewUploader(t mockConstructorTestingTNewUploader) *Uploader
NewUploader creates a new instance of Uploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Uploader) Upload ¶
func (_m *Uploader) Upload(ctx context.Context, r io.Reader, digest string, fileName string) (*casclient.UpDownStatus, error)
Upload provides a mock function with given fields: ctx, r, digest, fileName
func (*Uploader) UploadFile ¶
func (_m *Uploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)
UploadFile provides a mock function with given fields: ctx, filepath