image

package
v0.0.0-...-002e404 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0, BSD-2-Clause Imports: 26 Imported by: 0

Documentation

Overview

Package image ... from containerd/pkg/cri/store/image

Index

Constants

This section is empty.

Variables

View Source
var (
	DBBucketUsage = "usage/v1"
)

Functions

This section is empty.

Types

type Image

type Image struct {
	ID string

	References []string

	ChainID string

	Size int64

	ImageSpec imagespec.Image

	Pinned bool

	LowerDirs []string
	UidFiles  string

	NfsRootfs string

	CosRootfs string

	ImageReq    *cubeimages.ImageSpec
	CreatedTime time.Time
}

type Option

type Option func(*Store)

func WithUidFileDir

func WithUidFileDir(dir string) Option

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewFakeStore

func NewFakeStore(images []Image) (*Store, error)

func NewStore

func NewStore(client *containerd.Client, runtimeType string, db *utils.CubeStore, opts ...Option) *Store

func (*Store) DeleteLastRefTime

func (s *Store) DeleteLastRefTime(refOrID string)

func (*Store) FlushImageRefTime

func (s *Store) FlushImageRefTime()

func (*Store) Get

func (s *Store) Get(id string) (Image, error)

func (*Store) GetLastRefTime

func (s *Store) GetLastRefTime(id string) time.Time

func (*Store) List

func (s *Store) List() []Image

func (*Store) RecoverRefTime

func (s *Store) RecoverRefTime() error

func (*Store) Resolve

func (s *Store) Resolve(ref string) (string, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, ref string) error

func (*Store) UpdateLastRefTime

func (s *Store) UpdateLastRefTime(refOrID string)

func (*Store) UpdateWithCosImage

func (s *Store) UpdateWithCosImage(img *Image) error

func (*Store) UpdateWithNfsImage

func (s *Store) UpdateWithNfsImage(img *Image) error

Jump to

Keyboard shortcuts

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