bundle

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyOpts

type ApplyOpts func(*Bundle) error

ApplyOpts is used to store metadata into bundle when NewBundle.

type Bundle

type Bundle struct {
	// ID of the bundle
	ID string
	// Path to the bundle
	Path string
	// Namespace of the bundle
	Namespace string
}

Bundle represents an OCI bundle.

func LoadBundle

func LoadBundle(stateDir, ns, id string) (*Bundle, error)

LoadBundle loads an existing bundle from disk.

func NewBundle

func NewBundle(root, state, ns, id string, opts ...ApplyOpts) (_ *Bundle, retErr error)

NewBundle creates bundle.

func (*Bundle) Delete

func (b *Bundle) Delete() error

Delete a bundle atomically

func (*Bundle) IsValid

func (b *Bundle) IsValid() error

IsValid returns nil if the last-created workdir is there.

func (*Bundle) Rootfs

func (b *Bundle) Rootfs() string

Rootfs returns rootfs path.

Jump to

Keyboard shortcuts

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