Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2213 from allencloud/fix-typos-in-cluster
Browse files Browse the repository at this point in the history
fix typos in swarm/cluster.go
  • Loading branch information
nishanttotla committed May 6, 2016
2 parents 5bbecbc + a28e2e7 commit bc52172
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cluster/swarm/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ func (c *Cluster) listEngines() []*cluster.Engine {
return out
}

// TotalMemory return the total memory of the cluster
// TotalMemory returns the total memory of the cluster
func (c *Cluster) TotalMemory() int64 {
var totalMemory int64
for _, engine := range c.engines {
Expand All @@ -833,7 +833,7 @@ func (c *Cluster) TotalMemory() int64 {
return totalMemory
}

// TotalCpus return the total memory of the cluster
// TotalCpus returns the total memory of the cluster
func (c *Cluster) TotalCpus() int64 {
var totalCpus int64
for _, engine := range c.engines {
Expand Down Expand Up @@ -891,7 +891,7 @@ func (c *Cluster) RANDOMENGINE() (*cluster.Engine, error) {
return c.engines[nodes[0].ID], nil
}

// RenameContainer rename a container
// RenameContainer renames a container
func (c *Cluster) RenameContainer(container *cluster.Container, newName string) error {
// check new name whether available
if !c.checkNameUniqueness(newName) {
Expand All @@ -903,7 +903,7 @@ func (c *Cluster) RenameContainer(container *cluster.Container, newName string)
return err
}

// BuildImage build an image
// BuildImage builds an image
func (c *Cluster) BuildImage(buildImage *types.ImageBuildOptions, out io.Writer) error {
c.scheduler.Lock()

Expand Down Expand Up @@ -932,7 +932,7 @@ func (c *Cluster) BuildImage(buildImage *types.ImageBuildOptions, out io.Writer)
return nil
}

// TagImage tag an image
// TagImage tags an image
func (c *Cluster) TagImage(IDOrName string, repo string, tag string, force bool) error {
c.RLock()
defer c.RUnlock()
Expand Down

0 comments on commit bc52172

Please sign in to comment.