inventory

package
v0.4.40 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 10 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 Manifest

type Manifest struct {
	TerraformRootModuleDirectories util.StringSet `json:"terraform_root_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"`
}

func Do

func Do(root string) *Manifest

Jump to

Keyboard shortcuts

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