metadata

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	DiscoverDebugdIPs(ctx context.Context) ([]string, error)
}

Fetcher retrieves other debugd IPs from cloud provider metadata.

type Scheduler

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

Scheduler schedules fetching of metadata using timers.

func NewScheduler

func NewScheduler(log *logger.Logger, fetcher Fetcher, downloader downloader) *Scheduler

NewScheduler returns a new scheduler.

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context, wg *sync.WaitGroup)

Start the loops for discovering debugd endpoints.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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