package node
import "github.com/docker/cli/cli/command/node"
Index ¶
- func FormatWrite(ctx formatter.Context, nodes []swarm.Node, info system.Info) error
- func InspectFormatWrite(ctx formatter.Context, refs []string, getRef inspect.GetRefFunc) error
- func NewFormat(source string, quiet bool) formatter.Format
- func NewNodeCommand(dockerCli command.Cli) *cobra.Command
- func Reference(ctx context.Context, apiClient client.APIClient, ref string) (string, error)
Functions ¶
func FormatWrite ¶
FormatWrite writes the context
func InspectFormatWrite ¶
InspectFormatWrite renders the context for a list of nodes
func NewFormat ¶
NewFormat returns a Format for rendering using a node Context
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 ¶
cmd.go completion.go demote.go formatter.go inspect.go list.go opts.go promote.go ps.go remove.go update.go
- Version
- v28.0.1+incompatible
- Published
- Feb 25, 2025
- Platform
- windows/amd64
- Imports
- 26 packages
- Last checked
- 8 hours ago –
Tools for package owners.