github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/google/compute/firewall.go (about) 1 package compute 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type Firewall struct { 8 Metadata defsecTypes.Metadata 9 Name defsecTypes.StringValue 10 IngressRules []IngressRule 11 EgressRules []EgressRule 12 SourceTags []defsecTypes.StringValue 13 TargetTags []defsecTypes.StringValue 14 } 15 16 type FirewallRule struct { 17 Metadata defsecTypes.Metadata 18 Enforced defsecTypes.BoolValue 19 IsAllow defsecTypes.BoolValue 20 Protocol defsecTypes.StringValue 21 Ports []defsecTypes.IntValue 22 } 23 24 type IngressRule struct { 25 Metadata defsecTypes.Metadata 26 FirewallRule 27 SourceRanges []defsecTypes.StringValue 28 } 29 30 type EgressRule struct { 31 Metadata defsecTypes.Metadata 32 FirewallRule 33 DestinationRanges []defsecTypes.StringValue 34 }