Documentation
¶
Index ¶
- func DecodeReferenceOrigins(modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
- func DecodeReferenceTargets(modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
- func GetTerraformVersion(ctx context.Context, modStore *state.ModuleStore, modPath string) error
- func IsIgnoredFile(name string) bool
- 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 filesystem.Filesystem, modStore *state.ModuleStore, modPath string) error
- func ParseModuleManifest(fs filesystem.Filesystem, modStore *state.ModuleStore, modPath string) error
- func ParseVariables(fs filesystem.Filesystem, 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 File
- type Module
- type ModuleFactory
- type ModuleFinder
- type ModuleLoader
- type ModuleManager
- type ModuleManagerFactory
- type ModuleManagerMockInput
- type ModuleNotFoundErr
- type ModuleOperation
- type NoTerraformExecPathErr
- type SchemaSource
- type Walker
- func (w *Walker) EnqueuePath(path string)
- func (w *Walker) IsWalking() bool
- func (w *Walker) RemovePathFromQueue(path string)
- func (w *Walker) SetExcludeModulePaths(excludeModulePaths []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 WalkerFactory
- type Watcher
- type WatcherFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeReferenceOrigins ¶ added in v0.19.0
func DecodeReferenceOrigins(modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
func DecodeReferenceTargets ¶ added in v0.18.2
func DecodeReferenceTargets(modStore *state.ModuleStore, schemaReader state.SchemaReader, modPath string) error
func GetTerraformVersion ¶
func IsIgnoredFile ¶
IsIgnoredFile returns true if the given filename (which must not have a directory path ahead of it) should be ignored as e.g. an editor swap file.
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 filesystem.Filesystem, modStore *state.ModuleStore, modPath string) error
func ParseModuleManifest ¶
func ParseModuleManifest(fs filesystem.Filesystem, modStore *state.ModuleStore, modPath string) error
func ParseVariables ¶ added in v0.18.0
func ParseVariables(fs filesystem.Filesystem, modStore *state.ModuleStore, modPath string) error
func TerraformExecPath ¶ added in v0.14.0
Types ¶
type ModuleFactory ¶
type ModuleFinder ¶
type ModuleFinder interface {
ModuleByPath(path string) (Module, error)
SchemaForModule(path string) (*schema.BodySchema, error)
SchemaForVariables(path string) (*schema.BodySchema, error)
SchemaSourcesForModule(path string) ([]SchemaSource, error)
ListModules() ([]Module, error)
ModuleCalls(modPath string) ([]tfmodule.ModuleCall, error)
CallersOfModule(modPath string) ([]Module, error)
}
type ModuleLoader ¶
type ModuleManager ¶
type ModuleManager interface {
ModuleFinder
SetLogger(logger *log.Logger)
AddModule(modPath string) (Module, error)
RemoveModule(modPath string) error
EnqueueModuleOp(modPath string, opType op.OpType, deferFunc DeferFunc) error
EnqueueModuleOpWait(modPath string, opType op.OpType) error
CancelLoading()
}
func NewModuleManager ¶
func NewModuleManager(ctx context.Context, fs filesystem.Filesystem, ms *state.ModuleStore, pss *state.ProviderSchemaStore) ModuleManager
func NewSyncModuleManager ¶
func NewSyncModuleManager(ctx context.Context, fs filesystem.Filesystem, ms *state.ModuleStore, pss *state.ProviderSchemaStore) ModuleManager
type ModuleManagerFactory ¶
type ModuleManagerFactory func(context.Context, filesystem.Filesystem, *state.ModuleStore, *state.ProviderSchemaStore) ModuleManager
func NewModuleManagerMock ¶
func NewModuleManagerMock(input *ModuleManagerMockInput) ModuleManagerFactory
type ModuleManagerMockInput ¶
type ModuleManagerMockInput struct {
Logger *log.Logger
TerraformCalls *exec.TerraformMockCalls
}
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
func (ModuleOperation) Done ¶
func (mo ModuleOperation) Done() <-chan struct{}
type NoTerraformExecPathErr ¶ added in v0.14.0
type NoTerraformExecPathErr struct{}
func (NoTerraformExecPathErr) Error ¶ added in v0.14.0
func (NoTerraformExecPathErr) Error() string
type SchemaSource ¶
type Walker ¶
type Walker struct {
// contains filtered or unexported fields
}
func NewWalker ¶
func NewWalker(fs filesystem.Filesystem, modMgr ModuleManager) *Walker
func SyncWalker ¶
func SyncWalker(fs filesystem.Filesystem, modMgr ModuleManager) *Walker
func (*Walker) EnqueuePath ¶ added in v0.19.0
func (*Walker) RemovePathFromQueue ¶ added in v0.19.0
func (*Walker) SetExcludeModulePaths ¶
func (*Walker) SetWatcher ¶
type WalkerFactory ¶
type WalkerFactory func(filesystem.Filesystem, ModuleManager) *Walker
type Watcher ¶
type Watcher interface {
Start() error
Stop() error
SetLogger(*log.Logger)
AddModule(string) error
RemoveModule(string) error
IsModuleWatched(string) bool
}
func NewWatcher ¶
func NewWatcher(fs filesystem.Filesystem, modMgr ModuleManager) (Watcher, error)
type WatcherFactory ¶
type WatcherFactory func(filesystem.Filesystem, ModuleManager) (Watcher, error)
func MockWatcher ¶
func MockWatcher() WatcherFactory
Source Files
¶
Click to show internal directories.
Click to hide internal directories.