Documentation ¶
Index ¶
- type Downloader
- type DownloaderUploader
- func (_m *DownloaderUploader) Download(ctx context.Context, w io.Writer, digest string) error
- func (_m *DownloaderUploader) IsReady(ctx context.Context) (bool, error)
- func (_m *DownloaderUploader) Upload(ctx context.Context, r io.Reader, digest string, fileName string) (*casclient.UpDownStatus, error)
- func (_m *DownloaderUploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)
- 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 mockConstructorTestingTNewDownloader) *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.
type DownloaderUploader ¶
DownloaderUploader is an autogenerated mock type for the DownloaderUploader type
func NewDownloaderUploader ¶
func NewDownloaderUploader(t mockConstructorTestingTNewDownloaderUploader) *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.
func (*DownloaderUploader) Download ¶
Download provides a mock function with given fields: ctx, w, digest
func (*DownloaderUploader) IsReady ¶ added in v0.8.96
func (_m *DownloaderUploader) IsReady(ctx context.Context) (bool, error)
IsReady provides a mock function with given fields: ctx
func (*DownloaderUploader) Upload ¶
func (_m *DownloaderUploader) 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 (*DownloaderUploader) UploadFile ¶
func (_m *DownloaderUploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)
UploadFile provides a mock function with given fields: ctx, filepath
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