Documentation ¶
Index ¶
- type VariableRecord
- type VariableStore
- func (s *VariableStore) Add(path string) error
- func (s *VariableStore) AddIfNotExists(path string) error
- func (s *VariableStore) Exists(path string) bool
- func (s *VariableStore) List() ([]*VariableRecord, error)
- func (s *VariableStore) Remove(path string) error
- func (s *VariableStore) SetLogger(logger *log.Logger)
- func (s *VariableStore) SetVarsDiagnosticsState(path string, source globalAst.DiagnosticSource, state op.OpState) error
- func (s *VariableStore) SetVarsReferenceOriginsState(path string, state op.OpState) error
- func (s *VariableStore) UpdateParsedVarsFiles(path string, vFiles ast.VarsFiles, vErr error) error
- func (s *VariableStore) UpdateVarsDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.VarsDiags) error
- func (s *VariableStore) UpdateVarsReferenceOrigins(path string, origins reference.Origins, roErr error) error
- func (s *VariableStore) VariableRecordByPath(path string) (*VariableRecord, error)
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 (*VariableStore) UpdateVarsDiagnostics ¶
func (s *VariableStore) UpdateVarsDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.VarsDiags) error
func (*VariableStore) UpdateVarsReferenceOrigins ¶
func (*VariableStore) VariableRecordByPath ¶
func (s *VariableStore) VariableRecordByPath(path string) (*VariableRecord, error)
Click to show internal directories.
Click to hide internal directories.