github.com/moby/docker@v26.1.3+incompatible/api/types/container/options.go (about)

     1  package container
     2  
     3  import "github.com/docker/docker/api/types/filters"
     4  
     5  // ResizeOptions holds parameters to resize a TTY.
     6  // It can be used to resize container TTYs and
     7  // exec process TTYs too.
     8  type ResizeOptions struct {
     9  	Height uint
    10  	Width  uint
    11  }
    12  
    13  // AttachOptions holds parameters to attach to a container.
    14  type AttachOptions struct {
    15  	Stream     bool
    16  	Stdin      bool
    17  	Stdout     bool
    18  	Stderr     bool
    19  	DetachKeys string
    20  	Logs       bool
    21  }
    22  
    23  // CommitOptions holds parameters to commit changes into a container.
    24  type CommitOptions struct {
    25  	Reference string
    26  	Comment   string
    27  	Author    string
    28  	Changes   []string
    29  	Pause     bool
    30  	Config    *Config
    31  }
    32  
    33  // RemoveOptions holds parameters to remove containers.
    34  type RemoveOptions struct {
    35  	RemoveVolumes bool
    36  	RemoveLinks   bool
    37  	Force         bool
    38  }
    39  
    40  // StartOptions holds parameters to start containers.
    41  type StartOptions struct {
    42  	CheckpointID  string
    43  	CheckpointDir string
    44  }
    45  
    46  // ListOptions holds parameters to list containers with.
    47  type ListOptions struct {
    48  	Size    bool
    49  	All     bool
    50  	Latest  bool
    51  	Since   string
    52  	Before  string
    53  	Limit   int
    54  	Filters filters.Args
    55  }
    56  
    57  // LogsOptions holds parameters to filter logs with.
    58  type LogsOptions struct {
    59  	ShowStdout bool
    60  	ShowStderr bool
    61  	Since      string
    62  	Until      string
    63  	Timestamps bool
    64  	Follow     bool
    65  	Tail       string
    66  	Details    bool
    67  }