stateutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package stateutil provides shared utilities for fetching and working with blueprint instance state across TUI components.

Index

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.

Jump to

Keyboard shortcuts

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