Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attach ¶
type Attach struct {
Process string `short:"p" long:"pid" description:"process id to connect to" required:"true"`
}
type Create ¶
type Create struct { Handle string `short:"n" long:"handle" description:"name to give container"` RootFS string `short:"r" long:"rootfs" description:"rootfs image with which to create the container"` Env []string `short:"e" long:"env" description:"set environment variables"` Grace time.Duration `short:"g" long:"grace" description:"grace time (resetting ttl) of container"` Privileged bool `short:"p" long:"privileged" description:"privileged user in the container is privileged in the host"` Network string `long:"network" description:"the subnet of the container"` BindMounts []string `short:"m" long:"bind-mount" description:"bind mount host-path:container-path"` NetIn []string `short:"i" long:"net-in" description:"map a host port to a container port"` NetOut []string `short:"o" long:"net-out" description:"whitelist outbound network traffic"` }
type GlobalOptions ¶
type GlobalOptions struct {
Target TargetFlag `short:"t" long:"target" description:"garden endpoint" default:"127.0.0.1:7777" env:"GAOL_TARGET"`
}
var Globals GlobalOptions
type IPFlag ¶
func (*IPFlag) UnmarshalFlag ¶
type List ¶
type List struct { Properties []string `short:"p" long:"properties" description:"filter by properties (name=value)"` Verbose bool `short:"v" long:"verbose" description:"print additional details about each container"` Separator string `long:"separator" description:"separator to print between containers in verbose mode"` }
type NetIn ¶
type NetIn struct {
Port uint16 `short:"p" long:"port" description:"container port" required:"true"`
}
type NetOut ¶
type NetOut struct { Protocol string `` /* 129-byte string literal not displayed */ StartIP IPFlag `long:"ip-start" required:"true" description:"start of IP range to whitelist, inclusive"` EndIP IPFlag `long:"ip-end" required:"true" description:"end of IP range to whitelist, inclusive"` StartPort uint16 `long:"port-start" required:"true" description:"start of port range to whitelist, inclusive"` EndPort uint16 `long:"port-end" required:"true" description:"end of port range to whitelist, inclusive"` }
type Properties ¶
type Properties struct {
AsJSON bool `short:"j" long:"json" description:"format output as json"`
}
func (*Properties) Execute ¶
func (command *Properties) Execute(maybeHandle []string) error
type Run ¶
type Run struct { Attach bool `short:"a" long:"attach" description:"attach to the process after it has started"` Dir string `short:"d" long:"dir" description:"current working directory of process"` User string `short:"u" long:"user" description:"user to run the process as" default:"root"` Command string `short:"c" long:"command" description:"command to run in container"` Env []string `short:"e" long:"env" description:"set environment variables"` }
type Shell ¶
type Shell struct {
User string `short:"u" long:"user" description:"user to open shell as" default:"root"`
}
type StreamIn ¶
type StreamOut ¶
type TargetFlag ¶
func (*TargetFlag) UnmarshalFlag ¶
func (target *TargetFlag) UnmarshalFlag(address string) error
Click to show internal directories.
Click to hide internal directories.