commands

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBuildTarget = "build"
View Source
const DefaultRunTarget = "run"
View Source
const Version = "0.5.3"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildCmdOpts

type BuildCmdOpts struct {
	DockerH     string `short:"H"                    description:"Where to connect to docker daemon."`
	Source      string `short:"s" long:"source"      description:"Container source.      (default: graph)"`
	Destination string `short:"d" long:"destination" description:"Container destination. (default: graph)"`
	NoOp        bool   `long:"noop" description:"Set the container command to /bin/true."`
	Epoch       bool   `long:"epoch" description:"Force all file modtimes to epoch."`
}

func (*BuildCmdOpts) Execute

func (opts *BuildCmdOpts) Execute(args []string) error

Transforms a container

type Hroot added in v0.5.0

type Hroot struct {
	// contains filtered or unexported fields
}

Holds everything needed to run a hroot command

func LoadHroot added in v0.5.1

func LoadHroot(args []string, defaultTarget, sourceURI, destURI string) *Hroot

Create a hroot struct

func (*Hroot) Cleanup added in v0.5.0

func (d *Hroot) Cleanup()

Clean up after ourselves

func (*Hroot) ExportBuild added in v0.5.0

func (d *Hroot) ExportBuild(forceEpoch bool) error

Prepare the hroot export

func (*Hroot) Launch added in v0.5.0

func (d *Hroot) Launch()

Lanuch the container and wait for it to complete

func (*Hroot) PrepareCache added in v0.5.0

func (d *Hroot) PrepareCache()

Prepare the docker cache

func (*Hroot) PrepareInput added in v0.5.0

func (d *Hroot) PrepareInput()

Prepare the hroot input

func (*Hroot) PrepareOutput added in v0.5.0

func (d *Hroot) PrepareOutput()

Prepare the hroot output

func (*Hroot) StartDocker added in v0.5.0

func (d *Hroot) StartDocker(socketURI string)

Connects to the docker daemon

type ImagePath

type ImagePath struct {
	// contains filtered or unexported fields
}

Holds everything needed to load/save docker images

type RunCmdOpts

type RunCmdOpts struct {
	DockerH string `short:"H"               description:"Where to connect to docker daemon."`
	Source  string `short:"s" long:"source" description:"Container source."`
}

func (*RunCmdOpts) Execute

func (opts *RunCmdOpts) Execute(args []string) error

Runs a container

type VersionCmdOpts

type VersionCmdOpts struct{}

func (*VersionCmdOpts) Execute

func (opts *VersionCmdOpts) Execute(args []string) error

Version command

Jump to

Keyboard shortcuts

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