Skip to content

Commit

Permalink
add function to return list of supported policy types
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Kanchwala committed Sep 18, 2020
1 parent c57aa66 commit a15af41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/policy/cloud-providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ func GetDefaultIacType(cloudType string) string {
func GetDefaultIacVersion(cloudType string) string {
return string(defaultIacVersion[supportedCloudType(cloudType)])
}

// SupportedPolicyTypes returns the list of policies supported in terrascan
func SupportedPolicyTypes() []string {
var policyTypes []string
for k, _ := range supportedCloudProvider {
policyTypes = append(policyTypes, string(k))
}
return policyTypes
}

0 comments on commit a15af41

Please sign in to comment.