restart

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 13 Imported by: 0

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)
	HostProxy      func() hostproxy.HostProxyService
	Firewall       func(context.Context) (firewall.FirewallManager, error)
	SocketBridge   func() socketbridge.SocketBridgeManager
	Logger         func() (*logger.Logger, error)

	Agent      bool // treat arguments as agents names
	Timeout    int
	Signal     string
	Containers []string
}

RestartOptions defines the options for the restart command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL