inventory

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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