Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProtocolTCP = "tcp" ProtocolUDP = "udp" ProtoclICMP = "icmp" )
Protocol constants
View Source
const CIDRSuffix = "/32"
CIDRSuffix is the netmask for a single IP address.
View Source
const DescriptionPrefix = "AUTOGENERATED: "
DescriptionPrefix is the description to attach to a security group rule.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rule ¶
type Rule struct { // Name is the FQDN. Name string `json:"name"` // Port is the port to allow traffic to. Port int `json:"port"` // Protocol is the network protocol. Protocol string `json:"protocol"` // Egress specifies whether the rule is ingress (default) or egress. Egress bool `json:"egress"` // CIDRs is populated with the resolved FQDN. CIDRs []string }
Rule is one or more security group rules for a host.
Click to show internal directories.
Click to hide internal directories.