node

package
v28.4.0-rc.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatWrite deprecated

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

FormatWrite writes the context

Deprecated: this function was only used internally and will be removed in the next release.

func InspectFormatWrite deprecated

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

InspectFormatWrite renders the context for a list of nodes

Deprecated: this function was only used internally and will be removed in the next release.

func NewFormat deprecated

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

NewFormat returns a Format for rendering using a node Context

Deprecated: this function was only used internally and will be removed in the next release.

func NewNodeCommand deprecated

func NewNodeCommand(dockerCLI command.Cli) *cobra.Command

NewNodeCommand returns a cobra command for `node` subcommands

Deprecated: Do not import commands directly. They will be removed in a future release.

func Reference

func Reference(ctx context.Context, apiClient client.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.

Types

This section is empty.

Source Files

  • cmd.go
  • completion.go
  • demote.go
  • formatter.go
  • inspect.go
  • list.go
  • opts.go
  • promote.go
  • ps.go
  • remove.go
  • update.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL