Documentation
¶
Index ¶
- func CheckStack(mCtx *mc.Context, target Stack) (*auto.Stack, error)
- func DestroySelectedStack(mCtx *mc.Context, stack *auto.Stack, options DestroyOptions) error
- func DestroyStack(mCtx *mc.Context, targetStack Stack, opts ...ManagerOptions) error
- func GetOutputs(mCtx *mc.Context, stack *auto.Stack) (auto.OutputMap, error)
- func SelectStackForDestroy(mCtx *mc.Context, target Stack) (*auto.Stack, error)
- func UpStack(c *mc.Context, targetStack Stack, opts ...ManagerOptions) (auto.UpResult, error)
- func UpStackTargets(mCtx *mc.Context, targetStack Stack, targetURNs []string, ...) (auto.UpResult, error)
- type DestroyOptions
- type ManagerOptions
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroySelectedStack ¶ added in v0.14.8
func DestroyStack ¶
func DestroyStack(mCtx *mc.Context, targetStack Stack, opts ...ManagerOptions) error
func SelectStackForDestroy ¶ added in v0.14.8
SelectStackForDestroy opens existing state without refreshing providers or creating an empty stack when the requested stack does not exist.
func UpStackTargets ¶
Types ¶
type DestroyOptions ¶ added in v0.14.8
type DestroyOptions struct {
Targets []string
TargetDependents bool
ContinueOnError bool
// Background returns the destroy error unwrapped, as the caller runs the
// destroy in a routine and reports the error itself.
Background bool
}
DestroyOptions controls an opt-in phased teardown. Targeted phases retain the stack so later phases continue from the same state.
type ManagerOptions ¶
type ManagerOptions struct {
// This option informs the manager the actions will be run on background
// through a routine so in that case we can not return exit but an error
Background bool
}
type Stack ¶
type Stack struct {
ProjectName string
StackName string
BackedURL string
DeployFunc pulumi.RunFunc
ProviderCredentials credentials.ProviderCredentials
}