network

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const IAP_CIDR = "35.235.240.0/20"

Variables

This section is empty.

Functions

func FirewallRuleHasSpecificTargets

func FirewallRuleHasSpecificTargets(resource commons.Resource) bool

func FirewallRuleOnlyAllowsIAP

func FirewallRuleOnlyAllowsIAP(resource commons.Resource) bool

func GetFirewallRulesWithPort22

func GetFirewallRulesWithPort22(account internal.GCPAccount) []*computepb.Firewall

Return all firewall rules that allow ingress with on port TCP/22

func RunChecks

func RunChecks(wa *sync.WaitGroup, account internal.GCPAccount, c *commons.Config, queue chan []commons.Check)

Types

type FirewallRule

type FirewallRule struct {
	Rule *computepb.Firewall
}

func (*FirewallRule) GetID

func (r *FirewallRule) GetID() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL