cloudprovider

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cloudprovider implements a metadata service for cloud providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

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

Fetcher checks the metadata service to search for instances that were set up for debugging.

func New added in v2.3.0

func New(cloud providerMetadata) *Fetcher

New creates a new Fetcher.

func (*Fetcher) DiscoverDebugdIPs

func (f *Fetcher) DiscoverDebugdIPs(ctx context.Context) ([]string, error)

DiscoverDebugdIPs will query the metadata of all instances and return any ips of instances already set up for debugging.

func (*Fetcher) DiscoverLoadbalancerIP

func (f *Fetcher) DiscoverLoadbalancerIP(ctx context.Context) (string, error)

DiscoverLoadbalancerIP gets load balancer IP from metadata API.

func (*Fetcher) Role

func (f *Fetcher) Role(ctx context.Context) (role.Role, error)

Role returns node role via meta data API.

func (*Fetcher) Self added in v2.4.0

Self returns the current instance via meta data API.

func (*Fetcher) UID added in v2.4.0

func (f *Fetcher) UID(ctx context.Context) (string, error)

UID returns node UID via meta data API.

Jump to

Keyboard shortcuts

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