package task
import "github.com/docker/cli/cli/command/task"
Index ¶
- func DefaultFormat(configFile *configfile.ConfigFile, quiet bool) string
- func FormatWrite(ctx formatter.Context, tasks []swarm.Task, names map[string]string, nodes map[string]string) error
- func NewTaskFormat(source string, quiet bool) formatter.Format
- func Print(ctx context.Context, dockerCli command.Cli, tasks []swarm.Task, resolver *idresolver.IDResolver, trunc, quiet bool, format string) error
Functions ¶
func DefaultFormat ¶
func DefaultFormat(configFile *configfile.ConfigFile, quiet bool) string
DefaultFormat returns the default format from the config file, or table format if nothing is set in the config.
func FormatWrite ¶
func FormatWrite(ctx formatter.Context, tasks []swarm.Task, names map[string]string, nodes map[string]string) error
FormatWrite writes the context
func NewTaskFormat ¶
NewTaskFormat returns a Format for rendering using a task Context
func Print ¶
func Print(ctx context.Context, dockerCli command.Cli, tasks []swarm.Task, resolver *idresolver.IDResolver, trunc, quiet bool, format string) error
Print task information in a format. Besides this, command `docker node ps <node>` and `docker stack ps` will call this, too.
Source Files ¶
- Version
- v23.0.10+incompatible
- Published
- Jan 25, 2024
- Platform
- js/wasm
- Imports
- 14 packages
- Last checked
- 3 hours ago –
Tools for package owners.