runs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 12 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, 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 SetConfigVars added in v0.0.92

func SetConfigVars(cfg api.Config, workspace types.Workspace, varFlags []string) error

SetConfigVars takes the input vars and stores them as workspace_changes via the API TODO: once the api supports it, return any flags that aren't valid for the module version and were skipped

func SetModuleVersion added in v0.0.92

func SetModuleVersion(cfg api.Config, workspace types.Workspace, input types.WorkspaceModuleInput) 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