Documentation ¶
Index ¶
- func DecodeReferenceOrigins(ctx context.Context, modStore *state.ModuleStore, ...) error
- func DecodeReferenceTargets(ctx context.Context, modStore *state.ModuleStore, ...) error
- func DecodeVarsReferences(ctx context.Context, modStore *state.ModuleStore, ...) error
- func GetTerraformVersion(ctx context.Context, modStore *state.ModuleStore, modPath string) error
- func IsModuleNotFound(err error) bool
- func IsTerraformNotFound(err error) bool
- func LoadModuleMetadata(modStore *state.ModuleStore, modPath string) error
- func ObtainSchema(ctx context.Context, modStore *state.ModuleStore, ...) error
- func ParseModuleConfiguration(fs ReadOnlyFS, modStore *state.ModuleStore, modPath string) error
- func ParseModuleManifest(fs ReadOnlyFS, modStore *state.ModuleStore, modPath string) error
- func ParseVariables(fs ReadOnlyFS, modStore *state.ModuleStore, modPath string) error
- func TerraformExecPath(ctx context.Context) (string, error)
- func TerraformExecutorForModule(ctx context.Context, modPath string) (exec.TerraformExecutor, error)
- type DeferFunc
- type DocumentStore
- type ModuleNotFoundErr
- type ModuleOperation
- type NoTerraformExecPathErr
- type PathStore
- type ReadOnlyFS
- type Walker
- func (w *Walker) SetExcludeModulePaths(excludeModulePaths []string)
- func (w *Walker) SetIgnoreDirectoryNames(ignoreDirectoryNames []string)
- func (w *Walker) SetLogger(logger *log.Logger)
- func (w *Walker) SetWatcher(watcher Watcher)
- func (w *Walker) StartWalking(ctx context.Context) error
- func (w *Walker) Stop()
- type WalkerCollector
- type Watcher
- type WatcherFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeReferenceOrigins ¶ added in v0.19.0
func DecodeReferenceOrigins(ctx context.Context, modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
func DecodeReferenceTargets ¶ added in v0.18.2
func DecodeReferenceTargets(ctx context.Context, modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
func DecodeVarsReferences ¶ added in v0.26.0
func DecodeVarsReferences(ctx context.Context, modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
func GetTerraformVersion ¶
func IsModuleNotFound ¶
func IsTerraformNotFound ¶ added in v0.14.0
func LoadModuleMetadata ¶ added in v0.16.0
func LoadModuleMetadata(modStore *state.ModuleStore, modPath string) error
func ObtainSchema ¶
func ObtainSchema(ctx context.Context, modStore *state.ModuleStore, schemaStore *state.ProviderSchemaStore, modPath string) error
func ParseModuleConfiguration ¶ added in v0.18.0
func ParseModuleConfiguration(fs ReadOnlyFS, modStore *state.ModuleStore, modPath string) error
func ParseModuleManifest ¶
func ParseModuleManifest(fs ReadOnlyFS, modStore *state.ModuleStore, modPath string) error
func ParseVariables ¶ added in v0.18.0
func ParseVariables(fs ReadOnlyFS, modStore *state.ModuleStore, modPath string) error
func TerraformExecPath ¶ added in v0.14.0
Types ¶
type DocumentStore ¶ added in v0.26.0
type ModuleNotFoundErr ¶
type ModuleNotFoundErr struct {
Dir string
}
func (*ModuleNotFoundErr) Error ¶
func (e *ModuleNotFoundErr) Error() string
type ModuleOperation ¶
type ModuleOperation struct { ModulePath string Type op.OpType Defer DeferFunc // contains filtered or unexported fields }
func NewModuleOperation ¶
func NewModuleOperation(modPath string, typ op.OpType) ModuleOperation
type NoTerraformExecPathErr ¶ added in v0.14.0
type NoTerraformExecPathErr struct{}
func (NoTerraformExecPathErr) Error ¶ added in v0.14.0
func (NoTerraformExecPathErr) Error() string
type ReadOnlyFS ¶ added in v0.26.0
type Walker ¶
type Walker struct { Collector *WalkerCollector // contains filtered or unexported fields }
func NewWalker ¶
func NewWalker(fs ReadOnlyFS, ps PathStore, ms *state.ModuleStore, pss *state.ProviderSchemaStore, js job.JobStore, tfExec exec.ExecutorFactory) *Walker
func (*Walker) SetExcludeModulePaths ¶
func (*Walker) SetIgnoreDirectoryNames ¶ added in v0.24.0
func (*Walker) SetWatcher ¶
type WalkerCollector ¶ added in v0.27.0
type WalkerCollector struct {
// contains filtered or unexported fields
}
func NewWalkerCollector ¶ added in v0.27.0
func NewWalkerCollector() *WalkerCollector
func (*WalkerCollector) CollectError ¶ added in v0.27.0
func (wc *WalkerCollector) CollectError(err error)
func (*WalkerCollector) CollectJobId ¶ added in v0.27.0
func (wc *WalkerCollector) CollectJobId(jobId job.ID)
func (*WalkerCollector) ErrorOrNil ¶ added in v0.27.0
func (wc *WalkerCollector) ErrorOrNil() error
func (*WalkerCollector) JobIds ¶ added in v0.27.0
func (wc *WalkerCollector) JobIds() job.IDs
type Watcher ¶
type Watcher interface { Start(context.Context) error Stop() error SetLogger(*log.Logger) AddModule(string) error RemoveModule(string) error IsModuleWatched(string) bool }
func NewWatcher ¶
func NewWatcher(fs ReadOnlyFS, ms *state.ModuleStore, pss *state.ProviderSchemaStore, js job.JobStore, tfExec exec.ExecutorFactory) (Watcher, error)
type WatcherFactory ¶
type WatcherFactory func(fs ReadOnlyFS, ms *state.ModuleStore, pss *state.ProviderSchemaStore, js job.JobStore, tfExec exec.ExecutorFactory) (Watcher, error)
func MockWatcher ¶
func MockWatcher() WatcherFactory
Source Files ¶
Click to show internal directories.
Click to hide internal directories.