Versions in this module Expand all Collapse all v0 v0.9.1 Apr 2, 2020 v0.9.0 Mar 31, 2020 Changes in this version + func IsModuleDir(dir string) bool + func LoadModule(dir string) (*Module, Diagnostics) + 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 Module struct + DataResources map[string]*Resource + Diagnostics Diagnostics + ManagedResources map[string]*Resource + ModuleCalls map[string]*ModuleCall + Outputs map[string]*Output + Path string + RequiredCore []string + RequiredProviders map[string]*ProviderRequirement + Variables map[string]*Variable + type ModuleCall struct + Name string + Pos SourcePos + Source string + Version string + type Output struct + Description string + Name string + Pos SourcePos + type ProviderRef struct + Alias string + Name string + type ProviderRequirement struct + Source string + VersionConstraints []string + type Resource struct + Mode ResourceMode + Name string + Pos SourcePos + Provider ProviderRef + Type string + 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 + Type string