Documentation ¶
Index ¶
- Constants
- func CheckDirectoryForIAC(dirPath string) []string
- func CheckUserInput(args *model.Arguments) string
- func ConfigType(file string) string
- func ConvertStringListToArray(input string) *[]string
- func Exists(filename string) bool
- func GenerateClass(path string) string
- func ParseAzureTemplateFile(configFile string) (interface{}, string)
- func ParseCloudformationFile(configFile string) (interface{}, string)
- func ParseDockerfile(filename string) (interface{}, string)
- func ParseKubernetesFile(configFile string) (interface{}, string)
- func ParseTerraformFile(filename string) (interface{}, string)
- type DockerInstruction
- type LineRange
- type Resource
Constants ¶
View Source
const ( FileTypeTerraform string = "terraform" FileTypeDockerfile string = "docker" FileTypeKubernetes string = "kubernetes" FileTypeCloudFormation string = "cloudformation" FileTypeYAML string = "yaml" FileTypeJSON string = "json" FileTypeHelm string = "helm" FileTypeAzureARM string = "azurearm" TypeSlice string = "!!seq" TypeMap string = "!!map" TypeBool string = "!!bool" TypeInt string = "!!int" TypeFloat string = "!!float" TypeStr string = "!!str" TypeString string = "!!string" )
Variables ¶
This section is empty.
Functions ¶
func CheckDirectoryForIAC ¶
func CheckUserInput ¶
CheckUserInput evaluates specified arguments by user
func ConfigType ¶
func ConvertStringListToArray ¶ added in v1.1.0
func GenerateClass ¶
func ParseAzureTemplateFile ¶ added in v1.14.0
parse Cloudformation config
func ParseCloudformationFile ¶ added in v1.13.0
parse Cloudformation config
func ParseDockerfile ¶ added in v1.7.0
func ParseKubernetesFile ¶
parse kubernetes config
func ParseTerraformFile ¶
Types ¶
type DockerInstruction ¶ added in v1.7.0
type DockerInstruction struct { LineRange LineRange `json:"line_range"` Instruction string `json:"instruction"` Args []string `json:"args"` }
DockerInstruction represents a Dockerfile instruction in JSON format
type Resource ¶
type Resource struct { Type string `json:"Type"` Labels []string `json:"Labels"` Attributes map[string]interface{} `json:"Attributes"` Blocks []Resource `json:"Blocks"` LineRange map[string]interface{} `json:"line_range"` }
Custom data structures to represent the Terraform file in an interface
Click to show internal directories.
Click to hide internal directories.