{"modulePath":"github.com/tonistiigi/docker-cli","version":"v0.0.0-20200928012449-5ed7f26fc0ed","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package formatter\n\n## Constants\n\n```go\nconst (\n\t// KubernetesStackTableFormat is the default Kubernetes stack format\n\tKubernetesStackTableFormat formatter.Format = \"table {{.Name}}\\t{{.Services}}\\t{{.Orchestrator}}\\t{{.Namespace}}\"\n\n\t// SwarmStackTableFormat is the default Swarm stack format\n\tSwarmStackTableFormat formatter.Format = \"table {{.Name}}\\t{{.Services}}\\t{{.Orchestrator}}\"\n\n\t// TableFormatKey is an alias for formatter.TableFormatKey\n\tTableFormatKey = formatter.TableFormatKey\n)\n```\n\n## Functions\n\n```go\nfunc StackWrite(ctx formatter.Context, stacks []*Stack) error\n```\nStackWrite writes formatted stacks using the Context\n\n## Types\n\n```go\ntype Context = formatter.Context\n```\nContext is an alias for formatter.Context\n\n```go\ntype Format = formatter.Format\n```\nFormat is an alias for formatter.Format\n\n```go\ntype Stack struct {\n\t// Name is the name of the stack\n\tName string\n\t// Services is the number of the services\n\tServices int\n\t// Orchestrator is the platform where the stack is deployed\n\tOrchestrator string\n\t// Namespace is the Kubernetes namespace assigned to the stack\n\tNamespace string\n}\n```\nStack contains deployed stack information.\n\n","path":"github.com/tonistiigi/docker-cli/cli/command/stack/formatter","name":"formatter","synopsis":"","isRedistributable":true}
