github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/azure/keyvault/keyvault.go (about)

     1  package keyvault
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type KeyVault struct {
     8  	Vaults []Vault
     9  }
    10  
    11  type Vault struct {
    12  	Metadata                defsecTypes.Metadata
    13  	Secrets                 []Secret
    14  	Keys                    []Key
    15  	EnablePurgeProtection   defsecTypes.BoolValue
    16  	SoftDeleteRetentionDays defsecTypes.IntValue
    17  	NetworkACLs             NetworkACLs
    18  }
    19  
    20  type NetworkACLs struct {
    21  	Metadata      defsecTypes.Metadata
    22  	DefaultAction defsecTypes.StringValue
    23  }
    24  
    25  type Key struct {
    26  	Metadata   defsecTypes.Metadata
    27  	ExpiryDate defsecTypes.TimeValue
    28  }
    29  
    30  type Secret struct {
    31  	Metadata    defsecTypes.Metadata
    32  	ContentType defsecTypes.StringValue
    33  	ExpiryDate  defsecTypes.TimeValue
    34  }