ippool

package
v0.0.0-...-aba7421 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IPPOOLPREFIX       = "ipc"
	IPPOOLSUBNETPREFIX = "ibs"
)

Variables

View Source
var (
	Int64  = common.Int64
	String = common.String
)
View Source
var (
	MarkedForDelete               = true
	EnforceRevisionCheckParam     = false
	ResourceTypeIPPool            = common.ResourceTypeIPPool
	ResourceTypeIPPoolBlockSubnet = common.ResourceTypeIPPoolBlockSubnet
	NewConverter                  = common.NewConverter
)

Functions

func ComparableToIpAddressPool

func ComparableToIpAddressPool(iap Comparable) *model.IpAddressPool

func ComparableToIpAddressPoolBlockSubnet

func ComparableToIpAddressPoolBlockSubnet(iapbs Comparable) *model.IpAddressPoolBlockSubnet

func ComparableToIpAddressPoolBlockSubnets

func ComparableToIpAddressPoolBlockSubnets(iapbs []Comparable) []*model.IpAddressPoolBlockSubnet

Types

type Comparable

type Comparable = common.Comparable

func IpAddressPoolBlockSubnetsToComparable

func IpAddressPoolBlockSubnetsToComparable(iapbs []*model.IpAddressPoolBlockSubnet) []Comparable

func IpAddressPoolToComparable

func IpAddressPoolToComparable(iap *model.IpAddressPool) Comparable

type IPPoolBlockSubnetStore

type IPPoolBlockSubnetStore struct {
	common.ResourceStore
}

func (*IPPoolBlockSubnetStore) Apply

func (ipPoolBlockSubnetStore *IPPoolBlockSubnetStore) Apply(i interface{}) error

func (*IPPoolBlockSubnetStore) GetByIndex

func (ipPoolBlockSubnetStore *IPPoolBlockSubnetStore) GetByIndex(uid types.UID) ([]*model.IpAddressPoolBlockSubnet, error)

type IPPoolService

type IPPoolService struct {
	common.Service

	ExhaustedIPBlock []string
	VPCService       common.VPCServiceProvider
	// contains filtered or unexported fields
}

func InitializeIPPool

func InitializeIPPool(service common.Service, vpcService common.VPCServiceProvider) (*IPPoolService, error)

func (*IPPoolService) AcquireRealizedSubnetIP

func (service *IPPoolService) AcquireRealizedSubnetIP(obj *v1alpha2.IPPool) ([]v1alpha2.SubnetResult, bool, error)

func (*IPPoolService) Apply

func (service *IPPoolService) Apply(nsxIPPool *model.IpAddressPool, nsxIPSubnets []*model.IpAddressPoolBlockSubnet, IPPoolUpdated bool, IPPoolSubnetsUpdated bool) error

func (*IPPoolService) BuildIPPool

func (service *IPPoolService) BuildIPPool(IPPool *v1alpha2.IPPool) (*model.IpAddressPool, []*model.IpAddressPoolBlockSubnet)

func (*IPPoolService) Cleanup

func (service *IPPoolService) Cleanup(ctx context.Context) error

func (*IPPoolService) CreateOrUpdateIPPool

func (service *IPPoolService) CreateOrUpdateIPPool(obj *v1alpha2.IPPool) (bool, bool, error)

func (*IPPoolService) DeleteIPPool

func (service *IPPoolService) DeleteIPPool(obj interface{}) error

func (*IPPoolService) FullyRealized

func (service *IPPoolService) FullyRealized(obj *v1alpha2.IPPool) bool

func (*IPPoolService) GetIPPoolNamespace

func (service *IPPoolService) GetIPPoolNamespace(nsxIPPool *model.IpAddressPool) string

GetIPPoolNamespace Get IPPool's namespace by tags

func (*IPPoolService) GetUnrealizedSubnetNames

func (service *IPPoolService) GetUnrealizedSubnetNames(obj *v1alpha2.IPPool) []string

func (*IPPoolService) ListIPPoolID

func (service *IPPoolService) ListIPPoolID() sets.Set[string]

func (*IPPoolService) WrapHierarchyIPPool

func (service *IPPoolService) WrapHierarchyIPPool(iap *model.IpAddressPool, iapbs []*model.IpAddressPoolBlockSubnet) (*model.Infra, error)

type IPPoolStore

type IPPoolStore struct {
	common.ResourceStore
}

func (*IPPoolStore) Apply

func (ipPoolStore *IPPoolStore) Apply(i interface{}) error

func (*IPPoolStore) GetByIndex

func (ipPoolStore *IPPoolStore) GetByIndex(uid types.UID) (*model.IpAddressPool, error)

type IpAddressPool

type IpAddressPool model.IpAddressPool

func (*IpAddressPool) Key

func (iap *IpAddressPool) Key() string

func (*IpAddressPool) Value

func (iap *IpAddressPool) Value() data.DataValue

type IpAddressPoolBlockSubnet

type IpAddressPoolBlockSubnet model.IpAddressPoolBlockSubnet

func (*IpAddressPoolBlockSubnet) Key

func (iapbs *IpAddressPoolBlockSubnet) Key() string

func (*IpAddressPoolBlockSubnet) Value

func (iapbs *IpAddressPoolBlockSubnet) Value() data.DataValue

Jump to

Keyboard shortcuts

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