gcediscovery

package
v1.27.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

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

func New

func New() (*Discovery, error)

New builds a Discovery.

func (*Discovery) ClusterName

func (r *Discovery) ClusterName() string

ClusterName returns the kOps cluster-name we are part of.

func (*Discovery) Compute

func (r *Discovery) Compute() *compute.Service

Compute returns the GCP compute service we built.

func (*Discovery) GetSeeds

func (r *Discovery) GetSeeds() ([]string, error)

func (*Discovery) ProjectID

func (r *Discovery) ProjectID() string

ProjectID returns the GCP project ID we are running in.

func (*Discovery) Region

func (r *Discovery) Region() string

Region returns the GCP region we are running in (e.g. us-central-1).

func (*Discovery) Resolve

func (r *Discovery) Resolve(ctx context.Context, name string) ([]string, error)

Resolve implements resolver.Resolve, providing name -> address resolution using GCE discovery.

func (*Discovery) Zone

func (r *Discovery) Zone() string

Zone returns the GCP zone we are running in (e.g. us-central-1a).

Jump to

Keyboard shortcuts

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