Documentation ¶
Overview ¶
Package gce implements Google Compute Engine (GCE) targets for Cloudprober.
It currently supports following GCE targets:
Instances Forwarding Rules (only regional currently)
Targets are configured through a config file, based on the protobuf defined in the config.proto file in the same directory. Example config:
All instances matching a certain regex:
targets { gce_targets { instances {} } regex: "ig-proxy-.*" }
Public IP of all instances matching a certain regex:
targets { gce_targets { instances { public_ip: true } } regex: "ig-proxy-.*" }
All forwarding rules in the local region:
targets { gce_targets { forwarding_rules {} } }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Targets ¶
type Targets interface { // ListEndpoints produces list of targets. ListEndpoints() []endpoint.Endpoint // Resolve, given a target name and IP Version will return the IP address for // that target. Resolve(name string, ipVer int) (net.IP, error) }
Targets interface is redefined here (originally defined in targets.go) to allow returning private gceResources.
Click to show internal directories.
Click to hide internal directories.