Documentation
¶
Index ¶
- Constants
- func SimpleJsonMarshal(v any) string
- type App
- type BaseDir
- type Dependencies
- type DependentMap
- type Dependents
- type IO
- type InMemoryStore
- type Ldflags
- type Loader
- type Module
- type ModuleDir
- type ModulesJson
- type Parser
- type SourceDir
- type SourceDirs
- type Store
- type Terraform
- type TfDir
- type TfDirs
Constants ¶
View Source
const ( ModulesPath = ".terraform/modules/modules.json" SuppressTerraform = true )
Variables ¶
This section is empty.
Functions ¶
func SimpleJsonMarshal ¶
Types ¶
type Dependencies ¶
func NewDependencies ¶
func NewDependencies(baseDir BaseDir, io *IO) *Dependencies
func (*Dependencies) Run ¶
func (d *Dependencies) Run() error
type DependentMap ¶
type DependentMap struct {
// contains filtered or unexported fields
}
func NewDependentMap ¶
func NewDependentMap() *DependentMap
func (*DependentMap) Add ¶
func (m *DependentMap) Add(moduleDir ModuleDir, tfDir TfDir)
func (*DependentMap) IsModule ¶
func (m *DependentMap) IsModule(moduleDir ModuleDir) bool
func (*DependentMap) ListTfDirSlice ¶
func (m *DependentMap) ListTfDirSlice(moduleDir ModuleDir) []TfDir
func (*DependentMap) String ¶
func (m *DependentMap) String() string
func (*DependentMap) ToJson ¶
func (m *DependentMap) ToJson() string
type Dependents ¶
func NewDependents ¶
func NewDependents(baseDir BaseDir, io *IO) *Dependents
func (*Dependents) Run ¶
func (d *Dependents) Run() error
type InMemoryStore ¶
type InMemoryStore struct {
*DependentMap
}
func NewStore ¶
func NewStore() *InMemoryStore
func (*InMemoryStore) Dump ¶
func (s *InMemoryStore) Dump() *DependentMap
func (*InMemoryStore) List ¶
func (s *InMemoryStore) List(sourceDirs SourceDirs) *TfDirs
func (*InMemoryStore) Save ¶
func (s *InMemoryStore) Save(moduleDir ModuleDir, tfDir TfDir)
type ModulesJson ¶
type ModulesJson struct {
Modules []Module `json:"Modules"`
}
type SourceDirs ¶
type SourceDirs []SourceDir
func NewSourceDirs ¶
func NewSourceDirs(inputs []string) SourceDirs
type Store ¶
type Store interface {
Save(moduleDir ModuleDir, tfDir TfDir)
List(sourceDirs SourceDirs) *TfDirs
Dump() *DependentMap
}
type Terraform ¶
type Terraform struct {
*IO
}
func NewTerraform ¶
func (*Terraform) ExecuteGetAll ¶
type TfDirs ¶
type TfDirs struct {
// contains filtered or unexported fields
}
func (*TfDirs) MarshalJSON ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.