github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/google/dns/dns.go (about) 1 package dns 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type DNS struct { 8 ManagedZones []ManagedZone 9 } 10 11 type ManagedZone struct { 12 Metadata defsecTypes.Metadata 13 DNSSec DNSSec 14 Visibility defsecTypes.StringValue 15 } 16 17 func (m ManagedZone) IsPrivate() bool { 18 return m.Visibility.EqualTo("private", defsecTypes.IgnoreCase) 19 } 20 21 type DNSSec struct { 22 Metadata defsecTypes.Metadata 23 Enabled defsecTypes.BoolValue 24 DefaultKeySpecs KeySpecs 25 } 26 27 type KeySpecs struct { 28 Metadata defsecTypes.Metadata 29 KeySigningKey Key 30 ZoneSigningKey Key 31 } 32 33 type Key struct { 34 Metadata defsecTypes.Metadata 35 Algorithm defsecTypes.StringValue 36 }