playground: Index | Files | Directories

package gcpdial

import ""

Package gcpdial monitors VM instance groups to let frontends dial them directly without going through an internal load balancer.


Package Files


type Dialer Uses

type Dialer struct {
    // contains filtered or unexported fields

func NewRegionInstanceGroupDialer Uses

func NewRegionInstanceGroupDialer(project, region, group string) *Dialer

NewRegionInstanceGroupDialer returns a new dialer that dials named regional instance group in the provided project and region.

It begins polling immediately, and there's no way to stop it. (Until we need one)

func (*Dialer) PickIP Uses

func (d *Dialer) PickIP(ctx context.Context) (ip string, err error)

PickIP returns a randomly healthy IP, waiting until one is available, or until ctx expires.


gcpdialtoolThe gcpdialtool command is an interactive validation tool for the gcpdial packge.

Package gcpdial imports 11 packages (graph) and is imported by 4 packages. Updated 2020-12-11. Refresh now. Tools for package owners.