mocks

package
v0.119.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	mock.Mock
}

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.

func (*Downloader) Download

func (_m *Downloader) Download(ctx context.Context, w io.Writer, digest string) error

Download provides a mock function with given fields: ctx, w, digest

func (*Downloader) IsReady added in v0.8.96

func (_m *Downloader) IsReady(ctx context.Context) (bool, error)

IsReady provides a mock function with given fields: ctx

type DownloaderUploader

type DownloaderUploader struct {
	mock.Mock
}

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

func (_m *DownloaderUploader) Download(ctx context.Context, w io.Writer, digest string) error

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

type Uploader struct {
	mock.Mock
}

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) IsReady added in v0.8.96

func (_m *Uploader) IsReady(ctx context.Context) (bool, error)

IsReady provides a mock function with given fields: ctx

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL