Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeFirewallsProvider ¶
NewFakeFirewallsProvider creates a fake for firewall rules.
Types ¶
type Firewall ¶
type Firewall interface { CreateFirewall(f *compute.Firewall) error GetFirewall(name string) (*compute.Firewall, error) DeleteFirewall(name string) error UpdateFirewall(f *compute.Firewall) error GetNodeTags(nodeNames []string) ([]string, error) NetworkProjectID() string NetworkURL() string // OnXPN returns true if the GCE NetworkProjectID != ProjectID. OnXPN() bool }
Firewall interfaces with the GCE firewall api. This interface is a little different from the rest because it dovetails into the same firewall methods used by the TCPLoadBalancer.
type FirewallRules ¶
type FirewallRules struct {
// contains filtered or unexported fields
}
FirewallRules manages firewall rules.
func (*FirewallRules) GetFirewall ¶
func (fr *FirewallRules) GetFirewall(name string) (*compute.Firewall, error)
GetFirewall just returns the firewall object corresponding to the given name. TODO: Currently only used in testing. Modify so we don't leak compute objects out of this interface by returning just the (src, ports, error).
func (*FirewallRules) Shutdown ¶
func (fr *FirewallRules) Shutdown() error
Shutdown shuts down this firewall rules manager.
type FirewallXPNError ¶ added in v1.0.1
func (*FirewallXPNError) Error ¶ added in v1.0.1
func (f *FirewallXPNError) Error() string
type SingleFirewallPool ¶
type SingleFirewallPool interface { Sync(nodeNames []string, additionalPorts ...string) error Shutdown() error }
SingleFirewallPool syncs the firewall rule for L7 traffic.
func NewFirewallPool ¶
func NewFirewallPool(cloud Firewall, namer *utils.Namer, l7SrcRanges []string, nodePortRanges []string) SingleFirewallPool
NewFirewallPool creates a new firewall rule manager. cloud: the cloud object implementing Firewall. namer: cluster namer.