Documentation ¶
Index ¶
- type FakeStore
- func (s *FakeStore) BytesUsedBy(path string) (uint64, error)
- func (s *FakeStore) FilesystemStats() (*types.FilesystemStats, error)
- func (s *FakeStore) GC() error
- func (s *FakeStore) GetImagePathDigestAndVirtualSize(imageName string) (string, digest.Digest, uint64, error)
- func (s *FakeStore) ImageStatus(name string) (*image.Image, error)
- func (s *FakeStore) ListImages(filter string) ([]*image.Image, error)
- func (s *FakeStore) PullImage(ctx context.Context, name string, translator image.Translator) (string, error)
- func (s *FakeStore) RemoveImage(name string) error
- func (s *FakeStore) SetRefGetter(imageRefGetter image.RefGetter)
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 ¶
NewFakeStore creates a new FakeStore.
func (*FakeStore) BytesUsedBy ¶ added in v1.4.0
BytesUsedBy implements BytesUsedBy method from Store interface.
func (*FakeStore) FilesystemStats ¶ added in v1.2.0
func (s *FakeStore) FilesystemStats() (*types.FilesystemStats, error)
FilesystemStats implements FilesystemStats method from Store interface.
func (*FakeStore) GetImagePathDigestAndVirtualSize ¶ added in v1.4.0
func (s *FakeStore) GetImagePathDigestAndVirtualSize(imageName string) (string, digest.Digest, uint64, error)
GetImagePathDigestAndVirtualSize implements GetImagePathDigestAndVirtualSize method of Store interface.
func (*FakeStore) ImageStatus ¶
ImageStatus implements ImageStatus method of Store interface.
func (*FakeStore) ListImages ¶
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 ¶
RemoveImage implements RemoveImage method of Store interface.
func (*FakeStore) SetRefGetter ¶
SetRefGetter implements SetRefGetter method of Store interface.