vm

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const RAVEL_USER = "ravel-jailer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CloudHypervisorBinary string `json:"cloud_hypervisor_binary" toml:"cloud_hypervisor_binary"`
	JailerBinary          string `json:"jailer_binary" toml:"jailer_binary"`
	InitBinary            string `json:"init_binary" toml:"init_binary"`
	LinuxKernel           string `json:"linux_kernel" toml:"linux_kernel"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(
	config Config,
	ctrd *client.Client,
) (*Driver, error)

func (*Driver) BuildInstanceTask

func (b *Driver) BuildInstanceTask(ctx context.Context, instance *instance.Instance, disks []disks.Disk) (drivers.InstanceTask, error)

BuildInstanceTask implements instance.VMBuilder.

func (*Driver) CleanupInstance

func (b *Driver) CleanupInstance(ctx context.Context, instance *instance.Instance) error

func (*Driver) CleanupInstanceTask

func (b *Driver) CleanupInstanceTask(ctx context.Context, instance *instance.Instance) error

CleanupInstanceTask implements instance.VMBuilder.

func (*Driver) RecoverInstanceTask

func (b *Driver) RecoverInstanceTask(ctx context.Context, i *instance.Instance) (drivers.InstanceTask, error)

RecoverInstanceTask implements instance.VMBuilder.

func (*Driver) Snapshotter

func (b *Driver) Snapshotter() string

type RunResult

type RunResult struct {
	HasBeenStopped bool
	VMExited       bool
	InitFailed     bool
	ProcessExited  bool
	ExitCode       int
	ExitedAt       time.Time
}

type User

type User struct {
	Uid int
	Gid int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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