package formatter

import "github.com/docker/cli/cli/command/stack/formatter"

Index

Constants

const (
	// SwarmStackTableFormat is the default Swarm stack format
	SwarmStackTableFormat formatter.Format = "table {{.Name}}\t{{.Services}}"

	// TableFormatKey is an alias for formatter.TableFormatKey
	TableFormatKey = formatter.TableFormatKey
)

Functions

func StackWrite

func StackWrite(ctx formatter.Context, stacks []*Stack) error

StackWrite writes formatted stacks using the Context

Types

type Context

type Context = formatter.Context

Context is an alias for formatter.Context

type Format

type Format = formatter.Format

Format is an alias for formatter.Format

type Stack

type Stack struct {
	// Name is the name of the stack
	Name string
	// Services is the number of the services
	Services int
}

Stack contains deployed stack information.

Source Files

formatter.go

Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
4 hours ago

Tools for package owners.