mocks

package
v0.0.0-...-e0ff526 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAS

type CAS struct {
	mock.Mock
}

CAS is an autogenerated mock type for the CAS type

func NewCAS

func NewCAS(t interface {
	mock.TestingT
	Cleanup(func())
}) *CAS

NewCAS creates a new instance of CAS. 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 (*CAS) Close

func (_m *CAS) Close() error

Close provides a mock function with given fields:

func (*CAS) Download

func (_m *CAS) Download(ctx context.Context, root string, digest string) error

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

func (*CAS) Merge

func (_m *CAS) Merge(ctx context.Context, digests []string) (string, error)

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

func (*CAS) Upload

func (_m *CAS) Upload(ctx context.Context, root string, paths []string, excludes []string) (string, error)

Upload provides a mock function with given fields: ctx, root, paths, excludes

Jump to

Keyboard shortcuts

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