Documentation
¶
Index ¶
- func Events(ctx context.Context, action string) chan<- events.EngineEvent
- func GetResourceIdByURNMap(rawOutputs auto.OutputMap) (map[string]string, error)
- func GetStackOutputs(rawOutputs auto.OutputMap) (map[string]any, error)
- func InstallDependencies(ctx context.Context, stackDirectory string) error
- func RunDown(ctx context.Context, fs afero.Fs, stackReference Reference) error
- func RunPreview(ctx context.Context, fs afero.Fs, stackReference Reference) (*auto.PreviewResult, error)
- func UpdateConstructStateFromUpResult(sm *model.StateManager, stackReference Reference, summary *auto.UpResult) error
- type NpmProgress
- type PulumiProgress
- type Reference
- type StackInterface
- type State
- type StateManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceIdByURNMap ¶
func InstallDependencies ¶
func RunPreview ¶
Types ¶
type NpmProgress ¶
type PulumiProgress ¶
type StackInterface ¶
type StackInterface interface {
Export(ctx context.Context) (apitype.UntypedDeployment, error)
Up(ctx context.Context, opts ...optup.Option) (auto.UpResult, error)
Preview(ctx context.Context, opts ...optpreview.Option) (auto.PreviewResult, error)
Destroy(ctx context.Context, opts ...optdestroy.Option) (auto.DestroyResult, error)
SetConfig(ctx context.Context, key string, value auto.ConfigValue) error
Workspace() auto.Workspace
Outputs(ctx context.Context) (auto.OutputMap, error)
}
type State ¶
type State struct {
Version int
Deployment apitype.DeploymentV3
Outputs map[string]any
Resources map[construct.ResourceId]apitype.ResourceV3
}
type StateManager ¶
func NewStateManager ¶
func NewStateManager() *StateManager
func (*StateManager) GetResourceState ¶
func (sm *StateManager) GetResourceState(urn model.URN, id construct.ResourceId) (apitype.ResourceV3, bool)
Click to show internal directories.
Click to hide internal directories.