runs

package
v0.0.86 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRunDisapproved = errors.New("run was disapproved")
)

Functions

func Create

func Create(cfg api.Config, workspace types.Workspace, runConfig *types.RunConfig, isApproved *bool, isDestroy bool) (*types.Run, error)

func GetBrowserUrl added in v0.0.69

func GetBrowserUrl(cfg api.Config, workspace types.Workspace, run types.Run) string

func GetPromotion

func GetPromotion(cfg api.Config, workspace types.Workspace, moduleSourceOverride string) (*types.RunConfig, error)

GetPromotion retrieves a run configuration from the previous environment or block configuration moduleSourceOverride allows overriding of the returned run config based on <module-source>@<module-source-version>

func SetRunConfigVars

func SetRunConfigVars(rc *types.RunConfig, varFlags []string) ([]string, error)

func StreamLogs

func StreamLogs(ctx context.Context, cfg api.Config, workspace types.Workspace, newRun *types.Run) error

StreamLogs streams the logs from the server over a websocket The logs are emitted to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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