discoverers

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discoverers = map[string]Initializer{}

Functions

func Register

func Register(name string, initFn Initializer)

Types

type Discoverer

type Discoverer interface {
	// Discover the target
	Discover(ctx context.Context, t *target.Target) (*invv1alpha1.DiscoveryInfo, error)
	// GetProvider gets the provider name
	GetProvider() string
}

Discoverer discovers the target and returns discoveryInfo such as chassis type, SW version, SerialNumber, etc

type Initializer

type Initializer func() Discoverer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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