mocks

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Describer

type Describer struct {
	mock.Mock
}

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.

func (*Describer) Describe

func (_m *Describer) Describe(ctx context.Context, digest string) (*v1.CASResource, error)

Describe provides a mock function with given fields: ctx, digest

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

type Provider

type Provider struct {
	mock.Mock
}

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

func (*Provider) ID added in v0.14.0

func (_m *Provider) ID() string

ID provides a mock function with given fields:

func (*Provider) ValidateAndExtractCredentials added in v0.14.0

func (_m *Provider) ValidateAndExtractCredentials(location string, credsJSON []byte) (interface{}, error)

ValidateAndExtractCredentials provides a mock function with given fields: location, credsJSON

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) CheckWritePermissions

func (_m *Uploader) CheckWritePermissions(ctx context.Context) error

CheckWritePermissions provides a mock function with given fields: ctx

func (*Uploader) Exists

func (_m *Uploader) Exists(ctx context.Context, digest string) (bool, error)

Exists provides a mock function with given fields: ctx, digest

func (*Uploader) Upload

func (_m *Uploader) Upload(ctx context.Context, r io.Reader, resource *v1.CASResource) error

Upload provides a mock function with given fields: ctx, r, resource

type UploaderDownloader

type UploaderDownloader struct {
	mock.Mock
}

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

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

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

func (*UploaderDownloader) Exists

func (_m *UploaderDownloader) Exists(ctx context.Context, digest string) (bool, error)

Exists provides a mock function with given fields: ctx, 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

Jump to

Keyboard shortcuts

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