Documentation ¶
Index ¶
- type AlreadyExistsError
- type InstalledProviders
- type LocalSchemaSource
- type Module
- type ModuleCallReader
- type ModuleChangeHook
- type ModuleChangeHooks
- type ModuleIds
- type ModuleLookupFunc
- type ModuleMetadata
- type ModuleNotFoundError
- type ModuleReader
- type ModuleStore
- func (s *ModuleStore) Add(modPath string) error
- func (s *ModuleStore) CallersOfModule(modPath string) ([]*Module, error)
- func (s *ModuleStore) FinishProviderSchemaLoading(path string, psErr error) error
- func (s *ModuleStore) List() ([]*Module, error)
- func (s *ModuleStore) ModuleByPath(path string) (*Module, error)
- func (s *ModuleStore) ModuleCalls(modPath string) ([]tfmod.ModuleCall, error)
- func (s *ModuleStore) ModuleMeta(modPath string) (*tfmod.Meta, error)
- func (s *ModuleStore) Remove(modPath string) error
- func (s *ModuleStore) SetMetaState(path string, state op.OpState) error
- func (s *ModuleStore) SetModManifestState(path string, state op.OpState) error
- func (s *ModuleStore) SetModuleParsingState(path string, state op.OpState) error
- func (s *ModuleStore) SetProviderSchemaState(path string, state op.OpState) error
- func (s *ModuleStore) SetReferenceOriginsState(path string, state op.OpState) error
- func (s *ModuleStore) SetReferenceTargetsState(path string, state op.OpState) error
- func (s *ModuleStore) SetTerraformVersionState(path string, state op.OpState) error
- func (s *ModuleStore) SetVarsParsingState(path string, state op.OpState) error
- func (s *ModuleStore) UpdateInstalledProviders(path string, pvs map[tfaddr.Provider]*version.Version) error
- func (s *ModuleStore) UpdateMetadata(path string, meta *tfmod.Meta, mErr error) error
- func (s *ModuleStore) UpdateModManifest(path string, manifest *datadir.ModuleManifest, mErr error) error
- func (s *ModuleStore) UpdateModuleDiagnostics(path string, diags ast.ModDiags) error
- func (s *ModuleStore) UpdateParsedModuleFiles(path string, pFiles ast.ModFiles, pErr error) error
- func (s *ModuleStore) UpdateParsedVarsFiles(path string, vFiles ast.VarsFiles, vErr error) error
- func (s *ModuleStore) UpdateReferenceOrigins(path string, origins reference.Origins, roErr error) error
- func (s *ModuleStore) UpdateReferenceTargets(path string, refs reference.Targets, rErr error) error
- func (s *ModuleStore) UpdateTerraformVersion(modPath string, tfVer *version.Version, ...) error
- func (s *ModuleStore) UpdateVarsDiagnostics(path string, diags ast.VarsDiags) error
- type NoSchemaError
- type PreloadedSchemaSource
- type ProviderIds
- type ProviderSchema
- type ProviderSchemaIterator
- type ProviderSchemaStore
- func (s *ProviderSchemaStore) AddLocalSchema(modPath string, addr tfaddr.Provider, schema *tfschema.ProviderSchema) error
- func (s *ProviderSchemaStore) AddPreloadedSchema(addr tfaddr.Provider, pv *version.Version, schema *tfschema.ProviderSchema) error
- func (s *ProviderSchemaStore) ListSchemas() (*ProviderSchemaIterator, error)
- func (s *ProviderSchemaStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)
- type SchemaReader
- type SchemaSource
- type StateStore
- type StringerFieldIndexer
- type VersionFieldIndexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlreadyExistsError ¶
type AlreadyExistsError struct {
Idx string
}
func (*AlreadyExistsError) Error ¶
func (e *AlreadyExistsError) Error() string
type InstalledProviders ¶ added in v0.25.2
func (InstalledProviders) Equals ¶ added in v0.25.2
func (ip InstalledProviders) Equals(p InstalledProviders) bool
type LocalSchemaSource ¶
type LocalSchemaSource struct {
ModulePath string
}
func (LocalSchemaSource) String ¶
func (lss LocalSchemaSource) String() string
type Module ¶
type Module struct { Path string ModManifest *datadir.ModuleManifest ModManifestErr error ModManifestState op.OpState TerraformVersion *version.Version TerraformVersionErr error TerraformVersionState op.OpState InstalledProviders InstalledProviders ProviderSchemaErr error ProviderSchemaState op.OpState RefTargets reference.Targets RefTargetsErr error RefTargetsState op.OpState RefOrigins reference.Origins RefOriginsErr error RefOriginsState op.OpState ParsedModuleFiles ast.ModFiles ParsedVarsFiles ast.VarsFiles ModuleParsingErr error VarsParsingErr error ModuleParsingState op.OpState VarsParsingState op.OpState Meta ModuleMetadata MetaErr error MetaState op.OpState ModuleDiagnostics ast.ModDiags VarsDiagnostics ast.VarsDiags }
type ModuleCallReader ¶ added in v0.20.0
type ModuleChangeHook ¶ added in v0.24.0
type ModuleChangeHook func(oldMod, newMod *Module)
type ModuleChangeHooks ¶ added in v0.24.0
type ModuleChangeHooks []ModuleChangeHook
type ModuleLookupFunc ¶
type ModuleMetadata ¶
type ModuleMetadata struct { CoreRequirements version.Constraints Backend *tfmod.Backend ProviderReferences map[tfmod.ProviderRef]tfaddr.Provider ProviderRequirements tfmod.ProviderRequirements Variables map[string]tfmod.Variable Outputs map[string]tfmod.Output }
func (ModuleMetadata) Copy ¶ added in v0.17.1
func (mm ModuleMetadata) Copy() ModuleMetadata
type ModuleNotFoundError ¶
type ModuleNotFoundError struct {
Path string
}
func (*ModuleNotFoundError) Error ¶
func (e *ModuleNotFoundError) Error() string
type ModuleReader ¶
type ModuleStore ¶
type ModuleStore struct { ChangeHooks ModuleChangeHooks // contains filtered or unexported fields }
func (*ModuleStore) Add ¶
func (s *ModuleStore) Add(modPath string) error
func (*ModuleStore) CallersOfModule ¶
func (s *ModuleStore) CallersOfModule(modPath string) ([]*Module, error)
func (*ModuleStore) FinishProviderSchemaLoading ¶
func (s *ModuleStore) FinishProviderSchemaLoading(path string, psErr error) error
func (*ModuleStore) List ¶
func (s *ModuleStore) List() ([]*Module, error)
func (*ModuleStore) ModuleByPath ¶
func (s *ModuleStore) ModuleByPath(path string) (*Module, error)
func (*ModuleStore) ModuleCalls ¶ added in v0.20.0
func (s *ModuleStore) ModuleCalls(modPath string) ([]tfmod.ModuleCall, error)
func (*ModuleStore) ModuleMeta ¶ added in v0.20.0
func (s *ModuleStore) ModuleMeta(modPath string) (*tfmod.Meta, error)
func (*ModuleStore) Remove ¶ added in v0.19.0
func (s *ModuleStore) Remove(modPath string) error
func (*ModuleStore) SetMetaState ¶
func (s *ModuleStore) SetMetaState(path string, state op.OpState) error
func (*ModuleStore) SetModManifestState ¶
func (s *ModuleStore) SetModManifestState(path string, state op.OpState) error
func (*ModuleStore) SetModuleParsingState ¶ added in v0.18.0
func (s *ModuleStore) SetModuleParsingState(path string, state op.OpState) error
func (*ModuleStore) SetProviderSchemaState ¶
func (s *ModuleStore) SetProviderSchemaState(path string, state op.OpState) error
func (*ModuleStore) SetReferenceOriginsState ¶ added in v0.19.0
func (s *ModuleStore) SetReferenceOriginsState(path string, state op.OpState) error
func (*ModuleStore) SetReferenceTargetsState ¶ added in v0.18.2
func (s *ModuleStore) SetReferenceTargetsState(path string, state op.OpState) error
func (*ModuleStore) SetTerraformVersionState ¶
func (s *ModuleStore) SetTerraformVersionState(path string, state op.OpState) error
func (*ModuleStore) SetVarsParsingState ¶ added in v0.18.0
func (s *ModuleStore) SetVarsParsingState(path string, state op.OpState) error
func (*ModuleStore) UpdateInstalledProviders ¶ added in v0.24.0
func (s *ModuleStore) UpdateInstalledProviders(path string, pvs map[tfaddr.Provider]*version.Version) error
func (*ModuleStore) UpdateMetadata ¶
func (*ModuleStore) UpdateModManifest ¶
func (s *ModuleStore) UpdateModManifest(path string, manifest *datadir.ModuleManifest, mErr error) error
func (*ModuleStore) UpdateModuleDiagnostics ¶ added in v0.18.0
func (s *ModuleStore) UpdateModuleDiagnostics(path string, diags ast.ModDiags) error
func (*ModuleStore) UpdateParsedModuleFiles ¶ added in v0.18.0
func (*ModuleStore) UpdateParsedVarsFiles ¶ added in v0.18.0
func (*ModuleStore) UpdateReferenceOrigins ¶ added in v0.19.0
func (*ModuleStore) UpdateReferenceTargets ¶ added in v0.18.2
func (*ModuleStore) UpdateTerraformVersion ¶
func (*ModuleStore) UpdateVarsDiagnostics ¶ added in v0.18.0
func (s *ModuleStore) UpdateVarsDiagnostics(path string, diags ast.VarsDiags) error
type NoSchemaError ¶
type NoSchemaError struct{}
func (*NoSchemaError) Error ¶
func (e *NoSchemaError) Error() string
type PreloadedSchemaSource ¶
type PreloadedSchemaSource struct { }
func (PreloadedSchemaSource) String ¶
func (PreloadedSchemaSource) String() string
type ProviderIds ¶ added in v0.24.0
type ProviderSchema ¶
type ProviderSchema struct { Address tfaddr.Provider Version *version.Version Source SchemaSource Schema *tfschema.ProviderSchema }
func (*ProviderSchema) Copy ¶ added in v0.17.1
func (ps *ProviderSchema) Copy() *ProviderSchema
type ProviderSchemaIterator ¶
type ProviderSchemaIterator struct {
// contains filtered or unexported fields
}
func (*ProviderSchemaIterator) Next ¶
func (psi *ProviderSchemaIterator) Next() *ProviderSchema
type ProviderSchemaStore ¶
type ProviderSchemaStore struct {
// contains filtered or unexported fields
}
func (*ProviderSchemaStore) AddLocalSchema ¶
func (s *ProviderSchemaStore) AddLocalSchema(modPath string, addr tfaddr.Provider, schema *tfschema.ProviderSchema) error
func (*ProviderSchemaStore) AddPreloadedSchema ¶
func (s *ProviderSchemaStore) AddPreloadedSchema(addr tfaddr.Provider, pv *version.Version, schema *tfschema.ProviderSchema) error
func (*ProviderSchemaStore) ListSchemas ¶
func (s *ProviderSchemaStore) ListSchemas() (*ProviderSchemaIterator, error)
func (*ProviderSchemaStore) ProviderSchema ¶
func (s *ProviderSchemaStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)
type SchemaReader ¶
type SchemaSource ¶
type SchemaSource interface { String() string // contains filtered or unexported methods }
type StateStore ¶
type StateStore struct { Modules *ModuleStore ProviderSchemas *ProviderSchemaStore // contains filtered or unexported fields }
func NewStateStore ¶
func NewStateStore() (*StateStore, error)
func (*StateStore) GetModuleID ¶ added in v0.24.0
func (s *StateStore) GetModuleID(path string) (string, error)
func (*StateStore) GetProviderID ¶ added in v0.24.0
func (s *StateStore) GetProviderID(addr tfaddr.Provider) (string, error)
func (*StateStore) SetLogger ¶ added in v0.16.1
func (s *StateStore) SetLogger(logger *log.Logger)
type StringerFieldIndexer ¶
type StringerFieldIndexer struct {
Field string
}
func (*StringerFieldIndexer) FromArgs ¶
func (s *StringerFieldIndexer) FromArgs(args ...interface{}) ([]byte, error)
func (*StringerFieldIndexer) FromObject ¶
func (s *StringerFieldIndexer) FromObject(obj interface{}) (bool, []byte, error)
func (*StringerFieldIndexer) PrefixFromArgs ¶
func (s *StringerFieldIndexer) PrefixFromArgs(args ...interface{}) ([]byte, error)
type VersionFieldIndexer ¶
type VersionFieldIndexer struct {
Field string
}
func (*VersionFieldIndexer) FromArgs ¶
func (s *VersionFieldIndexer) FromArgs(args ...interface{}) ([]byte, error)
func (*VersionFieldIndexer) FromObject ¶
func (s *VersionFieldIndexer) FromObject(obj interface{}) (bool, []byte, error)
func (*VersionFieldIndexer) PrefixFromArgs ¶
func (s *VersionFieldIndexer) PrefixFromArgs(args ...interface{}) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.