package node

import "github.com/dotcloud/docker/cli/command/node"

Index

Functions

func NewNodeCommand

func NewNodeCommand(dockerCli *command.DockerCli) *cobra.Command

NewNodeCommand returns a cobra command for `node` subcommands

func Reference

func Reference(ctx context.Context, client apiclient.APIClient, ref string) (string, error)

Reference returns the reference of a node. The special value "self" for a node reference is mapped to the current node, hence the node ID is retrieved using the `/info` endpoint.

Source Files

cmd.go demote.go inspect.go list.go opts.go promote.go ps.go remove.go update.go

Version
v1.13.1-rc1
Published
Jan 27, 2017
Platform
linux/amd64
Imports
21 packages
Last checked
4 seconds ago

Tools for package owners.