envspec

package
v0.7.36 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Stack        string `json:"stack"`
	Setup        []Step `json:"setup"`
	Image        string `json:"image"`
	ImageVersion string `json:"image_version"`
}

Environment describes the detected tech stack and build configuration for a repository.

func (*Environment) BinaryPaths

func (e *Environment) BinaryPaths() string

BinaryPaths returns colon-separated PATH prefixes needed for the detected stack. cimg images set these via Docker ENV which e2b does not propagate to SSH sessions.

func (*Environment) SetupStep

func (e *Environment) SetupStep(name string) string

SetupStep returns the command for the named setup step, or "" if absent.

type Step

type Step struct {
	Name    string `json:"name"`
	Command string `json:"command"`
}

Step is a single named provisioning command in the sidecar setup sequence.

Jump to

Keyboard shortcuts

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