inventory

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGitDir added in v0.4.32

func FindGitDir(dir string) (string, error)

func FindRepoRoot added in v0.4.32

func FindRepoRoot(dir string) (string, error)

func PartialDecode

func PartialDecode(name string, buf []byte) map[string]string

func PartialDecodeJSON

func PartialDecodeJSON(buf []byte) map[string]string

func PartialDecodeYAML

func PartialDecodeYAML(buf []byte) map[string]string

Types

type ContentDetector

type ContentDetector interface {
	DetectContent(*Manifest, string, []byte)
}

type DirDetector

type DirDetector interface {
	DetectDirName(m *Manifest, path string)
}

type FileDetector

type FileDetector interface {
	DetectFileName(m *Manifest, path string) ContentDetector
}

type FinalizeDetector added in v0.4.42

type FinalizeDetector interface {
	FinalizeDetection(m *Manifest)
}

type LanguageDetector added in v0.4.42

type LanguageDetector struct {
	// contains filtered or unexported fields
}

func (*LanguageDetector) DetectFileName added in v0.4.42

func (d *LanguageDetector) DetectFileName(m *Manifest, path string) ContentDetector

func (*LanguageDetector) FinalizeDetection added in v0.4.42

func (d *LanguageDetector) FinalizeDetection(m *Manifest)

type Manifest

type Manifest struct {
	TerraformRootModules          util.StringSet `json:"terraform_root_modules"`
	TerraformModules              util.StringSet `json:"terraform_modules"`
	CloudformationFiles           util.StringSet `json:"cloudformation_files"`
	HelmCharts                    util.StringSet `json:"helm_charts"`
	KubernetesManifestDirectories util.StringSet `json:"kubernetes_manifest_directories"`
	CISystems                     util.StringSet `json:"ci_systems"`
	DockerDirectories             util.StringSet `json:"docker_directories"`
	GODirectories                 util.StringSet `json:"go_directories"`
	PythonDirectories             util.StringSet `json:"python_directories"`
	NodeDirectories               util.StringSet `json:"node_directories"`
	JavaDirectories               util.StringSet `json:"java_directories"`
	RubyDirectories               util.StringSet `json:"ruby_directories"`
	CDKDirectories                util.StringSet `json:"cdk_directories"`
}

func Do

func Do(root string) *Manifest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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