Documentation
¶
Index ¶
- func EndpointCacheKey(endpoint, ca, cert, key string) string
- type Build
- type BuildContentOptions
- type BuildRefOptions
- type Builds
- type ExecConfig
- type Image
- type Info
- type Network
- type Params
- type RawEngineOptions
- type RawEngineResult
- type VirtualizationCreateOptions
- type VirtualizationCreated
- type VirtualizationInfo
- type VirtualizationLogStreamOptions
- type VirtualizationWaitResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointCacheKey ¶
EndpointCacheKey is the engine cache key for an endpoint and its credentials.
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"`
}
type BuildContentOptions ¶
type BuildRefOptions ¶
type ExecConfig ¶
type ExecConfig struct {
User string
Privileged bool
Tty bool
AttachStdin bool
AttachStderr bool
AttachStdout bool
Env []string
WorkingDir string
Cmd []string
}
ExecConfig mirrors the exec subset of docker's api/types Config.
type Info ¶
type Info struct {
Type string
ID string
NCPU int
MemTotal int64
StorageTotal int64
Resources map[string][]byte
}
Info is a node's runtime capacity as reported by its engine.
type Params ¶
type RawEngineOptions ¶
type RawEngineResult ¶
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 describes a workload to create.
type VirtualizationCreated ¶
VirtualizationCreated identifies a freshly created workload.
type VirtualizationInfo ¶
type VirtualizationWaitResult ¶
VirtualizationWaitResult carries a workload's exit status.
Click to show internal directories.
Click to hide internal directories.