Documentation ¶
Index ¶
- Constants
- Variables
- type Env
- func (e *Env) Build(ctx context.Context, tracer trace.Tracer, docker *client.Client, ...) error
- func (e *Env) Cleanup(ctx context.Context, tracer trace.Tracer)
- func (e *Env) KernelDirPath() string
- func (e *Env) KernelMountedPath() string
- func (e *Env) MoveToEnvDir(ctx context.Context, tracer trace.Tracer) error
- func (e *Env) RootfsSizeMB() int64
- type FCNetwork
- type MultiWriter
- type Rootfs
- type Snapshot
Constants ¶
View Source
const (
ToMBShift = 20
)
Variables ¶
View Source
var EnvInstanceTemplate = template.Must(template.New("provisioning-script").Parse(provisionEnvScriptFile))
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { // Unique ID of the env. EnvID string // Unique ID of the build - this is used to distinguish builds of the same env that can start simultaneously. BuildID string // Command to run when building the env. StartCmd string // Path to the firecracker binary. FirecrackerBinaryPath string // The number of vCPUs to allocate to the VM. VCpuCount int64 // The amount of RAM memory to allocate to the VM, in MiB. MemoryMB int64 // The amount of free disk to allocate to the VM, in MiB. DiskSizeMB int64 // Path to the directory where the temporary files for the build are stored. BuildLogsWriter io.Writer // Version of the kernel. KernelVersion string // Whether to use hugepages or not. HugePages bool // contains filtered or unexported fields }
func (*Env) KernelDirPath ¶
Path to the directory where the kernel is stored.
func (*Env) KernelMountedPath ¶
Path to the directory where the kernel can be accessed inside when the dirs are mounted.
func (*Env) MoveToEnvDir ¶
func (*Env) RootfsSizeMB ¶
Real size in MB of rootfs after building the env
type FCNetwork ¶
type FCNetwork struct {
// contains filtered or unexported fields
}
func NewFCNetwork ¶
type MultiWriter ¶
type MultiWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.