iac

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Additional added in v0.3.0

func Additional(ctx context.Context, stack *Stack, challAdd, istAdd map[string]string) error

Additional packs the challenge and instance additional k=v entries together then configure them in the stack configuration. If the same key is defined in both, the instance's additional k=v is kept.

func Update

func Update(
	ctx context.Context,
	previousScenario string,
	updateStrategy string,
	fschall *fs.Challenge,
	fsist *fs.Instance,
) error

Update a challenge instance given an update strategy. You need to give the previous scenario it should be updated from in order for the update strategy to properly resolve the resources' delta.

func Validate added in v0.6.2

func Validate(ctx context.Context, ref string, additional map[string]string) error

Validate check the challenge scenario can preview without error (a basic check).

Types

type ErrOutputRequired

type ErrOutputRequired struct {
	Key string
}

ErrOutputRequired is an error returned when the stack state did not export a required key.

func (ErrOutputRequired) Error

func (err ErrOutputRequired) Error() string

type Result added in v0.6.2

type Result struct {
	// contains filtered or unexported fields
}

type Stack added in v0.6.2

type Stack struct {
	// contains filtered or unexported fields
}

func LoadStack

func LoadStack(ctx context.Context, ref, id string) (*Stack, error)

LoadStack upsert a Pulumi stack for a given scenario and instance identity.

func NewStack

func NewStack(ctx context.Context, fschall *fsapi.Challenge, id string) (*Stack, error)

func (*Stack) Down added in v0.6.2

func (stack *Stack) Down(ctx context.Context) error

func (*Stack) Export added in v0.6.2

func (stack *Stack) Export(ctx context.Context, res *Result, ist *fsapi.Instance) error

Export the state results into the instance, i.e., the connection information, flags, and state for later update and delete operations.

func (*Stack) Import added in v0.6.2

func (stack *Stack) Import(ctx context.Context, ist *fsapi.Instance) error

func (*Stack) Preview added in v0.6.2

func (stack *Stack) Preview(ctx context.Context) error

func (*Stack) Up added in v0.6.2

func (stack *Stack) Up(ctx context.Context) (*Result, error)

Jump to

Keyboard shortcuts

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