github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/openstack/openstack.go (about) 1 package openstack 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type OpenStack struct { 8 Compute Compute 9 Networking Networking 10 } 11 12 type Compute struct { 13 Instances []Instance 14 Firewall Firewall 15 } 16 17 type Firewall struct { 18 AllowRules []FirewallRule 19 DenyRules []FirewallRule 20 } 21 22 type FirewallRule struct { 23 Metadata defsecTypes.Metadata 24 Source defsecTypes.StringValue 25 Destination defsecTypes.StringValue 26 SourcePort defsecTypes.StringValue 27 DestinationPort defsecTypes.StringValue 28 Enabled defsecTypes.BoolValue 29 } 30 31 type Instance struct { 32 Metadata defsecTypes.Metadata 33 AdminPassword defsecTypes.StringValue 34 }