convert

package
v0.0.0-...-ce92503 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Path to config file inside the bundle
	ConfigFile  = "config.json"
	RuntimeFile = "runtime.json"
	// Path to rootfs directory inside the bundle
	RootfsDir = "rootfs"
)

Variables

View Source
var (
	ErrNoRootFS = errors.New("no rootfs found in bundle")
	ErrNoConfig = errors.New("no config json file found in bundle")
	ErrNoRun    = errors.New("no runtime json file found in bundle")
)

Functions

func Oci2aciImage

func Oci2aciImage(ociPath string) (string, error)

func Oci2aciManifest

func Oci2aciManifest(ociPath string) (string, error)

func RunOCI2ACI

func RunOCI2ACI(args []string, flagDebug bool, flagName string) error

Entry point of oci2aci, First convert oci layout to aci layout, then build aci layout to image.

Types

type Err

type Err struct {
	Message string
	File    string
	Path    string
	Func    string
	Line    int
}

func (*Err) Error

func (e *Err) Error() string

type IsolatorCapSet

type IsolatorCapSet struct {
	Sets []string `json:"set"`
}

type ResourceCPU

type ResourceCPU struct {
	Limit string `json:"limit"`
}

type ResourceMem

type ResourceMem struct {
	Limit string `json:"limit"`
}

Jump to

Keyboard shortcuts

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