discover

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package discover finds worker configs for the core agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDiscover

type IDiscover interface {
	FindWorkerConfigs() map[string]*model.WorkerConfig
}

IDiscover is the interface for starting/terminating/watching worker

type WorkerDiscover

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

WorkerDiscover contains list of running workers, it starts/terminates/watches workers

func NewWorkerDiscover

func NewWorkerDiscover(log log.T) *WorkerDiscover

NewWorkerDiscover returns worker discover

func (*WorkerDiscover) FindWorkerConfigs

func (discover *WorkerDiscover) FindWorkerConfigs() map[string]*model.WorkerConfig

FindWorkerConfigs finds the available worker configs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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