discover

package
Version: v0.0.0-...-a65a94f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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