run

package
v0.19.821 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(v *validator.Validate, opts ...runOption) (*run, error)

func WithLogger

func WithLogger(l hclog.Logger) runOption

func WithOutputSettings

func WithOutputSettings(settings *OutputSettings) runOption

func WithWorkspace

func WithWorkspace(w workspace.Workspace) runOption

Types

type OutputSettings

type OutputSettings struct {
	Ignore         bool
	Credentials    *credentials.Config `validate:"required_unless=Ignore true"`
	Bucket         string              `validate:"required_unless=Ignore true"`
	JobPrefix      string              `validate:"required_unless=Ignore true"`
	InstancePrefix string              `validate:"required_unless=Ignore true"`
}

type Run

type Run interface {
	Apply(context.Context) error
	ApplyPlan(context.Context) error
	Validate(context.Context) error
	Plan(context.Context) error
	Destroy(context.Context) error
	DestroyPlan(context.Context) error
}

Run accepts a workspace, and executes the provided command in it, uploading outputs to the correct place, afterwards.

Jump to

Keyboard shortcuts

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