github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/cli/command/stack/options/opts.go (about)

     1  package options
     2  
     3  import "github.com/khulnasoft/cli/opts"
     4  
     5  // Deploy holds docker stack deploy options
     6  type Deploy struct {
     7  	Composefiles     []string
     8  	Namespace        string
     9  	ResolveImage     string
    10  	SendRegistryAuth bool
    11  	Prune            bool
    12  	Detach           bool
    13  	Quiet            bool
    14  }
    15  
    16  // Config holds docker stack config options
    17  type Config struct {
    18  	Composefiles      []string
    19  	SkipInterpolation bool
    20  }
    21  
    22  // List holds docker stack ls options
    23  type List struct {
    24  	Format        string
    25  	AllNamespaces bool
    26  }
    27  
    28  // PS holds docker stack ps options
    29  type PS struct {
    30  	Filter    opts.FilterOpt
    31  	NoTrunc   bool
    32  	Namespace string
    33  	NoResolve bool
    34  	Quiet     bool
    35  	Format    string
    36  }
    37  
    38  // Remove holds docker stack remove options
    39  type Remove struct {
    40  	Namespaces []string
    41  	Detach     bool
    42  }
    43  
    44  // Services holds docker stack services options
    45  type Services struct {
    46  	Quiet     bool
    47  	Format    string
    48  	Filter    opts.FilterOpt
    49  	Namespace string
    50  }