Documentation ¶
Index ¶
- type FakeStore
- func (s *FakeStore) FilesystemStats() (*image.FilesystemStats, error)
- func (s *FakeStore) GC() error
- func (s *FakeStore) GetImagePathAndVirtualSize(imageName string) (string, 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) FilesystemStats ¶
func (s *FakeStore) FilesystemStats() (*image.FilesystemStats, error)
FilesystemStats implements FilesystemStats method from Store interface.
func (*FakeStore) GetImagePathAndVirtualSize ¶
GetImagePathAndVirtualSize implements GC 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.
Click to show internal directories.
Click to hide internal directories.