Documentation
¶
Index ¶
- type StackMetadata
- type StackRecord
- type StackStore
- func (s *StackStore) Add(stackPath string) error
- func (s *StackStore) AddIfNotExists(path string) error
- func (s *StackStore) Exists(path string) bool
- func (s *StackStore) List() ([]*StackRecord, error)
- func (s *StackStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)
- func (s *StackStore) Remove(stackPath string) error
- func (s *StackStore) SetDiagnosticsState(path string, source globalAst.DiagnosticSource, state operation.OpState) error
- func (s *StackStore) SetLogger(logger *log.Logger)
- func (s *StackStore) SetMetaState(path string, state operation.OpState) error
- func (s *StackStore) SetPreloadEmbeddedSchemaState(path string, state operation.OpState) error
- func (s *StackStore) SetReferenceOriginsState(path string, state operation.OpState) error
- func (s *StackStore) SetReferenceTargetsState(path string, state operation.OpState) error
- func (s *StackStore) SetTerraformVersion(path string, version *version.Version) error
- func (s *StackStore) SetTerraformVersionError(path string, vErr error) error
- func (s *StackStore) SetTerraformVersionState(path string, state operation.OpState) error
- func (s *StackStore) StackRecordByPath(path string) (*StackRecord, error)
- func (s *StackStore) UpdateDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.Diagnostics) error
- func (s *StackStore) UpdateMetadata(path string, meta *tfstack.Meta, mErr error) error
- func (s *StackStore) UpdateParsedFiles(path string, pFiles ast.Files, pErr error) error
- func (s *StackStore) UpdateReferenceOrigins(path string, origins reference.Origins, roErr error) error
- func (s *StackStore) UpdateReferenceTargets(path string, refs reference.Targets, rErr error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StackMetadata ¶
type StackMetadata struct {
Filenames []string
Components map[string]tfstack.Component
Variables map[string]tfstack.Variable
Outputs map[string]tfstack.Output
ProviderRequirements map[string]tfstack.ProviderRequirement
Deployments map[string]tfstack.Deployment
Stores map[string]tfstack.Store
OrchestrationRules map[string]tfstack.OrchestrationRule
}
StackMetadata contains the result of the early decoding of a Stack, 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 {
// PreloadEmbeddedSchemaState tracks if we tried loading all provider
// schemas from our embedded schema data
PreloadEmbeddedSchemaState operation.OpState
Meta StackMetadata
MetaErr error
MetaState operation.OpState
// 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
RefTargets reference.Targets
RefTargetsErr error
RefTargetsState operation.OpState
RefOrigins reference.Origins
RefOriginsErr error
RefOriginsState 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, providerSchemasStore *globalState.ProviderSchemaStore) (*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) ProviderSchema ¶ added in v0.35.0
func (s *StackStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, 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) SetMetaState ¶ added in v0.35.0
func (s *StackStore) SetMetaState(path string, state operation.OpState) error
func (*StackStore) SetPreloadEmbeddedSchemaState ¶ added in v0.35.0
func (s *StackStore) SetPreloadEmbeddedSchemaState(path string, state operation.OpState) error
func (*StackStore) SetReferenceOriginsState ¶ added in v0.35.0
func (s *StackStore) SetReferenceOriginsState(path string, state operation.OpState) error
func (*StackStore) SetReferenceTargetsState ¶ added in v0.35.0
func (s *StackStore) SetReferenceTargetsState(path string, state operation.OpState) error
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) UpdateMetadata ¶ added in v0.35.0
func (*StackStore) UpdateParsedFiles ¶
func (*StackStore) UpdateReferenceOrigins ¶ added in v0.35.0
func (*StackStore) UpdateReferenceTargets ¶ added in v0.35.0
Click to show internal directories.
Click to hide internal directories.