image

package
v0.0.0-...-273f5df Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeStore

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

FakeStore is a fake implementation of Store interface for testing.

func NewFakeStore

func NewFakeStore(rec testutils.Recorder) *FakeStore

NewFakeStore creates a new FakeStore.

func (*FakeStore) BytesUsedBy

func (s *FakeStore) BytesUsedBy(path string) (uint64, error)

BytesUsedBy implements BytesUsedBy method from Store interface.

func (*FakeStore) FilesystemStats

func (s *FakeStore) FilesystemStats() (*types.FilesystemStats, error)

FilesystemStats implements FilesystemStats method from Store interface.

func (*FakeStore) GC

func (s *FakeStore) GC() error

GC implements GC method of Store interface.

func (*FakeStore) GetImagePathDigestAndVirtualSize

func (s *FakeStore) GetImagePathDigestAndVirtualSize(imageName string) (string, digest.Digest, uint64, error)

GetImagePathDigestAndVirtualSize implements GetImagePathDigestAndVirtualSize method of Store interface.

func (*FakeStore) ImageStatus

func (s *FakeStore) ImageStatus(name string) (*image.Image, error)

ImageStatus implements ImageStatus method of Store interface.

func (*FakeStore) ListImages

func (s *FakeStore) ListImages(filter string) ([]*image.Image, error)

ListImages implements ListImages method of ImageStore interface.

func (*FakeStore) PullImage

func (s *FakeStore) PullImage(ctx context.Context, name string, translator image.Translator) (string, error)

PullImage implements PullImage method of Store interface.

func (*FakeStore) RemoveImage

func (s *FakeStore) RemoveImage(name string) error

RemoveImage implements RemoveImage method of Store interface.

func (*FakeStore) SetRefGetter

func (s *FakeStore) SetRefGetter(imageRefGetter image.RefGetter)

SetRefGetter implements SetRefGetter method of Store interface.

Jump to

Keyboard shortcuts

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