run

package
v0.1.143 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalApp

type LocalApp struct {
	*apiv1.AppRun
	Command *command.StringCommand
}

func (*LocalApp) Run

func (a *LocalApp) Run(outputCh chan<- *apiv1.RunOutputResponse) (*LocalAppRunInfo, error)

type LocalAppRunInfo

type LocalAppRunInfo struct {
	*command.Cmd
	*LocalApp
	// contains filtered or unexported fields
}

func NewLocalAppRunInfo

func NewLocalAppRunInfo(a *LocalApp) (*LocalAppRunInfo, error)

func (*LocalAppRunInfo) Run

func (a *LocalAppRunInfo) Run(outputCh chan<- *apiv1.RunOutputResponse) error

func (*LocalAppRunInfo) Stop

func (a *LocalAppRunInfo) Stop() error

func (*LocalAppRunInfo) Wait

func (a *LocalAppRunInfo) Wait() error

type LocalDependency

type LocalDependency struct {
	*apiv1.DependencyRun
}

func (*LocalDependency) Run

type LocalDependencyRunInfo

type LocalDependencyRunInfo struct {
	*command.Cmd
	*LocalDependency
	StdoutCh chan string
	StderrCh chan string
}

type LocalRunResult

type LocalRunResult struct {
	Apps     map[string]*LocalAppRunInfo
	Deps     map[string]*LocalDependencyRunInfo
	OutputCh chan *apiv1.RunOutputResponse
}

func Local added in v0.1.28

func Local(ctx context.Context, localApps []*LocalApp, localDeps []*LocalDependency) (*LocalRunResult, error)

func (*LocalRunResult) Stop

func (l *LocalRunResult) Stop() error

func (*LocalRunResult) Wait

func (l *LocalRunResult) Wait() error

type PluginInfo

type PluginInfo struct {
	Response *apiv1.RunStartResponse
	// contains filtered or unexported fields
}

func (*PluginInfo) Wait

func (i *PluginInfo) Wait() error

type PluginRunResult

type PluginRunResult struct {
	Info     map[*plugins.Plugin]*PluginInfo
	OutputCh chan *apiv1.RunOutputResponse
}

func ThroughPlugin added in v0.1.28

func ThroughPlugin(ctx context.Context, runMap map[*plugins.Plugin]*apiv1.RunRequest) (*PluginRunResult, error)

func (*PluginRunResult) Stop

func (l *PluginRunResult) Stop() error

func (*PluginRunResult) Wait

func (l *PluginRunResult) Wait() error

Jump to

Keyboard shortcuts

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