firecrackeroci

package
v0.0.0-...-7fe54d0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VMIDAnnotationKey is the key specified in an OCI-runtime config annotation section
	// specifying the ID of the VM in which the container should be spun up.
	VMIDAnnotationKey = "aws.firecracker.vm.id"
)

Variables

This section is empty.

Functions

func WithVMID

func WithVMID(vmID string) oci.SpecOpts

WithVMID annotates a containerd client's container object with a given firecracker VMID.

func WithVMNetwork

func WithVMNetwork(ctx context.Context, cli oci.Client, ctr *containers.Container, spec *oci.Spec) error

WithVMNetwork modifies a container to use its host network settings (host netns, host utsns, host /etc/resolv.conf and host /etc/hosts). It's intended to configure Firecracker-containerd containers to have access to the network (if any) their VM was configured with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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