fakes

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCache

type FakeCache struct {
	// contains filtered or unexported fields
}

func (*FakeCache) DeleteData

func (f *FakeCache) DeleteData(ctx context.Context, name, digest string) error

func (*FakeCache) DeleteDataCallingArgumentsOnCall

func (f *FakeCache) DeleteDataCallingArgumentsOnCall(i int) []any

func (*FakeCache) DeleteDataReturns

func (f *FakeCache) DeleteDataReturns(err error)

func (*FakeCache) DeleteDataWasNotCalled

func (f *FakeCache) DeleteDataWasNotCalled() bool

func (*FakeCache) FetchDataByDigest

func (f *FakeCache) FetchDataByDigest(ctx context.Context, name, digest string) (io.ReadCloser, error)

func (*FakeCache) FetchDataByDigestCallingArgumentsOnCall

func (f *FakeCache) FetchDataByDigestCallingArgumentsOnCall(i int) []any

func (*FakeCache) FetchDataByDigestReturns

func (f *FakeCache) FetchDataByDigestReturns(reader io.ReadCloser, err error)

func (*FakeCache) FetchDataByDigestReturnsOnCall

func (f *FakeCache) FetchDataByDigestReturnsOnCall(n int, reader io.ReadCloser, err error)

func (*FakeCache) FetchDataByDigestWasNotCalled

func (f *FakeCache) FetchDataByDigestWasNotCalled() bool

func (*FakeCache) FetchDataByIdentity

func (f *FakeCache) FetchDataByIdentity(ctx context.Context, name, tag string) (io.ReadCloser, string, int64, error)

func (*FakeCache) FetchDataByIdentityCallingArgumentsOnCall

func (f *FakeCache) FetchDataByIdentityCallingArgumentsOnCall(i int) []any

func (*FakeCache) FetchDataByIdentityReturns

func (f *FakeCache) FetchDataByIdentityReturns(reader io.ReadCloser, err error)

func (*FakeCache) FetchDataByIdentityWasNotCalled

func (f *FakeCache) FetchDataByIdentityWasNotCalled() bool

func (*FakeCache) IsCached

func (f *FakeCache) IsCached(ctx context.Context, name, tag string) (bool, error)

func (*FakeCache) IsCachedCallingArgumentsOnCall

func (f *FakeCache) IsCachedCallingArgumentsOnCall(i int) []any

func (*FakeCache) IsCachedReturns

func (f *FakeCache) IsCachedReturns(cached bool, err error)

func (*FakeCache) IsCachedWasNotCalled

func (f *FakeCache) IsCachedWasNotCalled() bool

func (*FakeCache) PushData

func (f *FakeCache) PushData(ctx context.Context, data io.ReadCloser, mediaType, name, tag string) (string, int64, error)

func (*FakeCache) PushDataCallingArgumentsOnCall

func (f *FakeCache) PushDataCallingArgumentsOnCall(i int) PushDataArguments

func (*FakeCache) PushDataReturns

func (f *FakeCache) PushDataReturns(digest string, err error)

func (*FakeCache) PushDataWasNotCalled

func (f *FakeCache) PushDataWasNotCalled() bool

type PushDataArguments

type PushDataArguments struct {
	Name    string
	Version string
	Content string
}

Jump to

Keyboard shortcuts

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