Make use of existing modules and functions in order to output the merged configs. Added skip interpolation flag of variables, so that you can pipe the output back to stack deploy without much hassle. Signed-off-by: Stoica-Marcu Floris-Andrei <floris.sm@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
48 lines
873 B
Go
48 lines
873 B
Go
package options
|
|
|
|
import "github.com/docker/cli/opts"
|
|
|
|
// Deploy holds docker stack deploy options
|
|
type Deploy struct {
|
|
Composefiles []string
|
|
Namespace string
|
|
ResolveImage string
|
|
SendRegistryAuth bool
|
|
Prune bool
|
|
}
|
|
|
|
// Config holds docker stack config options
|
|
type Config struct {
|
|
Composefiles []string
|
|
SkipInterpolation bool
|
|
}
|
|
|
|
// List holds docker stack ls options
|
|
type List struct {
|
|
Format string
|
|
AllNamespaces bool
|
|
}
|
|
|
|
// PS holds docker stack ps options
|
|
type PS struct {
|
|
Filter opts.FilterOpt
|
|
NoTrunc bool
|
|
Namespace string
|
|
NoResolve bool
|
|
Quiet bool
|
|
Format string
|
|
}
|
|
|
|
// Remove holds docker stack remove options
|
|
type Remove struct {
|
|
Namespaces []string
|
|
}
|
|
|
|
// Services holds docker stack services options
|
|
type Services struct {
|
|
Quiet bool
|
|
Format string
|
|
Filter opts.FilterOpt
|
|
Namespace string
|
|
}
|