Documentation ¶
Index ¶
- type InstalledModules
- type InstalledProviders
- type RootRecord
- type RootStore
- func (s *RootStore) Add(path string) error
- func (s *RootStore) AddIfNotExists(path string) error
- func (s *RootStore) CallersOfModule(path string) ([]string, error)
- func (s *RootStore) Exists(path string) bool
- func (s *RootStore) FinishProviderSchemaLoading(path string, psErr error) error
- func (s *RootStore) InstalledModuleCalls(path string) (map[string]tfmod.InstalledModuleCall, error)
- func (s *RootStore) List() ([]*RootRecord, error)
- func (s *RootStore) RecordWithVersion() (*RootRecord, error)
- func (s *RootStore) Remove(path string) error
- func (s *RootStore) RootRecordByPath(path string) (*RootRecord, error)
- func (s *RootStore) SetInstalledProvidersState(path string, state op.OpState) error
- func (s *RootStore) SetLogger(logger *log.Logger)
- func (s *RootStore) SetModManifestState(path string, state op.OpState) error
- func (s *RootStore) SetProviderSchemaState(path string, state op.OpState) error
- func (s *RootStore) SetTerraformSourcesState(path string, state op.OpState) error
- func (s *RootStore) SetTerraformVersionState(path string, state op.OpState) error
- func (s *RootStore) TerraformSourcesDirectories(path string) []string
- func (s *RootStore) UpdateInstalledProviders(path string, pvs map[tfaddr.Provider]*version.Version, pvErr error) error
- func (s *RootStore) UpdateModManifest(path string, manifest *datadir.ModuleManifest, mErr error) error
- func (s *RootStore) UpdateTerraformAndProviderVersions(path string, tfVer *version.Version, pv map[tfaddr.Provider]*version.Version, ...) error
- func (s *RootStore) UpdateTerraformSources(path string, manifest *datadir.TerraformSources, mErr error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstalledModules ¶
InstalledModules is a map of normalized source addresses from the manifest to the path of the local directory where the module is installed
func InstalledModulesFromManifest ¶
func InstalledModulesFromManifest(manifest *datadir.ModuleManifest) InstalledModules
func InstalledModulesFromTerraformSources ¶ added in v0.36.1
func InstalledModulesFromTerraformSources(path string, sources *datadir.TerraformSources, logger *log.Logger) InstalledModules
type InstalledProviders ¶
func (InstalledProviders) Equals ¶
func (ip InstalledProviders) Equals(p InstalledProviders) bool
type RootRecord ¶
type RootRecord struct { // ProviderSchemaState tracks if we tried loading all provider schemas // that this module is using via Terraform CLI ProviderSchemaState op.OpState ProviderSchemaErr error ModManifest *datadir.ModuleManifest ModManifestErr error ModManifestState op.OpState TerraformSources *datadir.TerraformSources TerraformSourcesErr error TerraformSourcesState op.OpState // InstalledModules is a map of normalized source addresses from the // manifest to the path of the local directory where the module is installed InstalledModules InstalledModules TerraformVersion *version.Version TerraformVersionErr error TerraformVersionState op.OpState InstalledProviders InstalledProviders InstalledProvidersErr error InstalledProvidersState op.OpState // contains filtered or unexported fields }
RootRecord contains all information about a module root path, like anything related to .terraform/ or .terraform.lock.hcl.
func NewRootRecordTest ¶
func NewRootRecordTest(path string) *RootRecord
NewRootRecordTest is a test helper to create a new Module object
func (*RootRecord) Copy ¶
func (m *RootRecord) Copy() *RootRecord
func (*RootRecord) Path ¶
func (m *RootRecord) Path() string
type RootStore ¶
type RootStore struct {
// contains filtered or unexported fields
}
func NewRootStore ¶
func NewRootStore(changeStore *globalState.ChangeStore, providerSchemaStore *globalState.ProviderSchemaStore) (*RootStore, error)
func (*RootStore) AddIfNotExists ¶
func (*RootStore) CallersOfModule ¶
func (*RootStore) FinishProviderSchemaLoading ¶
func (*RootStore) InstalledModuleCalls ¶
func (*RootStore) List ¶
func (s *RootStore) List() ([]*RootRecord, error)
func (*RootStore) RecordWithVersion ¶
func (s *RootStore) RecordWithVersion() (*RootRecord, error)
RecordWithVersion returns the first record that has a Terraform version
func (*RootStore) RootRecordByPath ¶
func (s *RootStore) RootRecordByPath(path string) (*RootRecord, error)
func (*RootStore) SetInstalledProvidersState ¶
func (*RootStore) SetModManifestState ¶
func (*RootStore) SetProviderSchemaState ¶
func (*RootStore) SetTerraformSourcesState ¶ added in v0.36.1
func (*RootStore) SetTerraformVersionState ¶
func (*RootStore) TerraformSourcesDirectories ¶ added in v0.36.1
func (*RootStore) UpdateInstalledProviders ¶
func (*RootStore) UpdateModManifest ¶
func (*RootStore) UpdateTerraformAndProviderVersions ¶
func (*RootStore) UpdateTerraformSources ¶ added in v0.36.1
Click to show internal directories.
Click to hide internal directories.