package image
import "github.com/containerd/containerd/pkg/cri/store/image"
Index ¶
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 NewStore ¶
func NewStore(client *containerd.Client) *Store
NewStore creates an image 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.
func (*Store) List ¶
List lists all images.
func (*Store) Resolve ¶
Resolve resolves a image reference to image id.
func (*Store) Update ¶
Update updates cache for a reference.
Source Files ¶
fake_image.go image.go sort.go
- Version
- v1.6.7
- Published
- Aug 4, 2022
- Platform
- js/wasm
- Imports
- 14 packages
- Last checked
- 36 minutes ago –
Tools for package owners.