controller

package
v0.0.0-...-f33f640 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ResourcePrefix ...
	ResourcePrefix = "lazyxds-"
	// EgressGatewayFullName ...
	EgressGatewayFullName = config.IstioNamespace + "/" + config.EgressGatewayName
	// ServiceAddressKey ...
	ServiceAddressKey = "lazyxds-service-address"
)
View Source
const PlaceHolderService = "lazyxds-placeholder-service"

PlaceHolderService ...

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationController

type AggregationController struct {
	KubeClient *kubernetes.Clientset
	// contains filtered or unexported fields
}

AggregationController ...

func NewController

func NewController(istioClient *istioclient.Clientset, kubeClient *kubernetes.Clientset, stop <-chan struct{}) *AggregationController

NewController ...

func (*AggregationController) AddCluster

func (c *AggregationController) AddCluster(name string, client *kubernetes.Clientset) error

AddCluster ...

func (*AggregationController) ClusterClient

func (c *AggregationController) ClusterClient(name string) *kubernetes.Clientset

ClusterClient ...

func (*AggregationController) HandleAccess

func (c *AggregationController) HandleAccess(fromIP, svcID, toIP string) error

HandleAccess ...

func (*AggregationController) IP2ServiceID

func (c *AggregationController) IP2ServiceID(targetIP string) string

IP2ServiceID ...

func (*AggregationController) Run

func (c *AggregationController) Run()

Run ...

type Cluster

type Cluster struct {
	Client   *kubernetes.Clientset
	Informer informers.SharedInformerFactory
	// contains filtered or unexported fields
}

Cluster ...

func NewCluster

func NewCluster(name string, client *kubernetes.Clientset) *Cluster

NewCluster ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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