firecrackeroci

package
v0.0.0-...-6b2d232 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

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 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

func WithVMLocalUser(user string) oci.SpecOpts

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.

Jump to

Keyboard shortcuts

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