Documentation
¶
Overview ¶
Package restart provides the container restart command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdRestart ¶
func NewCmdRestart(f *cmdutil.Factory, runF func(context.Context, *RestartOptions) error) *cobra.Command
NewCmdRestart creates a new restart command.
Types ¶
type RestartOptions ¶
type RestartOptions struct {
IOStreams *iostreams.IOStreams
Client func(context.Context) (*docker.Client, error)
Config func() (config.Config, error)
ProjectManager func() (project.ProjectManager, error)
Agent bool // treat arguments as agents names
Timeout int
Signal string
Containers []string
}
RestartOptions defines the options for the restart command.
Click to show internal directories.
Click to hide internal directories.