engineconn

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const CLIVersion = "0.18.2"

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 Config

type Config struct {
	Workdir            string
	LogOutput          io.Writer
	RunnerHost         string
	Conn               EngineConn
	VersionOverride    string
	Verbosity          int
	ServeCurrentModule 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