runs

package
v0.0.123 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func SetConfigVars added in v0.0.92

func SetConfigVars(ctx context.Context, 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(ctx context.Context, 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

func WaitForTerminalRun added in v0.0.116

func WaitForTerminalRun(ctx context.Context, osWriters logging.OsWriters, cfg api.Config, ws types.Workspace, track types.Run,
	timeout time.Duration, approvalTimeout time.Duration) (types.Run, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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