modelresolver

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	client.Client

	ExcludePods map[string]struct{}
	// contains filtered or unexported fields
}

func NewManager

func NewManager(mgr ctrl.Manager) (*Manager, error)

func (*Manager) AwaitBestAddress

func (r *Manager) AwaitBestAddress(ctx context.Context, model string) (string, func(), error)

AwaitBestAddress returns the "IP:Port" with the lowest number of in-flight requests. It will block until an endpoint becomes available or the context times out. It returns a function that should be called when the request is complete to decrement the in-flight count.

func (*Manager) GetAllAddresses

func (r *Manager) GetAllAddresses(model string) []string

GetAllHosts retrieves the list of all hosts for a given model.

func (*Manager) Reconcile

func (r *Manager) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Manager) SetupWithManager

func (r *Manager) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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