mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
Merge pull request #961 from ahmetalpbalkan/patch-3
nits: scheduler/node/node.go
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/docker/swarm/cluster"
|
||||
)
|
||||
|
||||
// Node is an abstract type used by the scheduler
|
||||
// Node is an abstract type used by the scheduler.
|
||||
type Node struct {
|
||||
ID string
|
||||
IP string
|
||||
@@ -25,7 +25,7 @@ type Node struct {
|
||||
IsHealthy bool
|
||||
}
|
||||
|
||||
// NewNode creates a node from an engine
|
||||
// NewNode creates a node from an engine.
|
||||
func NewNode(e *cluster.Engine) *Node {
|
||||
return &Node{
|
||||
ID: e.ID,
|
||||
@@ -67,7 +67,7 @@ func (n *Node) Container(IDOrName string) *cluster.Container {
|
||||
return nil
|
||||
}
|
||||
|
||||
// AddContainer inject a container into the internal state.
|
||||
// AddContainer injects a container into the internal state.
|
||||
func (n *Node) AddContainer(container *cluster.Container) error {
|
||||
if container.Config != nil {
|
||||
memory := container.Config.Memory
|
||||
|
||||
Reference in New Issue
Block a user