# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
DetectorByInputTypes returns a concrete detector implementation for the given input types.
LoadMultiSourceInfoNode parses YAML documents with multiple entries, or normal single YAML/JSON documents.
No description provided by the author
NewDetectable is a helper to produce one of the concrete Detectable implementations from the given path.
NewLoader constructs a Loader using the given Detector.
No description provided by the author
Terraform plan format 0.2 introduced a change where the references array always includes both the property and its parent resource.
# Variables
Any is an aggregate type that contains all known input types.
Arm represents Azure Resource Manager template inputs.
Auto is an aggregate type that contains all of the IaC input types that this package supports.
CloudFormation represents CloudFormation template inputs.
CloudScan represents inputs from a Snyk Cloud Scan.
No description provided by the author
FailedToParseInput indicates that a detector failed to parse a specific input.
InvalidInput indicates that an input does not match the expected format.
Kubernetes represents Kubernetes manifest inputs.
SupportedInputTypes contains all of the input types that this package has detectors for.
Terraform is an aggregate input type that encompasses all input types that contain Terraform resource types.
TerraformHCL represents Terraform HCL source code inputs.
TerraformPlan represents Terraform Plan JSON inputs.
TerraformState represents Terraform State JSON inputs.
UnableToReadDir indicates that a file could not be read.
UnableToReadFile indicates that a file could not be read.
UnableToResolveLocation indicates that a detector could not resolve the location of the given resource / attribute path.
UnrecognizedFileExtension indicates that a detector was invoked on a file which does not have a recognized file extension.
UnsupportedInputType indicates that a particular InputType is not supported by this package.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
DetectOptions are options passed to the configuration detectors.
Directory is a Detectable implementation that represents a directory.
File is a Detectable implementation that represents a file.
No description provided by the author
No description provided by the author
Loader loads and collects IaC configurations using a given Detector.
Location is a filepath, line and column.
No description provided by the author
No description provided by the author
This is the loader that supports reading files and directories of HCL (.tf) files.
No description provided by the author
No description provided by the author
Type represents one or more types of inputs.
# Interfaces
No description provided by the author
Detectable is a generic interface to represent inputs for a ConfigurationDetector.
Detector implements the visitor part of the visitor pattern for the concrete Detectable implementations.
IACConfiguration is a loaded IaC Configuration.
# Type aliases
LocationStack represents a stack of Locations.
Types is a slice of Type struct.
WalkFunc is a callback that's invoked on each descendent of an Directory.