Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(name string, p HypervisorProvider) error
Types ¶
type Console ¶
type Console interface { Attach(param *ConsoleParam) (<-chan Closed, error) Exec(param *ConsoleParam, args []string) (<-chan Closed, error) Wait() error ForceClose() error }
type ConsoleParam ¶
type ConsoleParam struct { Stdin io.Reader Stdout io.Writer Stderr io.Writer Envs map[string]string }
func NewConsoleParam ¶
func NewConsoleParam(stdin io.Reader, stdout, stderr io.Writer) *ConsoleParam
type ConsoleWaitError ¶
type ContainerState ¶
type ContainerState int
type HypervisorDriver ¶
type HypervisorProvider ¶
type HypervisorProvider interface { Name() string CreateDriver(instance *model.Instance, template model.ResourceTemplate) (HypervisorDriver, error) LoadConfig(viper *viper.Viper) error }
func FindProvider ¶
func FindProvider(name string) (p HypervisorProvider, ok bool)
type PtyConsole ¶
Click to show internal directories.
Click to hide internal directories.