Versions in this module Expand all Collapse all v0 v0.0.4 Dec 18, 2024 Changes in this version + type Validation struct + Condition string + ErrorMessage string v0.0.3 Dec 17, 2024 Changes in this version type Variable + Validation []string v0.0.1 Dec 17, 2024 Changes in this version + func IsModuleDir(dir string) bool + func IsModuleDirOnFilesystem(fs FS, dir string) bool + func LoadModule(dir string) (*Module, Diagnostics) + func LoadModuleFromFile(file *hcl.File, mod *Module) hcl.Diagnostics + func LoadModuleFromFilesystem(fs FS, dir string) (*Module, Diagnostics) + func RenderMarkdown(w io.Writer, module *Module) error + type Backend struct + Type string + type Check struct + DataResource *Resource + Name string + Pos SourcePos + type CheckRule struct + Condition string + ErrorMessage string + Pos SourcePos + type DiagSeverity rune + const DiagError + const DiagWarning + func (s DiagSeverity) MarshalJSON() ([]byte, error) + type Diagnostic struct + Detail string + Pos *SourcePos + Severity DiagSeverity + Summary string + type Diagnostics []Diagnostic + func (diags Diagnostics) Err() error + func (diags Diagnostics) Error() string + func (diags Diagnostics) HasErrors() bool + type FS interface + Open func(name string) (File, error) + ReadDir func(dirname string) ([]os.FileInfo, error) + ReadFile func(name string) ([]byte, error) + func NewOsFs() FS + func WrapFS(wrapped fs.FS) FS + type File interface + Close func() error + Read func([]byte) (int, error) + Stat func() (os.FileInfo, error) + type Module struct + Backend *Backend + Checks map[string]*Check + DataResources map[string]*Resource + Diagnostics Diagnostics + ManagedResources map[string]*Resource + ModuleCalls map[string]*ModuleCall + Outputs map[string]*Output + Path string + ProviderConfigs map[string]*ProviderConfig + RequiredCore []string + RequiredProviders map[string]*ProviderRequirement + Variables map[string]*Variable + func NewModule(path string) *Module + type ModuleCall struct + Name string + Pos SourcePos + Source string + Version string + type Output struct + Description string + Name string + Pos SourcePos + Sensitive bool + type ProviderConfig struct + Alias string + Name string + Pos SourcePos + type ProviderRef struct + Alias string + Name string + type ProviderRequirement struct + ConfigurationAliases []ProviderRef + Source string + VersionConstraints []string + type Resource struct + Mode ResourceMode + Name string + Pos SourcePos + Provider ProviderRef + Type string + func LoadResourceFromBlock(block *hcl.Block) (*Resource, hcl.Diagnostics) + func (r *Resource) MapKey() string + type ResourceMode rune + const DataResourceMode + const InvalidResourceMode + const ManagedResourceMode + func (m ResourceMode) MarshalJSON() ([]byte, error) + func (m ResourceMode) String() string + type SourcePos struct + Filename string + Line int + type Variable struct + Default interface{} + Description string + Name string + Pos SourcePos + Required bool + Sensitive bool + Type string + ValidationError []string + ValidationRule []string