Documentation
¶
Index ¶
- Constants
- Variables
- func MockBuild(envID, buildID string)
- type BuildLogsWriter
- 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) DockerContextPath() string
- func (e *Env) KernelDirPath() string
- func (e *Env) KernelMountedPath() string
- func (e *Env) MoveToEnvDir(ctx context.Context, tracer trace.Tracer) error
- func (e *Env) RootfsSize() int64
- type FCNetwork
- type LogsData
- type MultiWriter
- type Rootfs
- type Snapshot
Constants ¶
View Source
const (
APIHost = "http://localhost:50001"
)
View Source
const (
ToMBShift = 20
)
Variables ¶
View Source
var EnvInstanceTemplate = template.Must(template.New("provisioning-script").Parse(provisionEnvScriptFile))
Functions ¶
Types ¶
type BuildLogsWriter ¶
type BuildLogsWriter struct { Done chan struct{} // contains filtered or unexported fields }
func (BuildLogsWriter) Close ¶
func (w BuildLogsWriter) Close() error
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 directory where all envs are stored. EnvsDiskPath string // Path to the directory where all docker contexts are stored. This directory is a FUSE mounted bucket where the contexts were uploaded. DockerContextsPath string // Docker registry where the docker images are uploaded for archivation/caching. DockerRegistry string // Path to the firecracker binary. FirecrackerBinaryPath string // Path to the envd. EnvdPath string ContextFileName 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 // Google service account JSON secret base64 encoded. GoogleServiceAccountBase64 string // Path to the directory where the dir with kernel is mounted. KernelMountDir string // Directory with the kernels. KernelsDir string // Name of the kernel file. KernelName string // Version of the kernel. KernelVersion string // Whether to use hugepages or not. HugePages bool // contains filtered or unexported fields }
func (*Env) DockerContextPath ¶
Path to the docker context.
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) RootfsSize ¶
Path to the directory where the kernel is stored.
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.