Documentation ¶
Index ¶
Constants ¶
View Source
const ( L4ILBIPv6HCRange = "2600:2d00:1:b029::/64" L4NetLBIPv6HCRange = "2600:1901:8001::/48" )
Variables ¶
This section is empty.
Functions ¶
func Fake ¶
func Fake(cloud *gce.Cloud, recorder record.EventRecorder) *l4HealthChecks
Fake creates instance of l4HealthChecks with independent lock. Use for test only.
func NewL4HealthChecks ¶
func NewL4HealthChecks(cloud *gce.Cloud, recorder record.EventRecorder) *l4HealthChecks
Types ¶
type EnsureHealthCheckResult ¶ added in v1.21.0
type L4HealthChecks ¶
type L4HealthChecks interface { // EnsureHealthCheckWithFirewall creates health check (and firewall rule) for l4 service. EnsureHealthCheckWithFirewall(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType, nodeNames []string) *EnsureHealthCheckResult // EnsureHealthCheckWithDualStackFirewalls creates health check (and firewall rule) for l4 service. Handles both IPv4 and IPv6. EnsureHealthCheckWithDualStackFirewalls(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType, nodeNames []string, needsIPv4 bool, needsIPv6 bool) *EnsureHealthCheckResult // DeleteHealthCheckWithFirewall deletes health check (and firewall rule) for l4 service. DeleteHealthCheckWithFirewall(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType) (string, error) // DeleteHealthCheckWithDualStackFirewalls deletes health check (and firewall rule) for l4 service, deletes IPv6 firewalls if asked. DeleteHealthCheckWithDualStackFirewalls(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType) (string, error) }
L4HealthChecks defines methods for creating and deleting health checks (and their firewall rules) for l4 services
Click to show internal directories.
Click to hide internal directories.