Documentation
¶
Index ¶
- func Additional(ctx context.Context, stack *Stack, challAdd, istAdd map[string]string) error
- func Update(ctx context.Context, previousScenario string, updateStrategy string, ...) error
- func Validate(ctx context.Context, ref string, additional map[string]string) error
- type ErrOutputRequired
- type Result
- type Stack
- func (stack *Stack) Down(ctx context.Context) error
- func (stack *Stack) Export(ctx context.Context, res *Result, ist *fsapi.Instance) error
- func (stack *Stack) Import(ctx context.Context, ist *fsapi.Instance) error
- func (stack *Stack) Preview(ctx context.Context) error
- func (stack *Stack) Up(ctx context.Context) (*Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Additional ¶ added in v0.3.0
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.
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 Stack ¶ added in v0.6.2
type Stack struct {
// contains filtered or unexported fields
}
func (*Stack) Export ¶ added in v0.6.2
Export the state results into the instance, i.e., the connection information, flags, and state for later update and delete operations.
Click to show internal directories.
Click to hide internal directories.