e2b

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E2BOptions

type E2BOptions struct {
	TemplateID string
	Timeout    time.Duration
	Metadata   map[string]string
}

E2BOptions carries E2B-specific session create parameters.

type E2BSandboxEnvironment

type E2BSandboxEnvironment struct {
	// contains filtered or unexported fields
}

E2BSandboxEnvironment implements environment.ExecutionEnvironment using E2B REST APIs.

func NewE2BSandboxEnvironment

func NewE2BSandboxEnvironment(apiKey string, opts ...Option) *E2BSandboxEnvironment

func (*E2BSandboxEnvironment) Capabilities

func (*E2BSandboxEnvironment) Create

func (*E2BSandboxEnvironment) CreateSnapshot

func (*E2BSandboxEnvironment) Destroy

func (e *E2BSandboxEnvironment) Destroy(ctx context.Context) error

func (*E2BSandboxEnvironment) ExecuteTool

func (*E2BSandboxEnvironment) Pause

func (*E2BSandboxEnvironment) Resume

func (e *E2BSandboxEnvironment) Resume(ctx context.Context) error

func (*E2BSandboxEnvironment) Rollback

func (*E2BSandboxEnvironment) State

type Option

type Option func(*E2BSandboxEnvironment)

func WithBaseURL

func WithBaseURL(baseURL string) Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

Jump to

Keyboard shortcuts

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