discovery

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

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

func NewChain

func NewChain(ignoreErrors bool) *Chain

func (*Chain) Add

func (c *Chain) Add(discoverer ...requester.NodeDiscoverer)

func (*Chain) FindNodes

func (c *Chain) FindNodes(ctx context.Context, job model.Job) ([]model.NodeInfo, error)

type IdentityNodeDiscoverer

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

func (*IdentityNodeDiscoverer) FindNodes

func (d *IdentityNodeDiscoverer) FindNodes(ctx context.Context, job model.Job) ([]model.NodeInfo, error)

type IdentityNodeDiscovererParams

type IdentityNodeDiscovererParams struct {
	Host host.Host
}

type StoreNodeDiscoverer

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

func NewStoreNodeDiscoverer

func NewStoreNodeDiscoverer(params StoreNodeDiscovererParams) *StoreNodeDiscoverer

func (*StoreNodeDiscoverer) FindNodes

func (d *StoreNodeDiscoverer) FindNodes(ctx context.Context, job model.Job) ([]model.NodeInfo, error)

FindNodes returns the nodes that support the job's execution engine, and have enough TOTAL capacity to run the job.

type StoreNodeDiscovererParams

type StoreNodeDiscovererParams struct {
	Store routing.NodeInfoStore
}

Jump to

Keyboard shortcuts

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