Documentation ¶
Index ¶
- func IsArchive(path string) bool
- func IsFileMatchesSchemas(schemas map[string]*gojsonschema.Schema, typ FileType, name string, ...) bool
- func IsHelmChartArchive(path string, file io.Reader) bool
- func IsTerraformFile(path string) bool
- func IsType(name string, r io.ReadSeeker, t FileType) bool
- func IsZip(path string) bool
- type FileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFileMatchesSchemas ¶ added in v0.55.0
func IsFileMatchesSchemas(schemas map[string]*gojsonschema.Schema, typ FileType, name string, r io.ReadSeeker) bool
func IsTerraformFile ¶
Types ¶
type FileType ¶
type FileType string
const ( FileTypeCloudFormation FileType = "cloudformation" FileTypeTerraform FileType = "terraform" FileTypeTerraformPlanJSON FileType = "terraformplan-json" FileTypeTerraformPlanSnapshot FileType = "terraformplan-snapshot" FileTypeDockerfile FileType = "dockerfile" FileTypeKubernetes FileType = "kubernetes" FileTypeRbac FileType = "rbac" FileTypeYAML FileType = "yaml" FileTypeTOML FileType = "toml" FileTypeJSON FileType = "json" FileTypeHelm FileType = "helm" FileTypeAzureARM FileType = "azure-arm" )
Click to show internal directories.
Click to hide internal directories.