state

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestMetadata

type TestMetadata struct {
	Filenames []string
}

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

func (TestMetadata) Copy

func (tm TestMetadata) Copy() TestMetadata

type TestRecord

type TestRecord struct {
	PreloadEmbeddedSchemaState op.OpState

	Meta      TestMetadata
	MetaErr   error
	MetaState op.OpState

	RefTargets      reference.Targets
	RefTargetsErr   error
	RefTargetsState op.OpState

	RefOrigins      reference.Origins
	RefOriginsErr   error
	RefOriginsState op.OpState

	ParsedFiles      ast.Files
	ParsingErr       error
	Diagnostics      ast.SourceDiagnostics
	DiagnosticsState globalAst.DiagnosticSourceState
	// contains filtered or unexported fields
}

TestRecord represents a test location in the state

func (*TestRecord) Copy

func (m *TestRecord) Copy() *TestRecord

func (*TestRecord) Path

func (m *TestRecord) Path() string

type TestStore

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

func NewTestStore

func NewTestStore(changeStore *globalState.ChangeStore, providerSchemasStore *globalState.ProviderSchemaStore) (*TestStore, error)

func (*TestStore) Add

func (s *TestStore) Add(testPath string) error

func (*TestStore) AddIfNotExists

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

func (*TestStore) Exists

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

func (*TestStore) List

func (s *TestStore) List() ([]*TestRecord, error)

func (*TestStore) ProviderSchema

func (s *TestStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)

func (*TestStore) Remove

func (s *TestStore) Remove(testPath string) error

func (*TestStore) SetDiagnosticsState

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

func (*TestStore) SetLogger

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

func (*TestStore) SetMetaState

func (s *TestStore) SetMetaState(path string, state op.OpState) error

func (*TestStore) SetPreloadEmbeddedSchemaState

func (s *TestStore) SetPreloadEmbeddedSchemaState(path string, state op.OpState) error

func (*TestStore) SetReferenceOriginsState

func (s *TestStore) SetReferenceOriginsState(path string, state op.OpState) error

func (*TestStore) SetReferenceTargetsState

func (s *TestStore) SetReferenceTargetsState(path string, state op.OpState) error

func (*TestStore) TestRecordByPath

func (s *TestStore) TestRecordByPath(path string) (*TestRecord, error)

func (*TestStore) UpdateDiagnostics

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

func (*TestStore) UpdateMetadata

func (s *TestStore) UpdateMetadata(path string, meta *tftest.Meta, mErr error) error

func (*TestStore) UpdateParsedFiles

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

func (*TestStore) UpdateReferenceOrigins

func (s *TestStore) UpdateReferenceOrigins(path string, origins reference.Origins, roErr error) error

func (*TestStore) UpdateReferenceTargets

func (s *TestStore) UpdateReferenceTargets(path string, refs reference.Targets, rErr error) error

Jump to

Keyboard shortcuts

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