endpoint

package
v0.0.0-...-984f6f0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterCache  wirer.Cache[wirecluster.Cluster]
	TopologyCache wirer.Cache[wiretopology.Topology]
	EndpointCache wirer.Cache[wireendpoint.Endpoint]
}

type Endpoint

type Endpoint struct {
	Topology string
	NodeName string
	IfName   string
}

type EpCache

type EpCache interface {
	GetClaimed(ctx context.Context, o client.Object) []invv1alpha1.Endpoint
	Claim(ctx context.Context, o client.Object, epReqs []Endpoint) error
	DeleteClaim(ctx context.Context, o client.Object) error
	GetEndpoint(epReq Endpoint) (invv1alpha1.Endpoint, error)
}

func New

func New(cfg *Config) EpCache

Jump to

Keyboard shortcuts

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