bootstrap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CredentialScopeForRoot

func CredentialScopeForRoot(root string) (string, error)

func NewDatabaseRecovery

func NewDatabaseRecovery(options Options) bridge.DatabaseRecovery

func NewInitializer

func NewInitializer(options Options) bridge.Initializer

func NewProductionRemoteNodes

func NewProductionRemoteNodes(
	ctx context.Context,
	dependencies ProductionRemoteNodeDependencies,
) (*productionRemoteNodes, func() error, error)

Types

type Options

type Options struct {
	ProtocolTransport       http.RoundTripper
	UserConfigDir           func() (string, error)
	AppVersion              string
	CaseBundle              fs.FS
	SuiteBundle             fs.FS
	ExecutablePath          func() (string, error)
	ReportRunDiagnostic     func(runs.Diagnostic)
	ReportCredentialCleanup func(error)
	CredentialStore         credentials.Store
	RunnerSource            runnerartifacts.Source
	RunnerRelease           string
	RemoteConnector         remotenodes.Connector
	RunnerConnector         runnerConnector
}

func DefaultOptions

func DefaultOptions(appVersion string) Options

type ProductionClock

type ProductionClock struct{}

func (ProductionClock) Now

func (ProductionClock) Now() time.Time

type ProductionRemoteNodeDependencies

type ProductionRemoteNodeDependencies struct {
	Directory   string
	Credentials credentials.Store
	Usage       remoteNodeUsageReader
	Options     Options
}

type RunnerConnection

type RunnerConnection interface {
	remotesync.Connection
	jobs.Backend
}

func OpenProductionRunner

func OpenProductionRunner(
	ctx context.Context,
	configuration *remotenodes.Service,
	requested remotesync.Node,
	access jobs.Access,
) (RunnerConnection, error)

Jump to

Keyboard shortcuts

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