lifecycle_v2

command
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Lifecycle example for self-hosted E2B control planes (required on runtime < 2025.44 and still actively served across all self-hosted runtime <= 2026.30; note that POST /v2/templates is retired with 410 Gone on E2B Cloud, whereas ListV1, SetPublicV1, and CreateV1 are soft-deprecated in OpenAPI and remain served on both self-hosted and E2B Cloud).

Compared with ../lifecycle (which targets E2B Cloud), this example uses the legacy endpoints required on older self-hosted servers:

  • cli.ListV1 (GET /templates, required on runtime < 2026.26)
  • cli.BuildStreamV2 (POST /v2/templates, required on runtime < 2025.44)
  • cli.SetPublicV1 (PATCH /templates/{id}, required on runtime < 2026.05)
  • client.CreateV1 (POST /sandboxes, required on runtime <= 2026.30)

Usage:

# On early self-hosted clusters (< 2025.44), set both E2B_API_KEY (used by
# BuildStreamV2) and E2B_ACCESS_TOKEN (used by ListV1 / SetPublicV1 / Delete).
source ./.env && go run ./examples/lifecycle_v2

Jump to

Keyboard shortcuts

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