image

package
v0.0.0-...-f0e17bc Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const V1 = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeImageCRIShimInterface

type FakeImageCRIShimInterface interface {
	ListImages() ([]string, error)
	ImageStatus(image string) (*v1api.ImageStatusResponse, error)
	PullImage(image string) (string, error)
	RemoveImage(image string) error
	ImageFsInfo() ([]*v1api.FilesystemUsage, error)
}

func NewFakeImageServiceClientWithV1

func NewFakeImageServiceClientWithV1(client v1api.ImageServiceClient) FakeImageCRIShimInterface

type FakeImageServiceClient

type FakeImageServiceClient struct {
	Version              string
	V1ImageServiceClient v1api.ImageServiceClient
}

func (FakeImageServiceClient) ImageFsInfo

func (f FakeImageServiceClient) ImageFsInfo() ([]*v1api.FilesystemUsage, error)

func (FakeImageServiceClient) ImageStatus

func (f FakeImageServiceClient) ImageStatus(image string) (*v1api.ImageStatusResponse, error)

func (FakeImageServiceClient) ListImages

func (f FakeImageServiceClient) ListImages() ([]string, error)

func (FakeImageServiceClient) PullImage

func (f FakeImageServiceClient) PullImage(image string) (string, error)

return image ID

func (FakeImageServiceClient) RemoveImage

func (f FakeImageServiceClient) RemoveImage(image string) error

Jump to

Keyboard shortcuts

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