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 ¶
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.
Click to show internal directories.
Click to hide internal directories.