Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { // Id of the image. Normally the digest of image config. ID string // References are references to the image, e.g. RepoTag and RepoDigest. References []string // ChainID is the chainID of the image. ChainID string // Size is the compressed size of the image. Size int64 // ImageSpec is the oci image structure which describes basic information about the image. ImageSpec imagespec.Image }
Image contains all resources associated with the image. All fields MUST not be mutated directly after created.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores all images.
func NewFakeStore ¶
NewFakeStore returns an image store with predefined images. Update is not allowed for this fake store.
func (*Store) Get ¶
Get gets image metadata by image id. The id can be truncated. Returns various validation errors if the image id is invalid. Returns storeutil.ErrNotExist if the image doesn't exist.
Click to show internal directories.
Click to hide internal directories.