engineconn

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const CLIVersion = "0.8.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
	Conn      EngineConn
}

type ConnectParams added in v0.4.3

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 added in v0.4.3

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

func FromLocalCLI added in v0.4.3

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

func FromSessionEnv added in v0.4.3

func FromSessionEnv() (EngineConn, bool, error)

func Get

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

type RoundTripperFunc added in v0.4.3

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

func (RoundTripperFunc) RoundTrip added in v0.4.3

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