Documentation
¶
Index ¶
- type BindMount
- type ContainerStatus
- type CpuArch
- type CpuCFS
- type CreateContainerRequest
- type ErrorResponse
- type FileDataResponse
- type Image
- type ImagesResponse
- type LoadDeployment
- type LoadInfo
- type LoadsDeployments
- type LoadsInfo
- type MountVolume
- type NetworkConfig
- type NodeImagesMapResponse
- type NodeImagesResponse
- type NodeResponse
- type OsKind
- type Portmap
- type ProvisionLoadInfo
- type Quotas
- type RestartNodeRequest
- type StopNodeRequest
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerStatus ¶ added in v0.1.8
type ContainerStatus string
const ( ContainerStatusStart ContainerStatus = "start" ContainerStatusStartFaailed ContainerStatus = "start_failed" ContainerStatusStop ContainerStatus = "stop" ContainerStatusStopFailed ContainerStatus = "stop_failed" )
type CreateContainerRequest ¶
type CreateContainerRequest struct {
Image string `json:"image"`
MountVolume *[]MountVolume `json:"mount_volume,omitempty"`
BindMounts []BindMount `json:"bind_mounts,omitempty"`
Env []string `json:"env,omitempty"`
Quotas *Quotas `json:"quotas,omitempty"`
Entrypoint *string `json:"entrypoint,omitempty"`
Args []string `json:"args,omitempty"`
WorkingDir *string `json:"working_dir,omitempty"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type FileDataResponse ¶
type ImagesResponse ¶
type ImagesResponse []Image
type LoadDeployment ¶
type LoadsDeployments ¶
type LoadsDeployments []LoadDeployment
type MountVolume ¶
type NetworkConfig ¶
type NetworkConfig struct {
Mode string `json:"mode,omitempty"` // Network mode: "bridge" (default) or "host"
Network string `json:"network,omitempty"` // Network name (only used in bridge mode)
IPMasq bool `json:"ip_masq,omitempty"`
DNS bool `json:"dns,omitempty"`
PortMap []Portmap `json:"portmap,omitempty"`
}
type NodeImagesMapResponse ¶
type NodeImagesMapResponse []NodeImagesResponse
type NodeImagesResponse ¶
type NodeImagesResponse struct {
Node string `json:"node"`
Images ImagesResponse `json:"images,omitempty"`
Error string `json:"error,omitempty"`
}
type NodeResponse ¶ added in v0.1.2
type NodeResponse struct {
State common.NodeState `json:"state"`
Status common.NodeStatus `json:"status"`
}
type ProvisionLoadInfo ¶ added in v0.1.2
type ProvisionLoadInfo struct {
DeploymentId string `json:"deployment_id"`
}
type RestartNodeRequest ¶
type StopNodeRequest ¶ added in v0.1.5
type SystemInfo ¶
type SystemInfo struct {
OsName string `json:"os_name"` // Name of the OS, reported by the OS
OsKind OsKind `json:"os_kind"` // Kind of OS
OsArch CpuArch `json:"os_arch"` // CPU architecture
SysVendor string `json:"sys_vendor"` // System vendor string
NetDefaultGateway string `json:"net_default_gateway"` // Default network gateway
NetHostName string `json:"net_host_name"` // Network name of this host
NetDomainName string `json:"net_domain_name"` // Domain name of this host
NetPrimaryDns string `json:"net_primary_dns"` // Primary network DNS
NetSecondaryDns string `json:"net_secondary_dns"` // Secondary network DNS
NetPrimaryIpAddr string `json:"net_primary_ip_addr"` // Primary IP address
NetMacAddress string `json:"net_mac_address"` // Primary MAC address
CpuModel string `json:"cpu_model"` // CPU model string
CpuStartTime int64 `json:"cpu_start_time"` // Time when the CPU got powered (Unix timestamp in nanoseconds)
CpuTotalCores uint32 `json:"cpu_total_cores"` // Number of cores of the CPU
CpuCoresPerSocket uint32 `json:"cpu_cores_per_socket"` // Number of cores per socket
CpuTotalSockets uint32 `json:"cpu_total_sockets"` // Number of sockets
CpuVendor string `json:"cpu_vendor"` // CPU vendor string
CpuMhz uint32 `json:"cpu_mhz"` // Maximum CPU frequency in Megahertz
RamTotal uint64 `json:"ram_total"` // Total available RAM in bytes
}
SystemInfo contains static information about a computer
Click to show internal directories.
Click to hide internal directories.