client

package
v2.2.0-alpha.2....-530b371 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAntreaClientProvider

func NewAntreaClientProvider(config config.ClientConnectionConfiguration, kubeClient kubernetes.Interface) (*antreaClientProvider, error)

Types

type AntreaClientProvider

type AntreaClientProvider interface {
	GetAntreaClient() (versioned.Interface, error)
}

AntreaClientProvider provides a method to get Antrea client.

type EndpointResolver

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

EndpointResolver is in charge of resolving a specific Service Endpoint, which can then be accessed directly instead of depending on the ClusterIP functionality provided by K8s proxies (whether it's kube-proxy or AntreaProxy). A new Endpoint is resolved every time the Service's Spec or the Endpoints' Subsets are updated, and registered listeners are notified. While this EndpointResolver is somewhat generic, at the moment it is only meant to be used for the Antrea Service.

func NewEndpointResolver

func NewEndpointResolver(kubeClient kubernetes.Interface, namespace, serviceName string, servicePort int32) *EndpointResolver

func (*EndpointResolver) AddListener

func (r *EndpointResolver) AddListener(listener Listener)

func (*EndpointResolver) CurrentEndpointURL

func (r *EndpointResolver) CurrentEndpointURL() *url.URL

func (*EndpointResolver) Run

func (r *EndpointResolver) Run(ctx context.Context)

type Listener

type Listener interface {
	Enqueue()
}

Listener defines the interface which needs to be implemented by clients which want to subscribe to Endpoint updates.

Jump to

Keyboard shortcuts

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