discovery

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugInfoProvider added in v0.3.29

func NewDebugInfoProvider(discoverer requester.NodeDiscoverer) model.DebugInfoProvider

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) ChainDiscovery added in v0.3.29

func (c *Chain) ChainDiscovery(
	ctx context.Context,
	getNodes func(requester.NodeDiscoverer) ([]model.NodeInfo, error),
) ([]model.NodeInfo, error)

func (*Chain) FindNodes

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

func (*Chain) ListNodes added in v0.3.29

func (c *Chain) ListNodes(ctx context.Context) ([]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)

ListNodes implements requester.NodeDiscoverer

func (*IdentityNodeDiscoverer) ListNodes added in v0.3.29

func (d *IdentityNodeDiscoverer) ListNodes(ctx context.Context) ([]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.

func (*StoreNodeDiscoverer) ListNodes added in v0.3.29

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

ListNodes implements requester.NodeDiscoverer

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