rump

package
v0.0.0-...-57ca673 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BootstrapTypeEC2 = "ec2"
	BootstrapTypeUDP = "udp"
)

Variables

This section is empty.

Functions

func BuildBootableImage

func BuildBootableImage(kernel, cmdline string) (string, error)

func CreateImageAws

func CreateImageAws(kernel string, args string, mntPoints []string) (*types.RawImage, error)

func CreateImageVirtualBox

func CreateImageVirtualBox(kernel string, args string, mntPoints []string) (*types.RawImage, error)

func CreateImageVmware

func CreateImageVmware(kernel string, args string, mntPoints []string) (*types.RawImage, error)

func RunContainer

func RunContainer(imageName string, cmds, binds []string, privileged bool, envPairs []string) error

func ToRumpJson

func ToRumpJson(c rumpConfig) (string, error)

rump special json

func ToRumpJsonMultiNet

func ToRumpJsonMultiNet(c multinetRumpConfig) (string, error)

rump special json

Types

type Method

type Method string
const (
	Static Method = "static"
	DHCP   Method = "dhcp"
)

type RumpGoCompiler

type RumpGoCompiler struct {
	DockerImage string
	CreateImage func(kernel, args string, mntPoints []string) (*types.RawImage, error)
}

func (*RumpGoCompiler) CompileRawImage

func (r *RumpGoCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)

type RumpNodeCompiler

type RumpNodeCompiler struct {
	DockerImage   string
	BootstrapType string //ec2 vs udp
	CreateImage   func(kernel, args string, mntPoints []string) (*types.RawImage, error)
}

func (*RumpNodeCompiler) CompileRawImage

func (r *RumpNodeCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)

Jump to

Keyboard shortcuts

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