Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentState ¶ added in v2.9.0
type AgentState struct { CompletedFrameworks []struct { CompletedExecutors []struct { CompletedTasks []AgentTask `json:"completed_tasks"` Container string `json:"container"` Directory string `json:"directory"` ID string `json:"id"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` Name string `json:"name"` QueuedTasks []interface{} `json:"queued_tasks"` Resources struct { Cpus float64 `json:"cpus"` Disk int64 `json:"disk"` Gpus int64 `json:"gpus"` Mem int64 `json:"mem"` } `json:"resources"` Role string `json:"role"` Source string `json:"source"` Tasks []AgentTask `json:"tasks"` Type string `json:"type"` } `json:"completed_executors"` Executors []interface{} `json:"executors"` ID string `json:"id"` Name string `json:"name"` } `json:"completed_frameworks"` Frameworks []struct { CompletedExecutors []struct { CompletedTasks []AgentTask `json:"completed_tasks"` Container string `json:"container"` Directory string `json:"directory"` ID string `json:"id"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` Name string `json:"name"` QueuedTasks []interface{} `json:"queued_tasks"` Resources struct { Cpus float64 `json:"cpus"` Disk int64 `json:"disk"` Gpus int64 `json:"gpus"` Mem int64 `json:"mem"` } `json:"resources"` Role string `json:"role"` Source string `json:"source"` Tasks []AgentTask `json:"tasks"` Type string `json:"type"` } `json:"completed_executors"` Executors []struct { CompletedTasks []AgentTask `json:"completed_tasks"` Tasks []AgentTask `json:"tasks"` } `json:"executors"` ID string `json:"id"` Name string `json:"name"` } `json:"frameworks"` }
type AgentTask ¶ added in v2.9.0
type AgentTask struct { Container struct { Docker struct { ForcePullImage bool `json:"force_pull_image"` Image string `json:"image"` Network string `json:"network"` Privileged bool `json:"privileged"` } `json:"docker"` LinuxInfo struct { SharePidNamespace bool `json:"share_pid_namespace"` } `json:"linux_info"` Mesos struct { Image struct { Cached bool `json:"cached"` Docker struct { Name string `json:"name"` } `json:"docker"` Type string `json:"type"` } `json:"image"` } `json:"mesos"` RlimitInfo struct { Rlimits []struct { Hard int64 `json:"hard"` Soft int64 `json:"soft"` Type string `json:"type"` } `json:"rlimits"` } `json:"rlimit_info"` Type string `json:"type"` Volumes []struct { ContainerPath string `json:"container_path"` HostPath string `json:"host_path"` Mode string `json:"mode"` Source struct { SandboxPath struct { Path string `json:"path"` Type string `json:"type"` } `json:"sandbox_path"` Type string `json:"type"` } `json:"source"` } `json:"volumes"` } `json:"container"` Discovery struct { Name string `json:"name"` Ports struct { Ports []struct { Labels struct { Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` } `json:"labels"` Name string `json:"name"` Number int64 `json:"number"` Protocol string `json:"protocol"` Visibility string `json:"visibility"` } `json:"ports"` } `json:"ports"` Visibility string `json:"visibility"` } `json:"discovery"` ExecutorID string `json:"executor_id"` FrameworkID string `json:"framework_id"` ID string `json:"id"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` Name string `json:"name"` Resources struct { Cpus int64 `json:"cpus"` Disk int64 `json:"disk"` Gpus int64 `json:"gpus"` Mem int64 `json:"mem"` Ports string `json:"ports"` } `json:"resources"` Role string `json:"role"` SlaveID string `json:"slave_id"` State string `json:"state"` Statuses []struct { ContainerStatus struct { ContainerID struct { Parent struct { Value string `json:"value"` } `json:"parent"` Value string `json:"value"` } `json:"container_id"` NetworkInfos []struct { IPAddresses []struct { IPAddress string `json:"ip_address"` Protocol string `json:"protocol"` } `json:"ip_addresses"` } `json:"network_infos"` } `json:"container_status"` State string `json:"state"` Timestamp float64 `json:"timestamp"` } `json:"statuses"` User string `json:"user"` }
type Framework ¶
type Framework struct { Active bool `json:"active"` Capabilities []string `json:"capabilities"` Checkpoint bool `json:"checkpoint"` CompletedTasks []Task `json:"completed_tasks"` Connected bool `json:"connected"` Executors []struct { Command struct { Argv []string `json:"argv"` Environment struct { Variables []struct { Name string `json:"name"` Type string `json:"type"` Value string `json:"value"` } `json:"variables"` } `json:"environment"` Shell bool `json:"shell"` Uris []struct { Executable bool `json:"executable"` Value string `json:"value"` } `json:"uris"` Value string `json:"value"` } `json:"command"` ExecutorID string `json:"executor_id"` FrameworkID string `json:"framework_id"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` Name string `json:"name"` Resources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Gpus float64 `json:"gpus"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"resources"` Role string `json:"role"` SlaveID string `json:"slave_id"` Type string `json:"type"` } `json:"executors"` FailoverTimeout float64 `json:"failover_timeout"` Hostname string `json:"hostname"` ID string `json:"id"` Name string `json:"name"` OfferedResources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Gpus float64 `json:"gpus"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"offered_resources"` Offers []struct { AllocationInfo struct { Role string `json:"role"` } `json:"allocation_info"` FrameworkID string `json:"framework_id"` ID string `json:"id"` Resources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Gpus float64 `json:"gpus"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"resources"` SlaveID string `json:"slave_id"` } `json:"offers"` Pid string `json:"pid"` Principal string `json:"principal"` Recovered bool `json:"recovered"` RegisteredTime float64 `json:"registered_time"` ReregisteredTime float64 `json:"reregistered_time"` Resources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Gpus float64 `json:"gpus"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"resources"` Role string `json:"role"` Tasks []Task `json:"tasks"` UnreachableTasks []Task `json:"unreachable_tasks"` UnregisteredTime float64 `json:"unregistered_time"` UsedResources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Gpus float64 `json:"gpus"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"used_resources"` User string `json:"user"` WebuiURL string `json:"webui_url"` }
type Frameworks ¶
type Task ¶
type Task struct { Container struct { Docker struct { ForcePullImage bool `json:"force_pull_image"` Image string `json:"image"` Network string `json:"network"` Parameters []struct { Key string `json:"key"` Value string `json:"value"` } `json:"parameters"` PortMappings []struct { ContainerPort int64 `json:"container_port"` HostPort int64 `json:"host_port"` Protocol string `json:"protocol"` } `json:"port_mappings"` Privileged bool `json:"privileged"` } `json:"docker"` LinuxInfo struct { SharePidNamespace bool `json:"share_pid_namespace"` } `json:"linux_info"` Mesos struct { Image struct { Cached bool `json:"cached"` Docker struct { Name string `json:"name"` } `json:"docker"` Type string `json:"type"` } `json:"image"` } `json:"mesos"` NetworkInfos []struct { IPAddresses []struct { Protocol string `json:"protocol"` } `json:"ip_addresses"` Labels struct { Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` } `json:"labels"` Name string `json:"name"` } `json:"network_infos"` Type string `json:"type"` Volumes []struct { ContainerPath string `json:"container_path"` HostPath string `json:"host_path"` Mode string `json:"mode"` Source struct { SandboxPath struct { Path string `json:"path"` Type string `json:"type"` } `json:"sandbox_path"` Secret struct { Reference struct { Name string `json:"name"` } `json:"reference"` Type string `json:"type"` } `json:"secret"` Type string `json:"type"` } `json:"source"` } `json:"volumes"` } `json:"container"` Discovery struct { Name string `json:"name"` Ports struct { Ports []struct { Labels struct { Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` } `json:"labels"` Name string `json:"name"` Number int64 `json:"number"` Protocol string `json:"protocol"` Visibility string `json:"visibility"` } `json:"ports"` } `json:"ports"` Visibility string `json:"visibility"` } `json:"discovery"` ExecutorID string `json:"executor_id"` FrameworkID string `json:"framework_id"` HealthCheck struct { Command struct { Shell bool `json:"shell"` Value string `json:"value"` } `json:"command"` ConsecutiveFailures int64 `json:"consecutive_failures"` DelaySeconds float64 `json:"delay_seconds"` GracePeriodSeconds float64 `json:"grace_period_seconds"` HTTP struct { Path string `json:"path"` Port int64 `json:"port"` Protocol string `json:"protocol"` Scheme string `json:"scheme"` } `json:"http"` IntervalSeconds float64 `json:"interval_seconds"` Tcp struct { Port int64 `json:"port"` Protocol string `json:"protocol"` } `json:"tcp"` TimeoutSeconds float64 `json:"timeout_seconds"` Type string `json:"type"` } `json:"health_check"` ID string `json:"id"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` Name string `json:"name"` Resources struct { Cpus float64 `json:"cpus"` Disk float64 `json:"disk"` Gpus float64 `json:"gpus"` Mem float64 `json:"mem"` Ports string `json:"ports"` } `json:"resources"` Role string `json:"role"` SlaveID string `json:"slave_id"` State string `json:"state"` Statuses []struct { ContainerStatus struct { ContainerID struct { Parent struct { Value string `json:"value"` } `json:"parent"` Value string `json:"value"` } `json:"container_id"` NetworkInfos []struct { IPAddresses []struct { IPAddress string `json:"ip_address"` Protocol string `json:"protocol"` } `json:"ip_addresses"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` Name string `json:"name"` } `json:"network_infos"` } `json:"container_status"` Healthy *bool `json:"healthy"` Labels []struct { Key string `json:"key"` Value string `json:"value"` } `json:"labels"` State string `json:"state"` Timestamp float64 `json:"timestamp"` } `json:"statuses"` User string `json:"user"` }
Click to show internal directories.
Click to hide internal directories.