Documentation ¶
Index ¶
- type Build
- type BuildContentOptions
- type BuildMethod
- type BuildRefOptions
- type Builds
- type ExecConfig
- type Image
- type Info
- type Network
- type Params
- type RawEngineOptions
- type RawEngineResult
- type SendMessage
- type VirtualizationCreateOptions
- type VirtualizationCreated
- type VirtualizationInfo
- type VirtualizationLogStreamOptions
- type VirtualizationWaitResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { Base string `yaml:"base,omitempty"` Repo string `yaml:"repo,omitempty"` Version string `yaml:"version,omitempty"` Dir string `yaml:"dir,omitempty"` Submodule bool `yaml:"submodule,omitempty"` Security bool `yaml:"security,omitempty"` Commands []string `yaml:"commands,omitempty,flow"` Envs map[string]string `yaml:"envs,omitempty,flow"` Args map[string]string `yaml:"args,omitempty,flow"` Labels map[string]string `yaml:"labels,omitempty,flow"` Artifacts map[string]string `yaml:"artifacts,omitempty,flow"` Cache map[string]string `yaml:"cache,omitempty,flow"` StopSignal string `yaml:"stop_signal,omitempty,flow"` }
Build define build
type BuildContentOptions ¶
BuildContentOptions .
type BuildRefOptions ¶
BuildRefOptions .
type Builds ¶
type Builds struct { Stages []string `yaml:"stages,omitempty,flow"` Builds map[string]*Build `yaml:"builds,omitempty,flow"` }
Builds define builds
type ExecConfig ¶
type ExecConfig struct { User string // User that will run the command Privileged bool // Is the workload in privileged mode Tty bool // Attach standard streams to a tty. AttachStdin bool // Attach the standard input, makes possible user interaction AttachStderr bool // Attach the standard error AttachStdout bool // Attach the standard output Detach bool // Execute in detach mode DetachKeys string // Escape keys for detach Env []string // Environment variables WorkingDir string // Working directory Cmd []string // Execution commands and args }
ExecConfig is a small subset of the Config struct that holds the configuration for the exec feature of docker. copy from github.com/docker/docker/api/types
type Info ¶
type Info struct { Type string ID string NCPU int MemTotal int64 StorageTotal int64 Resources map[string][]byte }
Info define info response
type RawEngineOptions ¶
type RawEngineResult ¶
type SendMessage ¶
SendMessage returns from engine
type VirtualizationCreateOptions ¶
type VirtualizationCreateOptions struct { EngineParams resourcetypes.Resources Name string User string Image string WorkingDir string Stdin bool Privileged bool Cmd []string Env []string DNS []string Hosts []string Publish []string Sysctl map[string]string Labels map[string]string Debug bool Restart string Networks map[string]string LogType string LogConfig map[string]string RawArgs []byte Lambda bool AncestorWorkloadID string }
VirtualizationCreateOptions use for create virtualization target
type VirtualizationCreated ¶
VirtualizationCreated use for store name and ID
type VirtualizationInfo ¶
type VirtualizationInfo struct { ID string User string Image string Running bool Env []string Labels map[string]string Networks map[string]string }
VirtualizationInfo store virtualization info
type VirtualizationLogStreamOptions ¶
type VirtualizationLogStreamOptions struct { ID string Tail string Since string Until string Follow bool Stdout bool Stderr bool }
VirtualizationLogStreamOptions .
type VirtualizationWaitResult ¶
VirtualizationWaitResult store exit result
Click to show internal directories.
Click to hide internal directories.