discover

package module
v0.0.0-...-39bbb24 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrErrorPlugin = errors.New("Unknown plugin")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Label       string
	DiscoverURI []string
	HealtCheck  resource.HealthCheck
}

type Discover

type Discover struct {
	Label   string
	Plugins []discoverlib.Plugin
	// contains filtered or unexported fields
}

func New

func New(c Config) *Discover

func (*Discover) Exit

func (d *Discover) Exit()

func (*Discover) Len

func (d *Discover) Len() int

func (*Discover) NextHealthy

func (d *Discover) NextHealthy() *resource.Resource

func (*Discover) Resources

func (d *Discover) Resources() Resources

type Resources

type Resources []*resource.Resource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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