Documentation ¶
Index ¶
- Constants
- Variables
- func IsBootable(p string) bool
- func MachineDead(status string) bool
- func MachineRunning(status string) bool
- func MachineStatus(ctx context.Context, machineId string) string
- func MachinectlPowerOff(ctx context.Context, machineId string) error
- func MachinectlShell(ctx context.Context, machineId string, runInfo *RunInfo) (int, error)
- func MachinectlTerminate(ctx context.Context, machineId string) error
- func SystemdNspawnBoot(ctx context.Context, machineId string, dir string, ctnInfo *ContainerInfo) error
- func SystemdNspawnRun(ctx context.Context, machineId string, dir string, ctnInfo *ContainerInfo, ...) (int, error)
- func SystemdRun(ctx context.Context, machineId string, runInfo *RunInfo) (int, error)
- type ContainerInfo
- type ErrCancelled
- type NetworkInfo
- type RunInfo
- type StdDevInfo
Constants ¶
View Source
const PowerOffTimeout = 30 * time.Second
Variables ¶
View Source
var BootableFiles = []string{
"/usr/lib/systemd/systemd",
"/lib/systemd/systemd",
"/sbin/init",
}
Functions ¶
func IsBootable ¶
func MachineDead ¶
func MachineRunning ¶
func MachinectlShell ¶
func SystemdNspawnBoot ¶
func SystemdNspawnRun ¶
Types ¶
type ContainerInfo ¶
type ContainerInfo struct { Init bool InitArgs []string Properties []string Network *NetworkInfo }
type ErrCancelled ¶
type ErrCancelled struct {
// contains filtered or unexported fields
}
func (ErrCancelled) Error ¶
func (e ErrCancelled) Error() string
type NetworkInfo ¶
type NetworkInfo struct { //Private bool //IfaceMoveIn []string //MacVlan []string //IpVlan []string Zone string }
TODO: Network Configuration NOTE: NetworkInfo is not used for now.
Click to show internal directories.
Click to hide internal directories.