exec

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Astral

func Astral(ctx context.Context) (err error)

Astral starts astral daemon process in a given context.Context and waits until available.

func NewBundleRunner

func NewBundleRunner(cacheDir string) target.Runner[target.BundleExec]

func NewDistRunner

func NewDistRunner() target.Runner[target.DistExec]

func NewPortal

func NewPortal[T target.Portal](command ...string) target.Runner[T]

func Tray

func Tray(_ context.Context) error

Types

type BundleRunner

type BundleRunner struct {
	// contains filtered or unexported fields
}

func (*BundleRunner) Reload

func (r *BundleRunner) Reload() error

func (*BundleRunner) Run

func (r *BundleRunner) Run(ctx context.Context, bundle target.BundleExec) error

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

func NewDispatcher

func NewDispatcher(executable string) *Dispatcher

func (Dispatcher) Dispatch

func (s Dispatcher) Dispatch(ctx context.Context, cmd string, args ...string) error

type DistRunner

type DistRunner struct {
	// contains filtered or unexported fields
}

func (*DistRunner) Reload

func (d *DistRunner) Reload() error

func (*DistRunner) Run

func (d *DistRunner) Run(ctx context.Context, src target.DistExec) (err error)

type Portal

type Portal[T target.Portal] struct {
	// contains filtered or unexported fields
}

func (*Portal[T]) Reload

func (p *Portal[T]) Reload() (err error)

func (*Portal[T]) Run

func (p *Portal[T]) Run(ctx context.Context, src T) (err error)

Jump to

Keyboard shortcuts

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