package node
import "github.com/docker/swarm/scheduler/node"
Index ¶
Types ¶
type Node ¶
type Node struct { ID string IP string Addr string Name string Labels map[string]string Containers cluster.Containers Images []*cluster.Image UsedMemory int64 UsedCpus int64 TotalMemory int64 TotalCpus int64 HealthIndicator int64 }
Node is an abstract type used by the scheduler.
func NewNode ¶
NewNode creates a node from an engine.
func (*Node) AddContainer ¶
AddContainer injects a container into the internal state.
func (*Node) Container ¶
Container returns the container with IDOrName in the engine.
func (*Node) IsHealthy ¶
IsHealthy responses if node is in healthy state
Source Files ¶
- Version
- v1.2.9 (latest)
- Published
- Jun 1, 2018
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 weeks ago –
Tools for package owners.