bundle

package
v0.0.0-...-6fed612 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Path   string // Path is the bundle path.
	Spec   specs.Spec
	Rootfs string // Rootfs is the absolute path to the root filesystem.
	// contains filtered or unexported fields
}

func Load

func Load(ctx context.Context, path string, transformers ...Transformer) (*Bundle, error)

Load loads an OCI bundle from the given path and apply a series of transformers to turn the host-side bundle into a VM-side bundle.

func (*Bundle) AddExtraFile

func (b *Bundle) AddExtraFile(name string, data []byte)

func (*Bundle) Files

func (b *Bundle) Files() (map[string][]byte, error)

Files returns all the bundle files that must be setup inside the VM.

type Transformer

type Transformer func(ctx context.Context, b *Bundle) error

Jump to

Keyboard shortcuts

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