engineconn

package
v0.21.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 28 Imported by: ? 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

This is an extremely minimal subset of github.com/dagger/otel-go so we can avoid depending on everything else. Critically we have to avoid pre-1.0 dependencies like the OTel logging SDK.

Index

Constants

View Source
const CLIVersion = "0.21.12"

Variables

View Source
var (
	// Only modified by tests, not changeable by outside users due to being in
	// an internal package
	OverrideCLIArchiveURL string
	OverrideChecksumsURL  string
)

Functions

This section is empty.

Types

type CLIDownloader added in v0.21.0

type CLIDownloader struct {
	Ref        string
	Release    bool
	LogOutput  io.Writer
	CleanupOld bool
}

func (CLIDownloader) Download added in v0.21.0

func (d CLIDownloader) Download(ctx context.Context) (string, error)

type Config

type Config struct {
	Workdir              string
	Workspace            string
	LogOutput            io.Writer
	RunnerHost           string
	Conn                 EngineConn
	VersionOverride      string
	Verbosity            int
	ExtraEnv             []string
	LoadWorkspaceModules bool
	SkipWorkspaceModules bool
}

type ConnectParams

type ConnectParams struct {
	Port         int    `json:"port"`
	SessionToken string `json:"session_token"`
}

type EngineConn

type EngineConn interface {
	graphql.Doer
	Host() string
	Close() error
}

func FromDownloadedCLI

func FromDownloadedCLI(ctx context.Context, cfg *Config) (EngineConn, error)

func FromLocalCLI

func FromLocalCLI(ctx context.Context, cfg *Config) (EngineConn, bool, error)

func FromSessionEnv

func FromSessionEnv() (EngineConn, bool, error)

func Get

func Get(ctx context.Context, cfg *Config) (EngineConn, error)

type RoundTripperFunc

type RoundTripperFunc func(*http.Request) (*http.Response, error)

func (RoundTripperFunc) RoundTrip

func (f RoundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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