github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/digitalocean/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  	Firewalls          []Firewall
     9  	LoadBalancers      []LoadBalancer
    10  	Droplets           []Droplet
    11  	KubernetesClusters []KubernetesCluster
    12  }
    13  
    14  type Firewall struct {
    15  	Metadata      defsecTypes.Metadata
    16  	OutboundRules []OutboundFirewallRule
    17  	InboundRules  []InboundFirewallRule
    18  }
    19  
    20  type KubernetesCluster struct {
    21  	Metadata     defsecTypes.Metadata
    22  	SurgeUpgrade defsecTypes.BoolValue
    23  	AutoUpgrade  defsecTypes.BoolValue
    24  }
    25  
    26  type LoadBalancer struct {
    27  	Metadata        defsecTypes.Metadata
    28  	ForwardingRules []ForwardingRule
    29  }
    30  
    31  type ForwardingRule struct {
    32  	Metadata      defsecTypes.Metadata
    33  	EntryProtocol defsecTypes.StringValue
    34  }
    35  
    36  type OutboundFirewallRule struct {
    37  	Metadata             defsecTypes.Metadata
    38  	DestinationAddresses []defsecTypes.StringValue
    39  }
    40  
    41  type InboundFirewallRule struct {
    42  	Metadata        defsecTypes.Metadata
    43  	SourceAddresses []defsecTypes.StringValue
    44  }
    45  
    46  type Droplet struct {
    47  	Metadata defsecTypes.Metadata
    48  	SSHKeys  []defsecTypes.StringValue
    49  }