package formatter
import "github.com/docker/cli/cli/command/stack/formatter"
Index ¶
- Constants
- func StackWrite(ctx formatter.Context, stacks []*Stack) error
- type Context
- type Format
- type Stack
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 ¶
StackWrite writes formatted stacks using the Context
Types ¶
type Context ¶
Context is an alias for formatter.Context
type 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 ¶
- 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.