stateops

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TFStateOperations

type TFStateOperations interface {
	OpenSourceBundle(dotTFModulesPath string) (int64, func() error, error)
	OpenStacksConfiguration(sourceBundleHandle int64, stackConfigPath string) (int64, func() error, error)
	OpenDependencyLockFile(handle int64, dotTFLockFile string) (int64, func() error, error)
	OpenProviderCache(dotTFProvidersPath string) (int64, func() error, error)
	OpenTerraformStateRaw(tfStateFileRaw []byte) (int64, func() error, error)
	OpenTerraformStateByPath(tfStateFilePath string) (int64, func() error, error)
	MigrateTFState(tfStateHandle int64, stackConfigHandle int64, dependencyLocksHandle int64, providerCacheHandle int64, resources map[string]string, modules map[string]string) (stacks.Stacks_MigrateTerraformStateClient, error)
}

func NewTFStateOperations

func NewTFStateOperations(ctx context.Context, client rpcapi.Client) TFStateOperations

type WorkspaceToStackStateConversionRequest

type WorkspaceToStackStateConversionRequest struct {
	Ctx                         context.Context   // Ctx for the request, used for cancellation and deadlines.
	Client                      rpcapi.Client     // Client to communicate with the RPC server.
	CurrentWorkingDir           string            // CurrentWorkingDir is the current working directory of the application used to resolve relative paths.
	RawStateData                []byte            // RawStateData is the raw Terraform state data to be processed.
	StateOpsHandler             TFStateOperations // StateOpsHandler is the handler for state operations used to perform various operations on the Terraform state.
	StackSourceBundleAbsPath    string            // StackSourceBundleAbsPath is the absolute path to the stack configuration source bundle.
	TerraformConfigFilesAbsPath string            // TerraformConfigFilesAbsPath is the absolute path to the directory containing Terraform configuration files.
	AbsoluteResourceAddressMap  map[string]string // AbsoluteResourceAddressMap is a map of absolute resource addresses to stack addresses.
	ModuleAddressMap            map[string]string // ModuleAddressMap is a map of module addresses to stack addresses.
}

WorkspaceToStackStateConversionRequest represents the request parameters for converting a Terraform workspace state to a stack state.

Jump to

Keyboard shortcuts

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