oci

package
v0.0.0-...-e8c9e14 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(input io.Reader) (*specs.Spec, error)

ReadConfig unmarshals a JSON body from input and returns an OCI Spec

func ReadConfigFile

func ReadConfigFile(filename string) (*specs.Spec, error)

ReadConfigFile unmarshals a JSON body from filename and returns an OCI Spec

Types

type Wrapper

type Wrapper struct {
	Spec      *specs.Spec
	Container *nspawn.Container
}

func BundleToContainer

func BundleToContainer(bundlepath string) (*Wrapper, error)

func (*Wrapper) Cmd

func (w *Wrapper) Cmd() *exec.Cmd

Jump to

Keyboard shortcuts

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