github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/api/cloudcontroller/ccv2/security_group_rule.go (about)

     1  package ccv2
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/types"
     5  )
     6  
     7  // SecurityGroupRule represents a Cloud Controller Security Group Role.
     8  type SecurityGroupRule struct {
     9  	// Description is a short message discribing the rule.
    10  	Description string
    11  
    12  	// Destination is the destination CIDR or range of IPs.
    13  	Destination string
    14  
    15  	// Ports is the port or port range.
    16  	Ports string
    17  
    18  	// Protocol can be tcp, icmp, udp, all.
    19  	Protocol string
    20  
    21  	// control signal for icmp, where -1 allows all
    22  	Type types.NullInt
    23  
    24  	// control signal for icmp, where -1 allows all
    25  	Code types.NullInt
    26  
    27  	// enables logging for the egress rule, only valid for tcp rules
    28  	Log types.NullBool
    29  }