Documentation
¶
Overview ¶
Package stateutil provides shared utilities for fetching and working with blueprint instance state across TUI components.
Index ¶
- func FetchInstanceState(eng engine.DeployEngine, instanceID, instanceName string) *state.InstanceState
- func FindChildInstanceState(instanceState *state.InstanceState, childName string) *state.InstanceState
- func FindLinkState(instanceState *state.InstanceState, name string) *state.LinkState
- func FindResourceState(instanceState *state.InstanceState, name string) *state.ResourceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchInstanceState ¶
func FetchInstanceState(eng engine.DeployEngine, instanceID, instanceName string) *state.InstanceState
FetchInstanceState attempts to fetch the instance state for an existing deployment. Returns nil if the instance doesn't exist or if there's an error (new deployment case).
func FindChildInstanceState ¶
func FindChildInstanceState(instanceState *state.InstanceState, childName string) *state.InstanceState
FindChildInstanceState finds the instance state for a child blueprint by name.
func FindLinkState ¶
func FindLinkState(instanceState *state.InstanceState, name string) *state.LinkState
FindLinkState finds a link state by logical name.
func FindResourceState ¶
func FindResourceState(instanceState *state.InstanceState, name string) *state.ResourceState
FindResourceState finds a resource state by logical name. It uses the instance state's ResourceIDs map to look up the resource ID, then retrieves the state from Resources.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.