state

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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 VariableRecord

type VariableRecord struct {
	VarsRefOrigins      reference.Origins
	VarsRefOriginsErr   error
	VarsRefOriginsState op.OpState

	ParsedVarsFiles ast.VarsFiles
	VarsParsingErr  error

	VarsDiagnostics      ast.SourceVarsDiags
	VarsDiagnosticsState globalAst.DiagnosticSourceState
	// contains filtered or unexported fields
}

VariableRecord contains all information about variable definition files we have for a certain path

func NewVariableRecordTest

func NewVariableRecordTest(path string) *VariableRecord

NewVariableRecordTest is a test helper to create a new VariableRecord

func (*VariableRecord) Copy

func (v *VariableRecord) Copy() *VariableRecord

func (*VariableRecord) Path

func (v *VariableRecord) Path() string

type VariableStore

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

func NewVariableStore

func NewVariableStore(changeStore *globalState.ChangeStore) (*VariableStore, error)

func (*VariableStore) Add

func (s *VariableStore) Add(path string) error

func (*VariableStore) AddIfNotExists

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

func (*VariableStore) Exists

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

func (*VariableStore) List

func (s *VariableStore) List() ([]*VariableRecord, error)

func (*VariableStore) Remove

func (s *VariableStore) Remove(path string) error

func (*VariableStore) SetLogger

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

func (*VariableStore) SetVarsDiagnosticsState

func (s *VariableStore) SetVarsDiagnosticsState(path string, source globalAst.DiagnosticSource, state op.OpState) error

func (*VariableStore) SetVarsReferenceOriginsState

func (s *VariableStore) SetVarsReferenceOriginsState(path string, state op.OpState) error

func (*VariableStore) UpdateParsedVarsFiles

func (s *VariableStore) UpdateParsedVarsFiles(path string, vFiles ast.VarsFiles, vErr error) error

func (*VariableStore) UpdateVarsDiagnostics

func (s *VariableStore) UpdateVarsDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.VarsDiags) error

func (*VariableStore) UpdateVarsReferenceOrigins

func (s *VariableStore) UpdateVarsReferenceOrigins(path string, origins reference.Origins, roErr error) error

func (*VariableStore) VariableRecordByPath

func (s *VariableStore) VariableRecordByPath(path string) (*VariableRecord, error)

Jump to

Keyboard shortcuts

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