ippoolmanager

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPPoolManager

type IPPoolManager interface {
	GetIPPoolListerSynced() cache.InformerSynced
	GetIPPoolInformer() cache.SharedIndexInformer
	StartIPPoolInformers()

	GetIPPool(clusterNS, clusterName string) (helper.NSXIPPool, error)
	GetIPPoolFromIndexer(key string) (helper.NSXIPPool, error)
	CreateIPPool(clusterNS, clusterName string, ownerRef *metav1.OwnerReference) (helper.NSXIPPool, error)

	GetIPPoolSubnets(ippool helper.NSXIPPool) (map[string]string, error)
	AddSubnetToIPPool(node *corev1.Node, ippool helper.NSXIPPool, ownerRef *metav1.OwnerReference) error
	DeleteSubnetFromIPPool(subnetName string, ippool helper.NSXIPPool) error
	DiffIPPoolSubnets(old, cur helper.NSXIPPool) bool
}

IPPoolManager defines an interface that can interact with nsx.vmware.com.ippool

func GetIPPoolManager

func GetIPPoolManager(vpcModeEnabled bool, scCfg *rest.Config, clusterNS string, podIPPoolType string) (IPPoolManager, error)

GetIPPoolManager gets an IPPoolManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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