package node

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

Index

Functions

func FormatWrite

func FormatWrite(ctx formatter.Context, nodes []swarm.Node, info types.Info) error

FormatWrite writes the context

func InspectFormatWrite

func InspectFormatWrite(ctx formatter.Context, refs []string, getRef inspect.GetRefFunc) error

InspectFormatWrite renders the context for a list of nodes

func NewFormat

func NewFormat(source string, quiet bool) formatter.Format

NewFormat returns a Format for rendering using a node Context

func NewNodeCommand

func NewNodeCommand(dockerCli command.Cli) *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 formatter.go inspect.go list.go opts.go promote.go ps.go remove.go update.go

Version
v24.0.6+incompatible
Published
Aug 31, 2023
Platform
linux/amd64
Imports
24 packages
Last checked
now

Tools for package owners.