{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mocks\n\n## Types\n\n```go\ntype Downloader struct {\n\tmock.Mock\n}\n```\nDownloader is an autogenerated mock type for the Downloader type\n\n```go\nfunc NewDownloader(t interface {\n\tmock.TestingT\n\tCleanup(func())\n}) *Downloader\n```\nNewDownloader 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.\n\n```go\nfunc (_mock *Downloader) Download(ctx context.Context, w io.Writer, digest string) error\n```\nDownload provides a mock function for the type Downloader\n\n```go\nfunc (_m *Downloader) EXPECT() *Downloader_Expecter\n```\n\n```go\nfunc (_mock *Downloader) IsReady(ctx context.Context) (bool, error)\n```\nIsReady provides a mock function for the type Downloader\n\n```go\ntype DownloaderUploader struct {\n\tmock.Mock\n}\n```\nDownloaderUploader is an autogenerated mock type for the DownloaderUploader type\n\n```go\nfunc NewDownloaderUploader(t interface {\n\tmock.TestingT\n\tCleanup(func())\n}) *DownloaderUploader\n```\nNewDownloaderUploader 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.\n\n```go\nfunc (_mock *DownloaderUploader) Download(ctx context.Context, w io.Writer, digest string) error\n```\nDownload provides a mock function for the type DownloaderUploader\n\n```go\nfunc (_m *DownloaderUploader) EXPECT() *DownloaderUploader_Expecter\n```\n\n```go\nfunc (_mock *DownloaderUploader) IsReady(ctx context.Context) (bool, error)\n```\nIsReady provides a mock function for the type DownloaderUploader\n\n```go\nfunc (_mock *DownloaderUploader) Upload(ctx context.Context, r io.Reader, filename string, digest string) (*casclient.UpDownStatus, error)\n```\nUpload provides a mock function for the type DownloaderUploader\n\n```go\nfunc (_mock *DownloaderUploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)\n```\nUploadFile provides a mock function for the type DownloaderUploader\n\n```go\ntype DownloaderUploader_Download_Call struct {\n\t*mock.Call\n}\n```\nDownloaderUploader\\_Download\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Download'\n\n```go\nfunc (_c *DownloaderUploader_Download_Call) Return(err error) *DownloaderUploader_Download_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_Download_Call) Run(run func(ctx context.Context, w io.Writer, digest string)) *DownloaderUploader_Download_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_Download_Call) RunAndReturn(run func(ctx context.Context, w io.Writer, digest string) error) *DownloaderUploader_Download_Call\n```\n\n```go\ntype DownloaderUploader_Expecter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (_e *DownloaderUploader_Expecter) Download(ctx any, w any, digest any) *DownloaderUploader_Download_Call\n```\nDownload is a helper method to define mock.On call\n\n  - ctx context.Context\n  - w io.Writer\n  - digest string\n\n```go\nfunc (_e *DownloaderUploader_Expecter) IsReady(ctx any) *DownloaderUploader_IsReady_Call\n```\nIsReady is a helper method to define mock.On call\n\n  - ctx context.Context\n\n```go\nfunc (_e *DownloaderUploader_Expecter) Upload(ctx any, r any, filename any, digest any) *DownloaderUploader_Upload_Call\n```\nUpload is a helper method to define mock.On call\n\n  - ctx context.Context\n  - r io.Reader\n  - filename string\n  - digest string\n\n```go\nfunc (_e *DownloaderUploader_Expecter) UploadFile(ctx any, filepath any) *DownloaderUploader_UploadFile_Call\n```\nUploadFile is a helper method to define mock.On call\n\n  - ctx context.Context\n  - filepath string\n\n```go\ntype DownloaderUploader_IsReady_Call struct {\n\t*mock.Call\n}\n```\nDownloaderUploader\\_IsReady\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'IsReady'\n\n```go\nfunc (_c *DownloaderUploader_IsReady_Call) Return(b bool, err error) *DownloaderUploader_IsReady_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_IsReady_Call) Run(run func(ctx context.Context)) *DownloaderUploader_IsReady_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_IsReady_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *DownloaderUploader_IsReady_Call\n```\n\n```go\ntype DownloaderUploader_UploadFile_Call struct {\n\t*mock.Call\n}\n```\nDownloaderUploader\\_UploadFile\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'UploadFile'\n\n```go\nfunc (_c *DownloaderUploader_UploadFile_Call) Return(upDownStatus *casclient.UpDownStatus, err error) *DownloaderUploader_UploadFile_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_UploadFile_Call) Run(run func(ctx context.Context, filepath string)) *DownloaderUploader_UploadFile_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_UploadFile_Call) RunAndReturn(run func(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)) *DownloaderUploader_UploadFile_Call\n```\n\n```go\ntype DownloaderUploader_Upload_Call struct {\n\t*mock.Call\n}\n```\nDownloaderUploader\\_Upload\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'\n\n```go\nfunc (_c *DownloaderUploader_Upload_Call) Return(upDownStatus *casclient.UpDownStatus, err error) *DownloaderUploader_Upload_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_Upload_Call) Run(run func(ctx context.Context, r io.Reader, filename string, digest string)) *DownloaderUploader_Upload_Call\n```\n\n```go\nfunc (_c *DownloaderUploader_Upload_Call) RunAndReturn(run func(ctx context.Context, r io.Reader, filename string, digest string) (*casclient.UpDownStatus, error)) *DownloaderUploader_Upload_Call\n```\n\n```go\ntype Downloader_Download_Call struct {\n\t*mock.Call\n}\n```\nDownloader\\_Download\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Download'\n\n```go\nfunc (_c *Downloader_Download_Call) Return(err error) *Downloader_Download_Call\n```\n\n```go\nfunc (_c *Downloader_Download_Call) Run(run func(ctx context.Context, w io.Writer, digest string)) *Downloader_Download_Call\n```\n\n```go\nfunc (_c *Downloader_Download_Call) RunAndReturn(run func(ctx context.Context, w io.Writer, digest string) error) *Downloader_Download_Call\n```\n\n```go\ntype Downloader_Expecter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (_e *Downloader_Expecter) Download(ctx any, w any, digest any) *Downloader_Download_Call\n```\nDownload is a helper method to define mock.On call\n\n  - ctx context.Context\n  - w io.Writer\n  - digest string\n\n```go\nfunc (_e *Downloader_Expecter) IsReady(ctx any) *Downloader_IsReady_Call\n```\nIsReady is a helper method to define mock.On call\n\n  - ctx context.Context\n\n```go\ntype Downloader_IsReady_Call struct {\n\t*mock.Call\n}\n```\nDownloader\\_IsReady\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'IsReady'\n\n```go\nfunc (_c *Downloader_IsReady_Call) Return(b bool, err error) *Downloader_IsReady_Call\n```\n\n```go\nfunc (_c *Downloader_IsReady_Call) Run(run func(ctx context.Context)) *Downloader_IsReady_Call\n```\n\n```go\nfunc (_c *Downloader_IsReady_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *Downloader_IsReady_Call\n```\n\n```go\ntype Uploader struct {\n\tmock.Mock\n}\n```\nUploader is an autogenerated mock type for the Uploader type\n\n```go\nfunc NewUploader(t mockConstructorTestingTNewUploader) *Uploader\n```\nNewUploader creates a new instance of Uploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.\n\n```go\nfunc (_m *Uploader) IsReady(ctx context.Context) (bool, error)\n```\nIsReady provides a mock function with given fields: ctx\n\n```go\nfunc (_m *Uploader) Upload(ctx context.Context, r io.Reader, digest string, fileName string) (*casclient.UpDownStatus, error)\n```\nUpload provides a mock function with given fields: ctx, r, digest, fileName\n\n```go\nfunc (_m *Uploader) UploadFile(ctx context.Context, filepath string) (*casclient.UpDownStatus, error)\n```\nUploadFile provides a mock function with given fields: ctx, filepath\n\n","path":"github.com/chainloop-dev/chainloop/pkg/casclient/mocks","name":"mocks","synopsis":"","isRedistributable":true}
