oci

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	SquashFS  *FileLayer
	InitRAMFs *FileLayer
	Kernel    *FileLayer
}

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) (*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