Documentation ¶
Index ¶
- Constants
- func ErrorExit(ctx *cobra.Command, message string)
- func Execute()
- func FormatBool(b bool, strTrue, strFalse string) string
- func FormatDateTime(t time.Time) string
- func FormatFloat(n float64) string
- func FormatInt(n int64) string
- func FormatNonBreakingString(str string) string
- func FormatNumber(n float64, prec int) string
- func FormatPrint(out io.Writer, value interface{}) error
- func Initialize()
- func PrintInJSON(out io.Writer, value interface{}) error
- func PrintInTable(out io.Writer, header []string, items [][]string, width, align int)
- func PrintInYAML(out io.Writer, value interface{}) error
- func Truncate(s string, maxlen int) string
- type Composer
- type LogFormatter
- type Mount
- type Volume
- type Volumes
Constants ¶
View Source
const (
APP_NAME = "Talk2Docker"
)
Variables ¶
This section is empty.
Functions ¶
func FormatBool ¶
func FormatDateTime ¶
func FormatFloat ¶
func FormatNonBreakingString ¶
func FormatNumber ¶
func FormatPrint ¶
func Initialize ¶
func Initialize()
func PrintInJSON ¶
func PrintInTable ¶
func PrintInYAML ¶
Types ¶
type Composer ¶
type Composer struct { Name string Build string `yaml:"build"` Ports []string `yaml:"ports"` Volumes []string `yaml:"volumes"` // api.Config Hostname string `yaml:"hostname"` Domainname string `yaml:"domainname"` User string `yaml:"user"` Memory int64 `yaml:"mem_limit"` MemorySwap int64 `yaml:"mem_swap"` Cpuset string `yaml:"cpuset"` ExposedPorts []string `yaml:"expose"` Tty bool `yaml:"tty"` OpenStdin bool `yaml:"stdin_open"` Env []string `yaml:"environment"` Cmd []string `yaml:"command"` Image string `yaml:"image"` WorkingDir string `yaml:"working_dir"` Entrypoint string `yaml:"entrypoint"` MacAddress string `yaml:"mac_address"` // api.HostConfig Privileged bool `yaml:"privileged"` Links []string `yaml:"links"` ExternalLinks []string `yaml:"external_links"` PublishAllPorts bool `yaml:"publish_all"` Dns []string `yaml:"dns"` DnsSearch []string `yaml:"dns_search"` ExtraHosts []string `yaml:"add_host"` VolumesFrom []string `yaml:"volumes_from"` Devices []string `yaml:"device"` NetworkMode string `yaml:"net"` IpcMode string `yaml:"ipc"` PidMode string `yaml:"pid"` CapAdd []string `yaml:"cap_add"` CapDrop []string `yaml:"cap_drop"` RestartPolicy string `yaml:"restart"` SecurityOpt []string `yaml:"security_opt"` ReadonlyRootfs bool `yaml:"read_only"` }
type LogFormatter ¶
type LogFormatter struct{}
type Mount ¶
type Mount struct { MountToPath string ContainerId string ContainerName string Writable bool // contains filtered or unexported fields }
https://github.com/docker/docker/blob/master/daemon%2Fvolumes.go#L21
type Volume ¶
type Volume struct { ID string Path string IsBindMount bool Writable bool Created time.Time MountedOn []*Mount // contains filtered or unexported fields }
https://github.com/docker/docker/blob/master/volumes%2Fvolume.go#L16
Click to show internal directories.
Click to hide internal directories.