engine

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 40 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeWorkdir added in v0.5.3

func NormalizeWorkdir(workdir string) (string, error)

func Start

func Start(ctx context.Context, startOpts Config, fn StartCallback) error

nolint: gocyclo

Types

type AnyDirSource added in v0.3.3

type AnyDirSource struct{}

func (AnyDirSource) LookupDir added in v0.3.3

func (AnyDirSource) LookupDir(name string) (filesync.SyncedDir, bool)

type Config

type Config struct {
	Workdir            string
	JournalFile        string
	ProgrockWriter     progrock.Writer
	DisableHostRW      bool
	RunnerHost         string
	SessionToken       string
	UserAgent          string
	EngineNameCallback func(string)
	CloudURLCallback   func(string)
}

type NamedSocketProviders added in v0.3.7

type NamedSocketProviders map[string]sshforward.SSHServer

type SocketProvider added in v0.3.7

type SocketProvider struct {
	Named NamedSocketProviders

	EnableHostNetworkAccess bool
}

Map of id -> handler for that id.

func (SocketProvider) CheckAgent added in v0.3.7

func (SocketProvider) ForwardAgent added in v0.3.7

func (m SocketProvider) ForwardAgent(stream sshforward.SSH_ForwardAgentServer) error

func (SocketProvider) Register added in v0.3.7

func (m SocketProvider) Register(server *grpc.Server)

type StartCallback

type StartCallback func(context.Context, *router.Router) error

Directories

Path Synopsis
distconsts module

Jump to

Keyboard shortcuts

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