SYMBOL INDEX (466 symbols across 61 files) FILE: assertion/compare.go function intCompare (line 8) | func intCompare(n1 int, n2 int) int { function daysOld (line 18) | func daysOld(data interface{}) int { function compare (line 32) | func compare(data interface{}, value string, valueType string) int { FILE: assertion/compare_test.go function TestDaysOldForToday (line 9) | func TestDaysOldForToday(t *testing.T) { function TestDaysOldFor90DaysAgo (line 14) | func TestDaysOldFor90DaysAgo(t *testing.T) { FILE: assertion/contains.go function interfaceListContains (line 7) | func interfaceListContains(v []interface{}, key, value string) (MatchRes... function stringListContains (line 21) | func stringListContains(v []string, key, value string) (MatchResult, err... function stringContains (line 33) | func stringContains(v string, key, value string) (MatchResult, error) { function defaultContains (line 40) | func defaultContains(data interface{}, key, value string) (MatchResult, ... function contains (line 51) | func contains(data interface{}, key, value string) (MatchResult, error) { function doesNotContain (line 64) | func doesNotContain(data interface{}, key, value string) (MatchResult, e... function startsWith (line 75) | func startsWith(data interface{}, key, prefix string) (MatchResult, erro... function endsWith (line 87) | func endsWith(data interface{}, key, suffix string) (MatchResult, error) { FILE: assertion/contains_test.go function TestContainsWithNonJSONType (line 10) | func TestContainsWithNonJSONType(t *testing.T) { function TestDoesNotContainWithNonJSONType (line 18) | func TestDoesNotContainWithNonJSONType(t *testing.T) { function TestContainsWithString (line 26) | func TestContainsWithString(t *testing.T) { function TestContainsWithSliceOfStrings (line 33) | func TestContainsWithSliceOfStrings(t *testing.T) { FILE: assertion/expression.go function searchAndMatch (line 3) | func searchAndMatch(expression Expression, resource Resource) (MatchResu... function orExpression (line 16) | func orExpression(expressions []Expression, resource Resource) (MatchRes... function xorExpression (line 29) | func xorExpression(expressions []Expression, resource Resource) (MatchRe... function andExpression (line 46) | func andExpression(expressions []Expression, resource Resource) (MatchRe... function notExpression (line 59) | func notExpression(expressions []Expression, resource Resource) (MatchRe... function collectResources (line 73) | func collectResources(key string, resource Resource) ([]Resource, error) { function everyExpression (line 93) | func everyExpression(collectionExpression CollectionExpression, resource... function someExpression (line 112) | func someExpression(collectionExpression CollectionExpression, resource ... function noneExpression (line 131) | func noneExpression(collectionExpression CollectionExpression, resource ... function exactlyOneExpression (line 150) | func exactlyOneExpression(collectionExpression CollectionExpression, res... function booleanExpression (line 171) | func booleanExpression(expression Expression, resource Resource) (MatchR... function ExcludeResource (line 200) | func ExcludeResource(rule Rule, resource Resource) bool { function FilterResourceExceptions (line 210) | func FilterResourceExceptions(rule Rule, resources []Resource) []Resource { function CheckExpression (line 224) | func CheckExpression(rule Rule, expression Expression, resource Resource... FILE: assertion/expression_test.go type ExpressionTestCase (line 8) | type ExpressionTestCase struct function TestCheckExpression (line 14) | func TestCheckExpression(t *testing.T) { function TestNestedBooleans (line 406) | func TestNestedBooleans(t *testing.T) { function TestExceptions (line 469) | func TestExceptions(t *testing.T) { function TestNoExceptions (line 486) | func TestNoExceptions(t *testing.T) { function TestUsingFixtures (line 503) | func TestUsingFixtures(t *testing.T) { FILE: assertion/has_properties.go function hasProperties (line 7) | func hasProperties(data interface{}, list string) (MatchResult, error) { FILE: assertion/helper_test.go type FixtureTestCases (line 11) | type FixtureTestCases struct type FixtureTestCase (line 17) | type FixtureTestCase struct function FailTestIfError (line 26) | func FailTestIfError(err error, message string, t *testing.T) { function LoadTestCasesFromFixture (line 33) | func LoadTestCasesFromFixture(filename string, t *testing.T) FixtureTest... function RunTestCasesFromFixture (line 49) | func RunTestCasesFromFixture(filename string, t *testing.T) { FILE: assertion/invoke.go type InvokeViolation (line 12) | type InvokeViolation struct type InvokeResponse (line 17) | type InvokeResponse struct type StandardExternalRuleInvoker (line 22) | type StandardExternalRuleInvoker struct method Invoke (line 45) | func (e StandardExternalRuleInvoker) Invoke(rule Rule, resource Resour... function makeViolation (line 25) | func makeViolation(rule Rule, resource Resource, message string) Violati... function makeViolations (line 39) | func makeViolations(rule Rule, resource Resource, message string) []Viol... FILE: assertion/invoke_test.go function TestInvokeOK (line 13) | func TestInvokeOK(t *testing.T) { function TestInvokeWithViolations (line 33) | func TestInvokeWithViolations(t *testing.T) { function TestInvokeSendsMetadata (line 60) | func TestInvokeSendsMetadata(t *testing.T) { FILE: assertion/ip_operations.go function getIPObject (line 13) | func getIPObject(addressString string) (net.IP, error) { function isSubnet (line 24) | func isSubnet(ipAddressStr string, supernet string) bool { function isPrivateIP (line 37) | func isPrivateIP(ipAddressStr string) bool { function maxHostCount (line 46) | func maxHostCount(ruleCidr string, hostLimitStr string) bool { function hostCountByNetmaskOnes (line 64) | func hostCountByNetmaskOnes(netmaskOnes int) int { FILE: assertion/ip_operations_test.go function TestIsSubnet (line 19) | func TestIsSubnet(t *testing.T) { function TestIsPrivateIp (line 48) | func TestIsPrivateIp(t *testing.T) { function TestMaxHostCount (line 73) | func TestMaxHostCount(t *testing.T) { FILE: assertion/log.go function SetDebug (line 10) | func SetDebug(b bool) { function Debugf (line 15) | func Debugf(format string, args ...interface{}) { function DebugJSON (line 22) | func DebugJSON(title string, object interface{}) { FILE: assertion/match.go function matches (line 9) | func matches() (MatchResult, error) { function doesNotMatch (line 13) | func doesNotMatch(format string, args ...interface{}) (MatchResult, erro... function matchError (line 20) | func matchError(err error) (MatchResult, error) { function isMatch (line 27) | func isMatch(data interface{}, expression Expression) (MatchResult, erro... FILE: assertion/match_test.go type MatchTestCase (line 9) | type MatchTestCase struct function getQuotesRight (line 17) | func getQuotesRight(jsonString string) string { function unmarshal (line 27) | func unmarshal(s string) (interface{}, error) { function TestIsMatch (line 39) | func TestIsMatch(t *testing.T) { FILE: assertion/rules.go function ParseRules (line 9) | func ParseRules(rules string) (RuleSet, error) { function FilterRulesByTag (line 16) | func FilterRulesByTag(rules []Rule, tags []string) []Rule { function FilterRulesByID (line 27) | func FilterRulesByID(rules []Rule, ruleIDs []string, ignoreRuleIDs []str... function uniqueRules (line 54) | func uniqueRules(list []Rule) []Rule { function FilterRulesByTagAndID (line 67) | func FilterRulesByTagAndID(rules []Rule, tags []string, ruleIds []string... function ResolveRules (line 81) | func ResolveRules(rules []Rule, valueSource ValueSource) ([]Rule, []Viol... function ResolveRule (line 93) | func ResolveRule(rule Rule, valueSource ValueSource) (Rule, []Violation) { function CheckRule (line 121) | func CheckRule(rule Rule, resource Resource, e ExternalRuleInvoker) (str... function JoinRuleSets (line 170) | func JoinRuleSets(firstSet RuleSet, secondSet RuleSet) (RuleSet, error) { FILE: assertion/rules_test.go type TestValueSource (line 10) | type TestValueSource struct method GetValue (line 12) | func (t TestValueSource) GetValue(expression Expression) (string, erro... function testValueSource (line 19) | func testValueSource() ValueSource { type TestValueSourceWithError (line 25) | type TestValueSourceWithError struct method GetValue (line 27) | func (t TestValueSourceWithError) GetValue(expression Expression) (str... function testValueSourceWithError (line 31) | func testValueSourceWithError() ValueSource { type MockExternalRuleInvoker (line 37) | type MockExternalRuleInvoker method Invoke (line 44) | func (e *MockExternalRuleInvoker) Invoke(Rule, Resource) (string, []Vi... function mockExternalRuleInvoker (line 39) | func mockExternalRuleInvoker() *MockExternalRuleInvoker { function MustParseRules (line 84) | func MustParseRules(content string, t *testing.T) RuleSet { function TestParseRules (line 92) | func TestParseRules(t *testing.T) { type FilterTestCase (line 99) | type FilterTestCase struct function TestFilterRules (line 106) | func TestFilterRules(t *testing.T) { function TestFilterRulesByTagAndID (line 127) | func TestFilterRulesByTagAndID(t *testing.T) { function TestRuleWithMultipleFilter (line 155) | func TestRuleWithMultipleFilter(t *testing.T) { function TestMultipleFiltersWithSingleFailure (line 175) | func TestMultipleFiltersWithSingleFailure(t *testing.T) { function TestMultipleFiltersWithMultipleFailures (line 195) | func TestMultipleFiltersWithMultipleFailures(t *testing.T) { function TestValueFrom (line 228) | func TestValueFrom(t *testing.T) { function TestResolveRuleError (line 252) | func TestResolveRuleError(t *testing.T) { function TestInvokeRule (line 274) | func TestInvokeRule(t *testing.T) { FILE: assertion/search.go function SearchData (line 8) | func SearchData(expression string, data interface{}) (interface{}, error) { FILE: assertion/types.go type Resource (line 6) | type Resource struct type RuleSet (line 16) | type RuleSet struct type Rule (line 28) | type Rule struct type Expression (line 44) | type Expression struct type CollectionExpression (line 61) | type CollectionExpression struct type ValueFrom (line 67) | type ValueFrom struct type InvokeRuleAPI (line 73) | type InvokeRuleAPI struct type ResourceConfig (line 79) | type ResourceConfig struct type ColumnConfig (line 86) | type ColumnConfig struct type ValidationReport (line 91) | type ValidationReport struct type Violation (line 98) | type Violation struct type ScannedResource (line 112) | type ScannedResource struct type ValueSource (line 122) | type ValueSource interface type ExternalRuleInvoker (line 127) | type ExternalRuleInvoker interface type MatchResult (line 132) | type MatchResult struct type Result (line 138) | type Result struct FILE: assertion/util.go function unquoted (line 10) | func unquoted(s string) string { function quoted (line 17) | func quoted(s string) string { function isAbsent (line 21) | func isAbsent(s string) bool { function isPresent (line 28) | func isPresent(s string) bool { function isEmpty (line 32) | func isEmpty(data interface{}) bool { function isArray (line 48) | func isArray(data interface{}) bool { function listsIntersect (line 63) | func listsIntersect(list1 []string, list2 []string) bool { function jsonListsIntersect (line 74) | func jsonListsIntersect(s1 string, s2 string) bool { function ShouldIncludeFile (line 89) | func ShouldIncludeFile(patterns []string, filename string) (bool, error) { function FilterResourcesByType (line 107) | func FilterResourcesByType(resources []Resource, resourceType string, re... function FilterResourcesByTypes (line 121) | func FilterResourcesByTypes(resources []Resource, resourceTypes []string... function categoryMatches (line 131) | func categoryMatches(c1, c2 string) bool { function JSONStringify (line 139) | func JSONStringify(data interface{}) (string, error) { function currentTime (line 147) | func currentTime() string { function SliceContains (line 151) | func SliceContains(list []string, value string) bool { function ExcludeResourceTypes (line 161) | func ExcludeResourceTypes(resources []Resource, resourceTypes []string, ... function FilterResourcesForRule (line 172) | func FilterResourcesForRule(resources []Resource, rule Rule) []Resource { FILE: assertion/util_test.go function TestUnquotedWithoutQuotes (line 8) | func TestUnquotedWithoutQuotes(t *testing.T) { function TestUnquotedWithQuotes (line 14) | func TestUnquotedWithQuotes(t *testing.T) { function TestIsAbsentEmptyString (line 20) | func TestIsAbsentEmptyString(t *testing.T) { function TestIsAbsentEmptyArray (line 26) | func TestIsAbsentEmptyArray(t *testing.T) { function TestIsAbsentNull (line 32) | func TestIsAbsentNull(t *testing.T) { function TestIsAbsentFalse (line 38) | func TestIsAbsentFalse(t *testing.T) { function TestIntersectTrue (line 44) | func TestIntersectTrue(t *testing.T) { function TestIntersectFalse (line 52) | func TestIntersectFalse(t *testing.T) { function TestJSONListsIntersectTrue (line 60) | func TestJSONListsIntersectTrue(t *testing.T) { function TestShouldIncludeFile (line 68) | func TestShouldIncludeFile(t *testing.T) { function TestShouldNotIncludeFile (line 79) | func TestShouldNotIncludeFile(t *testing.T) { function TestFilterShouldIncludeResources (line 90) | func TestFilterShouldIncludeResources(t *testing.T) { function TestFilterShouldExcludeResources (line 101) | func TestFilterShouldExcludeResources(t *testing.T) { function TestFilterShouldIncludeAllResources (line 112) | func TestFilterShouldIncludeAllResources(t *testing.T) { function TestFilterShouldMatchCategoryForResources (line 123) | func TestFilterShouldMatchCategoryForResources(t *testing.T) { function TestSliceContainsTrue (line 134) | func TestSliceContainsTrue(t *testing.T) { function TestSliceContainsFalse (line 142) | func TestSliceContainsFalse(t *testing.T) { function TestFilterPluralShouldMatchMultipleResources (line 150) | func TestFilterPluralShouldMatchMultipleResources(t *testing.T) { function TestFilterPluralShouldNotHaveUnlistedResources (line 161) | func TestFilterPluralShouldNotHaveUnlistedResources(t *testing.T) { function TestFilterResourcesForRuleSlice (line 173) | func TestFilterResourcesForRuleSlice(t *testing.T) { function TestFilterResourcesForRuleString (line 190) | func TestFilterResourcesForRuleString(t *testing.T) { function TestFilterResourcesForWildcard (line 204) | func TestFilterResourcesForWildcard(t *testing.T) { function TestFilterResourcesForDefault (line 218) | func TestFilterResourcesForDefault(t *testing.T) { function TestFilterExcludeResourcesForRuleString (line 230) | func TestFilterExcludeResourcesForRuleString(t *testing.T) { FILE: assertion/value.go type StandardValueSource (line 17) | type StandardValueSource struct method GetValue (line 22) | func (v StandardValueSource) GetValue(expression Expression) (string, ... method GetValueFromS3 (line 52) | func (v StandardValueSource) GetValueFromS3(bucket string, key string)... method GetValueFromHTTP (line 94) | func (v StandardValueSource) GetValueFromHTTP(url string) (string, err... function getBucketRegion (line 77) | func getBucketRegion(bucket string) (string, error) { FILE: assertion/value_test.go function TestCommandLineVariable (line 11) | func TestCommandLineVariable(t *testing.T) { function TestValueFromHttp (line 27) | func TestValueFromHttp(t *testing.T) { FILE: cli/app.go type LinterOptions (line 25) | type LinterOptions struct type ProfileOptions (line 37) | type ProfileOptions struct type RuleException (line 52) | type RuleException struct type CommandLineOptions (line 61) | type CommandLineOptions struct type ReportWriter (line 82) | type ReportWriter interface type DefaultReportWriter (line 87) | type DefaultReportWriter struct function main (line 92) | func main() { function addExceptions (line 160) | func addExceptions(ruleSets []assertion.RuleSet, exceptions []RuleExcept... function addExceptionsToRuleSet (line 168) | func addExceptionsToRuleSet(ruleSet assertion.RuleSet, exceptions []Rule... function resourceMatch (line 182) | func resourceMatch(rule assertion.Rule, exception RuleException) bool { function categoryMatch (line 189) | func categoryMatch(rule assertion.Rule, exception RuleException) bool { function validateRules (line 193) | func validateRules(filenames []string, w ReportWriter) (int, error) { function loadRuleSets (line 205) | func loadRuleSets(args arrayFlags) ([]assertion.RuleSet, error) { function isYamlFile (line 223) | func isYamlFile(filename string) bool { function yamlFilesOnly (line 230) | func yamlFilesOnly(filenames []string) []string { function loadBuiltInRuleSet (line 243) | func loadBuiltInRuleSet(filename string) (assertion.RuleSet, error) { function addRuleSet (line 279) | func addRuleSet(ruleSet assertion.RuleSet, box packr.Box, filename strin... function getRuleSet (line 299) | func getRuleSet(box packr.Box, name string) (assertion.RuleSet, error) { function applyRules (line 313) | func applyRules(ruleSets []assertion.RuleSet, args arrayFlags, options L... function printReport (line 352) | func printReport(w io.Writer, report assertion.ValidationReport, queryEx... type arrayFlags (line 377) | type arrayFlags method String (line 379) | func (i *arrayFlags) String() string { method Set (line 386) | func (i *arrayFlags) Set(value string) error { function generateExitCode (line 391) | func generateExitCode(report assertion.ValidationReport) int { function loadFilenames (line 400) | func loadFilenames(commandLineFilenames []string, profileFilenames []str... function defaultToCurrentDirectory (line 410) | func defaultToCurrentDirectory(filenames []string) []string { function excludeFilenames (line 417) | func excludeFilenames(filenames []string, excludePatterns []string) []st... function excludeFilename (line 428) | func excludeFilename(filename string, excludePatterns []string) bool { function getFilenames (line 439) | func getFilenames(args []string) []string { function getFilesInDirectory (line 462) | func getFilesInDirectory(root string) []string { FILE: cli/app_test.go function TestLoadTerraformRules (line 13) | func TestLoadTerraformRules(t *testing.T) { function TestLoadValidateRules (line 20) | func TestLoadValidateRules(t *testing.T) { function TestExcludeAll (line 27) | func TestExcludeAll(t *testing.T) { function TestExcludeSubdirectory (line 36) | func TestExcludeSubdirectory(t *testing.T) { function TestExcludeOnePattern (line 45) | func TestExcludeOnePattern(t *testing.T) { function TestExcludeMultiplePattern (line 54) | func TestExcludeMultiplePattern(t *testing.T) { function TestExcludeFrom (line 63) | func TestExcludeFrom(t *testing.T) { function TestProfileExceptions (line 80) | func TestProfileExceptions(t *testing.T) { function TestBuiltRules (line 107) | func TestBuiltRules(t *testing.T) { function TestPrintReport (line 137) | func TestPrintReport(t *testing.T) { function TestPrintReportWithQueryString (line 147) | func TestPrintReportWithQueryString(t *testing.T) { type MockReportWriter (line 162) | type MockReportWriter struct method WriteReport (line 166) | func (w MockReportWriter) WriteReport(r assertion.ValidationReport, o ... function TestApplyRules (line 170) | func TestApplyRules(t *testing.T) { function TestValidateRules (line 184) | func TestValidateRules(t *testing.T) { function TestResourceMatch (line 191) | func TestResourceMatch(t *testing.T) { function TestLoadRuleSetsBadFilename (line 233) | func TestLoadRuleSetsBadFilename(t *testing.T) { function TestLoadRuleSetsParseErrors (line 239) | func TestLoadRuleSetsParseErrors(t *testing.T) { function TestStdinFilename (line 248) | func TestStdinFilename(t *testing.T) { function TestGetFilenamesUsingDirectory (line 254) | func TestGetFilenamesUsingDirectory(t *testing.T) { function TestLoadFilenamesFromCommandLine (line 261) | func TestLoadFilenamesFromCommandLine(t *testing.T) { function TestLoadFilenamesFromProfile (line 268) | func TestLoadFilenamesFromProfile(t *testing.T) { function TestArrayFlags (line 275) | func TestArrayFlags(t *testing.T) { function TestLoadBuiltInRuleSetMissing (line 283) | func TestLoadBuiltInRuleSetMissing(t *testing.T) { FILE: cli/builtin_test.go function loadRules (line 11) | func loadRules(t *testing.T, filename string) assertion.RuleSet { type BuiltInTestCase (line 17) | type BuiltInTestCase struct function numberOfWarnings (line 24) | func numberOfWarnings(violations []assertion.Violation) int { function numberOfFailures (line 33) | func numberOfFailures(violations []assertion.Violation) int { function getViolationsString (line 44) | func getViolationsString(severity string, violations []assertion.Violati... FILE: cli/options.go function getCommandLineOptions (line 14) | func getCommandLineOptions() CommandLineOptions { function getLinterOptions (line 41) | func getLinterOptions(o CommandLineOptions, p ProfileOptions) (LinterOpt... function loadProfile (line 65) | func loadProfile(filename string) (ProfileOptions, error) { function makeTagList (line 96) | func makeTagList(tags string, profileOptions []string) []string { function makeRulesList (line 106) | func makeRulesList(ruleIDs string, profileOptions []string) []string { function makeQueryExpression (line 116) | func makeQueryExpression(queryExpression string, verboseReport bool, pro... function parseVariables (line 131) | func parseVariables(vars []string) map[string]string { function mergeVariables (line 144) | func mergeVariables(a, b map[string]string) map[string]string { function loadExcludePatterns (line 157) | func loadExcludePatterns(patterns []string, excludeFromFilenames []strin... function validateParser (line 176) | func validateParser(parser string) (string, error) { FILE: cli/options_test.go function emptyCommandLineOptions (line 7) | func emptyCommandLineOptions() CommandLineOptions { function TestCommandLineOnlyOptions (line 21) | func TestCommandLineOnlyOptions(t *testing.T) { function TestProfileOnlyOptions (line 36) | func TestProfileOnlyOptions(t *testing.T) { function TestCommandLineOverridesProfile (line 51) | func TestCommandLineOverridesProfile(t *testing.T) { function TestCommandLineVariables (line 68) | func TestCommandLineVariables(t *testing.T) { function TestMergeVariables (line 87) | func TestMergeVariables(t *testing.T) { function TestLoadProfile (line 116) | func TestLoadProfile(t *testing.T) { function TestProfileExclude (line 126) | func TestProfileExclude(t *testing.T) { function TestValidateParser (line 150) | func TestValidateParser(t *testing.T) { FILE: cli/report_writer.go method WriteReport (line 8) | func (w DefaultReportWriter) WriteReport(report assertion.ValidationRepo... FILE: cli/report_writer_test.go function TestReportWriter (line 10) | func TestReportWriter(t *testing.T) { FILE: cli/terraform_test.go type TestSuite (line 17) | type TestSuite struct type TestCase (line 26) | type TestCase struct function isTestCase (line 36) | func isTestCase(filename string) bool { function loadTestSuite (line 47) | func loadTestSuite(filename string) (TestSuite, error) { function getTestResources (line 65) | func getTestResources(directory string) ([]string, error) { function contains (line 83) | func contains(arr []string, str string) bool { function runTestSuite (line 93) | func runTestSuite(t *testing.T, ts TestSuite) { function RunBuiltinTests (line 160) | func RunBuiltinTests(t *testing.T, resourceType string) { function TestTerraformBuiltInRules (line 177) | func TestTerraformBuiltInRules(t *testing.T) { FILE: linter/common.go function readContent (line 15) | func readContent(filename string) ([]byte, error) { function loadYAML (line 22) | func loadYAML(filename string) ([]interface{}, error) { function splitYAMLDocs (line 48) | func splitYAMLDocs(content string) []string { function docIsNotEmpty (line 68) | func docIsNotEmpty(s string) bool { function loadJSON (line 72) | func loadJSON(filename string) ([]interface{}, error) { function loadCSV (line 88) | func loadCSV(filename string) ([][]string, error) { function getResourceIDFromFilename (line 96) | func getResourceIDFromFilename(filename string) string { function CombineValidationReports (line 102) | func CombineValidationReports(r1, r2 assertion.ValidationReport) asserti... FILE: linter/common_test.go function TestLoadYamlFileError (line 10) | func TestLoadYamlFileError(t *testing.T) { function TestLoadYamlParseError (line 17) | func TestLoadYamlParseError(t *testing.T) { function TestLoadYamlUnexpectedFormat (line 27) | func TestLoadYamlUnexpectedFormat(t *testing.T) { function TestLoadYamlMultipleDocuments (line 33) | func TestLoadYamlMultipleDocuments(t *testing.T) { function TestLoadYamlWithEmbeddedYaml (line 39) | func TestLoadYamlWithEmbeddedYaml(t *testing.T) { function TestLoadYamlWithEmptyDocument (line 45) | func TestLoadYamlWithEmptyDocument(t *testing.T) { function TestGetResourceIDFromFilename (line 51) | func TestGetResourceIDFromFilename(t *testing.T) { function TestCombineValidationReports (line 59) | func TestCombineValidationReports(t *testing.T) { FILE: linter/csv_resource_loader.go type CSVResourceLoader (line 9) | type CSVResourceLoader struct method Load (line 23) | func (l CSVResourceLoader) Load(filename string) (FileResources, error) { method PostLoad (line 50) | func (l CSVResourceLoader) PostLoad(r FileResources) ([]assertion.Reso... function extractCSVResourceID (line 13) | func extractCSVResourceID(expression string, properties interface{}) str... FILE: linter/csv_resource_loader_test.go function TestCSVLinterValidate (line 9) | func TestCSVLinterValidate(t *testing.T) { function TestCSVLinterSearch (line 24) | func TestCSVLinterSearch(t *testing.T) { FILE: linter/file_linter.go type Variable (line 13) | type Variable struct type FileResources (line 18) | type FileResources struct type FileResourceLoader (line 23) | type FileResourceLoader interface type FileLinter (line 28) | type FileLinter struct method Validate (line 36) | func (fl FileLinter) Validate(ruleSet assertion.RuleSet, options Optio... method Search (line 119) | func (fl FileLinter) Search(ruleSet assertion.RuleSet, searchExpressio... function filterFiles (line 75) | func filterFiles(fileNames []string, patterns []string) (ret []string) { function iterateFiles (line 85) | func iterateFiles(fl FileLinter, ruleSet assertion.RuleSet, filesScanned... function makeLoadViolation (line 104) | func makeLoadViolation(filename string, err error) assertion.Violation { FILE: linter/file_linter_test.go function TestFilterFiles (line 8) | func TestFilterFiles(t *testing.T) { FILE: linter/helpers_test.go function loadRulesForTest (line 9) | func loadRulesForTest(filename string, t *testing.T) assertion.RuleSet { function assertViolationsCount (line 23) | func assertViolationsCount(testName string, count int, violations []asse... function assertViolationByRuleID (line 30) | func assertViolationByRuleID(testName string, ruleID string, violations ... FILE: linter/json_resource_loader.go type JSONResourceLoader (line 9) | type JSONResourceLoader struct method Load (line 23) | func (l JSONResourceLoader) Load(filename string) (FileResources, erro... method PostLoad (line 58) | func (l JSONResourceLoader) PostLoad(r FileResources) ([]assertion.Res... function extractJSONResourceID (line 13) | func extractJSONResourceID(expression string, properties interface{}) st... FILE: linter/json_resource_loader_test.go function TestJSONLinterValidate (line 9) | func TestJSONLinterValidate(t *testing.T) { function TestJSONLinterSearch (line 25) | func TestJSONLinterSearch(t *testing.T) { FILE: linter/kubernetes.go type KubernetesLinter (line 10) | type KubernetesLinter struct type KubernetesResourceLoader (line 16) | type KubernetesResourceLoader struct method Load (line 28) | func (l KubernetesResourceLoader) Load(filename string) (FileResources... method PostLoad (line 63) | func (l KubernetesResourceLoader) PostLoad(r FileResources) ([]asserti... function getResourceIDFromMetadata (line 18) | func getResourceIDFromMetadata(m map[string]interface{}) (string, bool) { FILE: linter/kubernetes_test.go function TestKubernetesSpecialVariables (line 9) | func TestKubernetesSpecialVariables(t *testing.T) { function TestKubernetesMissingKind (line 21) | func TestKubernetesMissingKind(t *testing.T) { FILE: linter/linter.go type Linter (line 12) | type Linter interface type Options (line 18) | type Options struct function NewLinter (line 26) | func NewLinter(ruleSet assertion.RuleSet, vs assertion.ValueSource, file... FILE: linter/linter_test.go type NewLinterTestCase (line 9) | type NewLinterTestCase struct function TestNewLinter (line 14) | func TestNewLinter(t *testing.T) { function TestUnknownLinterType (line 42) | func TestUnknownLinterType(t *testing.T) { type MockValueSource (line 54) | type MockValueSource struct method GetValue (line 56) | func (m MockValueSource) GetValue(e assertion.Expression) (string, err... FILE: linter/resource_linter.go type ResourceLinter (line 8) | type ResourceLinter struct method ValidateResources (line 13) | func (r ResourceLinter) ValidateResources(resources []assertion.Resour... FILE: linter/resource_linter_test.go function TestIgnoreResource (line 7) | func TestIgnoreResource(t *testing.T) { FILE: linter/rules_resource_loader.go type RulesResourceLoader (line 9) | type RulesResourceLoader struct method Load (line 21) | func (l RulesResourceLoader) Load(filename string) (FileResources, err... method PostLoad (line 59) | func (l RulesResourceLoader) PostLoad(r FileResources) ([]assertion.Re... function getAttr (line 11) | func getAttr(m map[string]interface{}, keys ...string) []interface{} { FILE: linter/rules_resource_loader_test.go function TestRulesLinterValidate (line 9) | func TestRulesLinterValidate(t *testing.T) { function TestRulesLinterSearch (line 25) | func TestRulesLinterSearch(t *testing.T) { FILE: linter/terraform.go type TerraformResourceLoader (line 19) | type TerraformResourceLoader struct method Load (line 159) | func (l TerraformResourceLoader) Load(filename string) (FileResources,... method PostLoad (line 274) | func (l TerraformResourceLoader) PostLoad(fr FileResources) ([]asserti... type TerraformLoadResult (line 22) | type TerraformLoadResult struct function loadHCL (line 32) | func loadHCL(filename string) (TerraformLoadResult, error) { function loadVariables (line 81) | func loadVariables(data interface{}) []Variable { function loadLocalVariables (line 96) | func loadLocalVariables(data interface{}) []Variable { function getVariableValue (line 112) | func getVariableValue(key string, resource interface{}) interface{} { function getVariableFromEnvironment (line 120) | func getVariableFromEnvironment(key string) interface{} { function getVariableDefault (line 124) | func getVariableDefault(resource interface{}) interface{} { function flattenMaps (line 136) | func flattenMaps(v interface{}) interface{} { function getResourceLineNumber (line 148) | func getResourceLineNumber(resourceType, resourceID, filename string, ro... function addIDToProviders (line 180) | func addIDToProviders(providers []interface{}) []interface{} { function addIDToProvider (line 188) | func addIDToProvider(provider interface{}) interface{} { function addIDToProviderValue (line 199) | func addIDToProviderValue(value interface{}) interface{} { function addKeyToModules (line 208) | func addKeyToModules(modules []interface{}) []interface{} { function addKeyToModule (line 216) | func addKeyToModule(resources map[string]interface{}, module interface{}... function getResources (line 241) | func getResources(filename string, ast *ast.File, objects []interface{},... function replaceVariables (line 288) | func replaceVariables(templateResource interface{}, variables []Variable... function replaceVariablesInMap (line 300) | func replaceVariablesInMap(templateResource map[string]interface{}, vari... function replaceVariablesInList (line 316) | func replaceVariablesInList(list []interface{}, variables []Variable) []... function parseJSONDocuments (line 324) | func parseJSONDocuments(resource interface{}) (interface{}, error) { function getProperties (line 344) | func getProperties(templateResource interface{}) map[string]interface{} { FILE: linter/terraform_interpolate.go function makeList (line 14) | func makeList(variables []interface{}) []ast.Variable { function makeMap (line 22) | func makeMap(m map[string]interface{}) map[string]ast.Variable { function makeVar (line 32) | func makeVar(v interface{}) ast.Variable { function makeVarMap (line 58) | func makeVarMap(variables []Variable) map[string]ast.Variable { function interpolationFuncFile (line 66) | func interpolationFuncFile() ast.Function { function interpolationFuncLookup (line 86) | func interpolationFuncLookup() ast.Function { function interpolationFuncJoin (line 128) | func interpolationFuncJoin() ast.Function { function interpolationFuncConcat (line 159) | func interpolationFuncConcat() ast.Function { function interpolationFuncFormat (line 200) | func interpolationFuncFormat() ast.Function { function interpolationFuncList (line 215) | func interpolationFuncList() ast.Function { function interpolationFuncReplace (line 254) | func interpolationFuncReplace() ast.Function { function interpolationFuncElement (line 282) | func interpolationFuncElement() ast.Function { function interpolationFuncMap (line 313) | func interpolationFuncMap() ast.Function { function interpolationFuncMerge (line 355) | func interpolationFuncMerge() ast.Function { function Funcs (line 375) | func Funcs() map[string]ast.Function { function interpolate (line 390) | func interpolate(s string, variables []Variable) interface{} { FILE: linter/terraform_interpolate_test.go type interpolationTestCase (line 8) | type interpolationTestCase struct function TestInterpolation (line 13) | func TestInterpolation(t *testing.T) { FILE: linter/terraform_test.go function TestTerraformLinter (line 11) | func TestTerraformLinter(t *testing.T) { function loadResourcesToTest (line 26) | func loadResourcesToTest(t *testing.T, filename string) []assertion.Reso... function getResourceTags (line 35) | func getResourceTags(r assertion.Resource) map[string]interface{} { function TestTerraformVariable (line 41) | func TestTerraformVariable(t *testing.T) { function TestTerraformVariableWithNoDefault (line 48) | func TestTerraformVariableWithNoDefault(t *testing.T) { function TestTerraformFunctionCall (line 55) | func TestTerraformFunctionCall(t *testing.T) { function TestTerraformListVariable (line 62) | func TestTerraformListVariable(t *testing.T) { function TestTerraformLocalVariable (line 69) | func TestTerraformLocalVariable(t *testing.T) { function TestTerraformVariablesFromEnvironment (line 76) | func TestTerraformVariablesFromEnvironment(t *testing.T) { function TestTerraformFileFunction (line 85) | func TestTerraformFileFunction(t *testing.T) { function TestTerraformVariablesInDifferentFile (line 92) | func TestTerraformVariablesInDifferentFile(t *testing.T) { type TestingValueSource (line 110) | type TestingValueSource struct method GetValue (line 112) | func (s TestingValueSource) GetValue(a assertion.Expression) (string, ... function TestTerraformDataLoader (line 119) | func TestTerraformDataLoader(t *testing.T) { type terraformLinterTestCase (line 126) | type terraformLinterTestCase struct function TestTerraformLinterCases (line 133) | func TestTerraformLinterCases(t *testing.T) { FILE: linter/terraform_v12.go type Terraform12ResourceLoader (line 15) | type Terraform12ResourceLoader struct method Load (line 50) | func (l Terraform12ResourceLoader) Load(filename string) (FileResource... method LoadMany (line 64) | func (l Terraform12ResourceLoader) LoadMany(filenames []string) (FileR... method PostLoad (line 266) | func (l Terraform12ResourceLoader) PostLoad(inputResources FileResourc... type Terraform12LoadResult (line 18) | type Terraform12LoadResult struct function loadHCLv2 (line 78) | func loadHCLv2(paths []string) (Terraform12LoadResult, error) { function getBlocksOfType (line 112) | func getBlocksOfType(blocks tf12parser.Blocks, blockCategory string) []a... function attributesToMap (line 170) | func attributesToMap(block tf12parser.Block) map[string]interface{} { function iterateElements (line 209) | func iterateElements(propertyMap map[string]interface{}, name string, va... function setValue (line 226) | func setValue(m map[string]interface{}, name string, value string) { function ctyValueToString (line 235) | func ctyValueToString(value cty.Value) string { FILE: linter/terraform_v12_test.go function TestTerraformV12Linter (line 16) | func TestTerraformV12Linter(t *testing.T) { function loadResources12ToTest (line 31) | func loadResources12ToTest(t *testing.T, filename string) []assertion.Re... function filterByCategory (line 40) | func filterByCategory(t *testing.T, resources []assertion.Resource, cate... function TestSingleResourceType (line 50) | func TestSingleResourceType(t *testing.T) { function TestResourceDependency (line 58) | func TestResourceDependency(t *testing.T) { function TestTupleType (line 65) | func TestTupleType(t *testing.T) { function TestMultipleBlocksOfSameType12 (line 77) | func TestMultipleBlocksOfSameType12(t *testing.T) { function TestInnerObjects12 (line 85) | func TestInnerObjects12(t *testing.T) { function TestTerraform12Variable (line 94) | func TestTerraform12Variable(t *testing.T) { function TestTerraform12VariableWithNoDefault (line 102) | func TestTerraform12VariableWithNoDefault(t *testing.T) { function TestTerraform12FunctionCall (line 110) | func TestTerraform12FunctionCall(t *testing.T) { function TestTerraform12ListVariable (line 118) | func TestTerraform12ListVariable(t *testing.T) { function TestTerraform12LocalVariable (line 126) | func TestTerraform12LocalVariable(t *testing.T) { function TestTerraform12VariablesFromEnvironment (line 134) | func TestTerraform12VariablesFromEnvironment(t *testing.T) { function TestTerraform12FileFunction (line 144) | func TestTerraform12FileFunction(t *testing.T) { function TestTerraform12VariablesInDifferentFile (line 151) | func TestTerraform12VariablesInDifferentFile(t *testing.T) { function TestTerraform12DataLoader (line 169) | func TestTerraform12DataLoader(t *testing.T) { function TestTerraform12ResourceLineNumber (line 176) | func TestTerraform12ResourceLineNumber(t *testing.T) { function TestTerraform12ResourceFileName (line 181) | func TestTerraform12ResourceFileName(t *testing.T) { function TestTerraform12DataLineNumber (line 186) | func TestTerraform12DataLineNumber(t *testing.T) { function TestTerraform12DataFileName (line 191) | func TestTerraform12DataFileName(t *testing.T) { function TestTerraform12ProviderLineNumber (line 196) | func TestTerraform12ProviderLineNumber(t *testing.T) { function TestTerraform12ProviderFileName (line 201) | func TestTerraform12ProviderFileName(t *testing.T) { function TestTerraform12ModuleLineNumber (line 206) | func TestTerraform12ModuleLineNumber(t *testing.T) { function TestTerraform12ModuleFileName (line 211) | func TestTerraform12ModuleFileName(t *testing.T) { function getViolationsString (line 218) | func getViolationsString(violations []assertion.Violation) string { function TestTerraform12LinterCases (line 236) | func TestTerraform12LinterCases(t *testing.T) { function TestTerraform12FileFunctionMultiLineContent (line 434) | func TestTerraform12FileFunctionMultiLineContent(t *testing.T) { function TestTerraform12FileFunctionResourceFileAbsolutePath (line 444) | func TestTerraform12FileFunctionResourceFileAbsolutePath(t *testing.T) { function TestTerraform12FileFunctionTemplateFileFunction (line 452) | func TestTerraform12FileFunctionTemplateFileFunction(t *testing.T) { function TestTerraform12FileFunctionTemplateFileForLoop (line 460) | func TestTerraform12FileFunctionTemplateFileForLoop(t *testing.T) { function TestTerraform12FileFunctionTemplateFileConditional (line 468) | func TestTerraform12FileFunctionTemplateFileConditional(t *testing.T) { function TestTerraform12FileFunctionReferenceFileAbsoultePath (line 478) | func TestTerraform12FileFunctionReferenceFileAbsoultePath(t *testing.T) { FILE: linter/tf12parser/attribute.go type Attribute (line 9) | type Attribute struct method IsLiteral (line 21) | func (attr *Attribute) IsLiteral() bool { method Type (line 25) | func (attr *Attribute) Type() cty.Type { method Value (line 29) | func (attr *Attribute) Value() cty.Value { method Range (line 40) | func (attr *Attribute) Range() Range { method Name (line 48) | func (attr *Attribute) Name() string { function NewAttribute (line 14) | func NewAttribute(attr *hclsyntax.Attribute, ctx *hcl.EvalContext) *Attr... FILE: linter/tf12parser/block.go type Block (line 10) | type Block struct method body (line 52) | func (block *Block) body() *hclsyntax.Body { method Type (line 56) | func (block *Block) Type() string { method Labels (line 60) | func (block *Block) Labels() []string { method Range (line 64) | func (block *Block) Range() Range { method AllBlocks (line 76) | func (block *Block) AllBlocks() []*Block { method GetBlock (line 87) | func (block *Block) GetBlock(name string) *Block { method GetBlocks (line 99) | func (block *Block) GetBlocks(name string) Blocks { method GetAttributes (line 112) | func (block *Block) GetAttributes() []*Attribute { method GetAttribute (line 123) | func (block *Block) GetAttribute(name string) *Attribute { method Name (line 135) | func (block *Block) Name() string { type Blocks (line 16) | type Blocks method OfType (line 18) | func (blocks Blocks) OfType(t string) Blocks { method RemoveDuplicates (line 28) | func (blocks Blocks) RemoveDuplicates() Blocks { function NewBlock (line 45) | func NewBlock(hclBlock *hcl.Block, ctx *hcl.EvalContext) *Block { FILE: linter/tf12parser/parser.go constant maxContextIterations (line 15) | maxContextIterations = 32 type Parser (line 18) | type Parser struct method ParseMany (line 31) | func (parser *Parser) ParseMany(paths []string) (Blocks, error) { method ParseDirectory (line 53) | func (parser *Parser) ParseDirectory(path string) (Blocks, error) { method ParseFile (line 76) | func (parser *Parser) ParseFile(path string) (Blocks, error) { method parseFile (line 95) | func (parser *Parser) parseFile(file *hcl.File) (hcl.Blocks, error) { method recursivelyParseDirectory (line 109) | func (parser *Parser) recursivelyParseDirectory(path string) error { method buildEvaluationContext (line 140) | func (parser *Parser) buildEvaluationContext(blocks hcl.Blocks, path s... method parseModuleBlock (line 205) | func (parser *Parser) parseModuleBlock(block *hcl.Block, parentContext... method readValues (line 260) | func (parser *Parser) readValues(ctx *hcl.EvalContext, block *hcl.Bloc... method getValuesByBlockType (line 278) | func (parser *Parser) getValuesByBlockType(ctx *hcl.EvalContext, block... function New (line 24) | func New() *Parser { FILE: linter/tf12parser/parser_test.go function Test_BasicParsing (line 16) | func Test_BasicParsing(t *testing.T) { function Test_Modules (line 127) | func Test_Modules(t *testing.T) { function createTestFile (line 177) | func createTestFile(filename, contents string) string { function createTestFileWithModule (line 189) | func createTestFileWithModule(contents string, moduleContents string) st... FILE: linter/tf12parser/range.go type Range (line 6) | type Range struct method String (line 13) | func (r *Range) String() string { FILE: linter/yaml_resource_loader.go type YAMLResourceLoader (line 9) | type YAMLResourceLoader struct method Load (line 23) | func (l YAMLResourceLoader) Load(filename string) (FileResources, erro... method PostLoad (line 58) | func (l YAMLResourceLoader) PostLoad(r FileResources) ([]assertion.Res... function extractYAMLResourceID (line 13) | func extractYAMLResourceID(expression string, properties interface{}) st... FILE: linter/yaml_resource_loader_test.go function TestYAMLLinterValidate (line 9) | func TestYAMLLinterValidate(t *testing.T) { function TestYAMLLinterSearch (line 25) | func TestYAMLLinterSearch(t *testing.T) {