package node
import "github.com/dotcloud/docker/api/client/node"
Index ¶
- func NewNodeCommand(dockerCli *client.DockerCli) *cobra.Command
- func Reference(client apiclient.APIClient, ctx context.Context, ref string) (string, error)
Functions ¶
func NewNodeCommand ¶
NewNodeCommand returns a cobra command for `node` subcommands
func Reference ¶
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 ¶
accept.go cmd.go demote.go inspect.go list.go opts.go promote.go remove.go tasks.go update.go
- Version
- v1.12.0-rc4
- Published
- Jul 13, 2016
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 5 minutes ago –
Tools for package owners.