state

package
v0.0.0-...-978a5fb Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackMetadata

type StackMetadata struct {
	Filenames []string
}

StackMetadata contains the result of the early decoding of a module, it will be used obtain the correct provider and related module schemas

func (StackMetadata) Copy

func (sm StackMetadata) Copy() StackMetadata

type StackRecord

type StackRecord struct {
	Meta StackMetadata

	// ParsedFiles is a map of all the parsed files for the stack,
	// including Stack and Deploy files.
	ParsedFiles      ast.Files
	ParsingErr       error
	Diagnostics      ast.SourceDiagnostics
	DiagnosticsState globalAst.DiagnosticSourceState

	RequiredTerraformVersion      *version.Version
	RequiredTerraformVersionErr   error
	RequiredTerraformVersionState operation.OpState
	// contains filtered or unexported fields
}

StackRecord represents a single stack in the state /some/path/lambda-multi-account-stack

func (*StackRecord) Copy

func (m *StackRecord) Copy() *StackRecord

func (*StackRecord) Path

func (m *StackRecord) Path() string

type StackStore

type StackStore struct {
	// contains filtered or unexported fields
}

func NewStackStore

func NewStackStore(changeStore *globalState.ChangeStore) (*StackStore, error)

func (*StackStore) Add

func (s *StackStore) Add(stackPath string) error

func (*StackStore) AddIfNotExists

func (s *StackStore) AddIfNotExists(path string) error

func (*StackStore) Exists

func (s *StackStore) Exists(path string) bool

func (*StackStore) List

func (s *StackStore) List() ([]*StackRecord, error)

func (*StackStore) Remove

func (s *StackStore) Remove(stackPath string) error

func (*StackStore) SetDiagnosticsState

func (s *StackStore) SetDiagnosticsState(path string, source globalAst.DiagnosticSource, state operation.OpState) error

func (*StackStore) SetLogger

func (s *StackStore) SetLogger(logger *log.Logger)

func (*StackStore) SetTerraformVersion

func (s *StackStore) SetTerraformVersion(path string, version *version.Version) error

func (*StackStore) SetTerraformVersionError

func (s *StackStore) SetTerraformVersionError(path string, vErr error) error

func (*StackStore) SetTerraformVersionState

func (s *StackStore) SetTerraformVersionState(path string, state operation.OpState) error

func (*StackStore) StackRecordByPath

func (s *StackStore) StackRecordByPath(path string) (*StackRecord, error)

func (*StackStore) UpdateDiagnostics

func (s *StackStore) UpdateDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.Diagnostics) error

func (*StackStore) UpdateParsedFiles

func (s *StackStore) UpdateParsedFiles(path string, pFiles ast.Files, pErr error) error

Jump to

Keyboard shortcuts

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