iacinventory

package
v0.4.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CI

type CI string

CI is the type of CI used for a repository.

const (
	CIBuildkite CI = "buildkite"
	CIGithub    CI = "github"
	CIGitlab    CI = "gitlab"
	CICircle    CI = "circle"
	CIDrone     CI = "drone"
	CIJenkins   CI = "jenkins"
	CIAzure     CI = "azure"
	CITravis    CI = "travis"
)

type GithubIacInventoryScanner

type GithubIacInventoryScanner struct {
	User                 string
	OauthToken           string
	AllRepos             bool
	PublicRepos          bool
	ExplicitRepositories []string
	Orgs                 []string
}

func (*GithubIacInventoryScanner) Name

func (*GithubIacInventoryScanner) Run

type GithubRepo

type GithubRepo struct {
	// FullName includes the organization/user, as in "soluble-ai/example".
	FullName string `json:"full_name"`
	// Name is only the repository name, as in "example".
	Name string `json:"name"`

	// "github.com/"+FullName
	GitRepo string `json:"git_repo"`

	// CI is the repo's configured CI system, if present.
	CISystems []CI `json:"ci_systems,omitempty"`

	// TerraformDirs are directories that contain '.tf' files
	TerraformDirs []string `json:"terraform_dirs,omitempty"`

	// CloudformationDirs are directories that contain cloudformation files
	CloudformationDirs []string `json:"cloudformation_dirs,omitempty"`

	// DockerfileDirs are... Dockerfile files.
	DockerfileDirs []string `json:"dockerfile_files,omitempty"`

	// K8sManifestDirs are directories that contain Kubernetes manifest files
	K8sManifestDirs []string `json:"k8s_manifest_dirs,omitempty"`
}

Jump to

Keyboard shortcuts

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