Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInternalIP ¶
Returns true if the IP is an internal ipv4 or ipv6 IP
Types ¶
type FirewallRule ¶
type FirewallRule struct { FWName string `json:"fw_name"` Description string `json:"description"` Direction string `json:"direction"` Allowed map[string][]string `json:"allowed"` Denied map[string][]string `json:"denied"` SourceRanges []string `json:"source_ranges"` TargetTag string `json:"target_tag"` AllowedTraffic Traffic `json:"allowed_traffic"` ExposedEndpoints []Endpoint `json:"exposed_endpoints"` DestinationRanges []string `json:"destinatioRanges"` TargetTags []string `json:"targetTags"` }
type NetwworkService ¶
type NetwworkService struct { }
func New ¶
func New() *NetwworkService
func (*NetwworkService) FirewallRules ¶
func (ns *NetwworkService) FirewallRules(projectID string) ([]*compute.Firewall, error)
Returns firewall rules for a project.
func (*NetwworkService) FirewallRulesWithPublicExposure ¶
func (ns *NetwworkService) FirewallRulesWithPublicExposure(projectID string) ([]FirewallRule, error)
Returns firewall rules with additional logic to tag rules that expose resources to the public
Click to show internal directories.
Click to hide internal directories.