Documentation ¶
Index ¶
- type Describer
- type Downloader
- type Provider
- type Uploader
- type UploaderDownloader
- func (_m *UploaderDownloader) CheckWritePermissions(ctx context.Context) error
- func (_m *UploaderDownloader) Describe(ctx context.Context, digest string) (*v1.CASResource, error)
- func (_m *UploaderDownloader) Download(ctx context.Context, w io.Writer, digest string) error
- func (_m *UploaderDownloader) Exists(ctx context.Context, digest string) (bool, error)
- func (_m *UploaderDownloader) Upload(ctx context.Context, r io.Reader, resource *v1.CASResource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Describer ¶
Describer is an autogenerated mock type for the Describer type
func NewDescriber ¶
func NewDescriber(t mockConstructorTestingTNewDescriber) *Describer
NewDescriber creates a new instance of Describer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
func NewProvider(t mockConstructorTestingTNewProvider) *Provider
NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Provider) FromCredentials ¶
func (_m *Provider) FromCredentials(ctx context.Context, secretName string) (backend.UploaderDownloader, error)
FromCredentials provides a mock function with given fields: ctx, secretName
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) CheckWritePermissions ¶
CheckWritePermissions provides a mock function with given fields: ctx
type UploaderDownloader ¶
UploaderDownloader is an autogenerated mock type for the UploaderDownloader type
func NewUploaderDownloader ¶
func NewUploaderDownloader(t mockConstructorTestingTNewUploaderDownloader) *UploaderDownloader
NewUploaderDownloader creates a new instance of UploaderDownloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UploaderDownloader) CheckWritePermissions ¶
func (_m *UploaderDownloader) CheckWritePermissions(ctx context.Context) error
CheckWritePermissions provides a mock function with given fields: ctx
func (*UploaderDownloader) Describe ¶
func (_m *UploaderDownloader) Describe(ctx context.Context, digest string) (*v1.CASResource, error)
Describe provides a mock function with given fields: ctx, digest
func (*UploaderDownloader) Download ¶
Download provides a mock function with given fields: ctx, w, digest
func (*UploaderDownloader) Upload ¶
func (_m *UploaderDownloader) Upload(ctx context.Context, r io.Reader, resource *v1.CASResource) error
Upload provides a mock function with given fields: ctx, r, resource