2017-12-04 06:30:39 -05:00
|
|
|
package options
|
|
|
|
|
|
|
|
import "github.com/docker/cli/opts"
|
|
|
|
|
|
|
|
// Deploy holds docker stack deploy options
|
|
|
|
type Deploy struct {
|
2017-09-29 08:21:40 -04:00
|
|
|
Composefiles []string
|
2017-12-04 06:30:39 -05:00
|
|
|
Namespace string
|
|
|
|
ResolveImage string
|
|
|
|
SendRegistryAuth bool
|
|
|
|
Prune bool
|
2023-05-05 10:00:30 -04:00
|
|
|
Detach bool
|
|
|
|
Quiet bool
|
2017-12-04 06:30:39 -05:00
|
|
|
}
|
|
|
|
|
2020-09-22 05:16:05 -04:00
|
|
|
// Config holds docker stack config options
|
|
|
|
type Config struct {
|
|
|
|
Composefiles []string
|
|
|
|
SkipInterpolation bool
|
|
|
|
}
|
|
|
|
|
2017-12-04 06:30:39 -05:00
|
|
|
// List holds docker stack ls options
|
|
|
|
type List struct {
|
2018-04-09 09:13:16 -04:00
|
|
|
Format string
|
|
|
|
AllNamespaces bool
|
2017-12-04 06:30:39 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|