ociimage

package
v0.0.1-dev.30 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 22 Imported by: 1 module, 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

View Source
const RuntimePath = "/holon-mcp-runtime"

Variables

This section is empty.

Functions

func AdaptImage

func AdaptImage(ctx context.Context, repository oras.Target, descriptor ocispec.Descriptor, options AdaptOptions) (ocispec.Descriptor, error)

func AdaptRuntime

func AdaptRuntime(ctx context.Context, repository oras.Target, image *Image, options AdaptOptions) error

func Copy

func Copy(
	ctx context.Context, source oras.ReadOnlyTarget, destination oras.Target, image string, required ...string,
) (ocispec.Descriptor, error)

func FetchJSON

func FetchJSON(ctx context.Context, source content.Fetcher, descriptor ocispec.Descriptor, value any) error

FetchJSON decodes registry metadata, refusing documents larger than 4 MiB.

func Parse

func Parse(image string) (reference.Named, error)

func Rewrite

func Rewrite(ctx context.Context, repository oras.Target, descriptor ocispec.Descriptor, transform func(*Image) error) (ocispec.Descriptor, error)

func SupportedPlatform

func SupportedPlatform(platform ocispec.Platform) bool

Types

type AdaptOptions

type AdaptOptions struct {
	HTTP          bool
	Origin        string
	Source        string
	CheckedLayers *sync.Map
	Bridges       Bridges
}

type Bridges

type Bridges map[string]runtimePayload

func LoadBridges

func LoadBridges(payloads fs.FS) (Bridges, error)

type Image

type Image struct {
	OS           string                     `json:"os"`
	Architecture string                     `json:"architecture"`
	Config       ocispec.ImageConfig        `json:"config"`
	RootFS       ocispec.RootFS             `json:"rootfs"`
	History      []ocispec.History          `json:"history"`
	Layers       []ocispec.Descriptor       `json:"-"`
	Runtime      map[string]json.RawMessage `json:"-"`
	// contains filtered or unexported fields
}

func (*Image) AppendLayer

func (image *Image) AppendLayer(layer ocispec.Descriptor, diffID digest.Digest, createdBy string)

Jump to

Keyboard shortcuts

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