Documentation ¶
Index ¶
Constants ¶
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 WithVMLocalImageConfig ¶
func WithVMLocalImageConfig(image containerd.Image) oci.SpecOpts
WithVMLocalImageConfig configures a spec with the content of the image's config. It is similar to containerd's oci.WithImageConfig except that it does not access the image's rootfs on the host. Instead, it configures what it can on the host and passes information to the agent running in the VM to inspect the image's rootfs.
func WithVMLocalUser ¶
WithVMLocalUser configures the user of the spec. It is similar to oci.WithUser except that it doesn't map username -> uid or group name -> gid. It passes the user to the agent running inside the VM to do that mapping.
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.