scenario

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(ctx context.Context, challDir, scenario string) (string, error)

Decode (base 64) and unzip the scenario content into the scenario directory along the others. If files already exist for this challenge, erase it first. Returns the directory to look for the Pulumi stack or an error if anything went wrong. Error is of type *errors.ErrInternal if related to file-system errors, else a meaningfull error to return to the API call.

func Validate

func Validate(ctx context.Context, dir string) error

Validate check the challenge instance can build i.e. a preview.

Types

This section is empty.

Jump to

Keyboard shortcuts

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