repotree

package
v0.5.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGitDir

func FindGitDir(dir string) (string, error)

func FindRepoRoot

func FindRepoRoot(dir string) (string, error)

Types

type File

type File struct {
	Path      string              `json:"-"`
	Modified  bool                `json:"modified,omitempty"`
	Terraform *terraform.Metadata `json:"terraform,omitempty"`
}

type TerraformExternalModuleUse

type TerraformExternalModuleUse struct {
	Version    string `json:"version,omitempty"`
	UsageCount int    `json:"usage_count"`
}

type Tree

type Tree struct {
	FileCount                    int                                   `json:"file_count"`
	TerraformLocalResourceCounts map[string]int                        `json:"terraform_local_resource_counts,omitempty"`
	TerraformTopLevelModules     []string                              `json:"terraform_top_level_modules,omitempty"`
	TerraformBackends            []string                              `json:"terraform_backends,omitempty"`
	TerraformExternalModules     map[string]TerraformExternalModuleUse `json:"terraform_external_modules,omitempty"`
	CDKDirectories               []string                              `json:"-"` // omit for now
	Files                        map[string]*File                      `json:"files,omitempty"`
}

func Do

func Do(dir string) (*Tree, error)

func (*Tree) GetFile

func (tree *Tree) GetFile(path string) *File

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL