mocks

package
v0.0.0-...-fb8dd36 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSClient

type GCSClient struct {
	mock.Mock
}

GCSClient is an autogenerated mock type for the GCSClient type

func NewGCSClient

func NewGCSClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *GCSClient

NewGCSClient creates a new instance of GCSClient. 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.

func (*GCSClient) GetImage

func (_m *GCSClient) GetImage(ctx context.Context, digest types.Digest) ([]byte, error)

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

func (*GCSClient) LoadKnownDigests

func (_m *GCSClient) LoadKnownDigests(ctx context.Context, w io.Writer) error

LoadKnownDigests provides a mock function with given fields: ctx, w

func (*GCSClient) Options

func (_m *GCSClient) Options() storage.GCSClientOptions

Options provides a mock function with given fields:

func (*GCSClient) WriteKnownDigests

func (_m *GCSClient) WriteKnownDigests(ctx context.Context, digests types.DigestSlice) error

WriteKnownDigests provides a mock function with given fields: ctx, digests

Jump to

Keyboard shortcuts

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