gcpdial

package
v0.0.0-...-ab8d13a Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer struct {
	// contains filtered or unexported fields
}

func NewRegionInstanceGroupDialer

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

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.

Directories

Path Synopsis
The gcpdialtool command is an interactive validation tool for the gcpdial package.
The gcpdialtool command is an interactive validation tool for the gcpdial package.

Jump to

Keyboard shortcuts

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