oci

package
v0.0.0-...-3265c99 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImagePulling = errors.New("oci pulling")

Functions

func IgnoreImagePulling

func IgnoreImagePulling(err error) error

Types

type Cache

type Cache interface {
	Get(ctx context.Context, ref string) (*Image, error)
	AddListener(listener Listener)
}

type FileLayer

type FileLayer struct {
	Descriptor ocispecv1.Descriptor
	Path       string
}

type Image

type Image struct {
	Config    ironcoreimage.Config
	RootFS    *FileLayer
	InitRAMFs *FileLayer
	Kernel    *FileLayer
	SquashFS  *FileLayer
}

type Layer

type Layer string
var (
	RootFSLayer    Layer = "rootfs"
	KernelLayer    Layer = "kernel"
	SquashFSLayer  Layer = "squashfs"
	InitRAMFsLayer Layer = "initramfs"
)

type Listener

type Listener interface {
	HandlePullDone(evt PullDoneEvent)
}

type ListenerFuncs

type ListenerFuncs struct {
	HandlePullDoneFunc func(evt PullDoneEvent)
}

func (ListenerFuncs) HandlePullDone

func (l ListenerFuncs) HandlePullDone(evt PullDoneEvent)

type LocalCache

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

func NewLocalCache

func NewLocalCache(
	log logr.Logger,
	registry *remote.Registry,
	store *store.Store,
	required sets.Set[Layer],
) (*LocalCache, error)

func (*LocalCache) AddListener

func (c *LocalCache) AddListener(listener Listener)

func (*LocalCache) Get

func (c *LocalCache) Get(ctx context.Context, ref string) (*Image, error)

func (*LocalCache) Start

func (c *LocalCache) Start(ctx context.Context) error

type PullDoneEvent

type PullDoneEvent struct {
	Ref string
}

Jump to

Keyboard shortcuts

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