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

     1  package compute
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type Compute struct {
     8  	LinuxVirtualMachines   []LinuxVirtualMachine
     9  	WindowsVirtualMachines []WindowsVirtualMachine
    10  	ManagedDisks           []ManagedDisk
    11  }
    12  
    13  type VirtualMachine struct {
    14  	Metadata   defsecTypes.Metadata
    15  	CustomData defsecTypes.StringValue // NOT base64 encoded
    16  }
    17  
    18  type LinuxVirtualMachine struct {
    19  	Metadata defsecTypes.Metadata
    20  	VirtualMachine
    21  	OSProfileLinuxConfig OSProfileLinuxConfig
    22  }
    23  
    24  type WindowsVirtualMachine struct {
    25  	Metadata defsecTypes.Metadata
    26  	VirtualMachine
    27  }
    28  
    29  type OSProfileLinuxConfig struct {
    30  	Metadata                      defsecTypes.Metadata
    31  	DisablePasswordAuthentication defsecTypes.BoolValue
    32  }
    33  
    34  type ManagedDisk struct {
    35  	Metadata   defsecTypes.Metadata
    36  	Encryption Encryption
    37  }
    38  
    39  type Encryption struct {
    40  	Metadata defsecTypes.Metadata
    41  	Enabled  defsecTypes.BoolValue
    42  }