Documentation ¶
Index ¶
- Constants
- Variables
- func ComparableToIpAddressPool(iap Comparable) *model.IpAddressPool
- func ComparableToIpAddressPoolBlockSubnet(iapbs Comparable) *model.IpAddressPoolBlockSubnet
- func ComparableToIpAddressPoolBlockSubnets(iapbs []Comparable) []*model.IpAddressPoolBlockSubnet
- type Comparable
- type IPPoolBlockSubnetStore
- type IPPoolService
- func (service *IPPoolService) AcquireRealizedSubnetIP(obj *v1alpha2.IPPool) ([]v1alpha2.SubnetResult, bool, error)
- func (service *IPPoolService) Apply(nsxIPPool *model.IpAddressPool, nsxIPSubnets []*model.IpAddressPoolBlockSubnet, ...) error
- func (service *IPPoolService) BuildIPPool(IPPool *v1alpha2.IPPool) (*model.IpAddressPool, []*model.IpAddressPoolBlockSubnet)
- func (service *IPPoolService) Cleanup(ctx context.Context) error
- func (service *IPPoolService) CreateOrUpdateIPPool(obj *v1alpha2.IPPool) (bool, bool, error)
- func (service *IPPoolService) DeleteIPPool(obj interface{}) error
- func (service *IPPoolService) FullyRealized(obj *v1alpha2.IPPool) bool
- func (service *IPPoolService) GetIPPoolNamespace(nsxIPPool *model.IpAddressPool) string
- func (service *IPPoolService) GetUnrealizedSubnetNames(obj *v1alpha2.IPPool) []string
- func (service *IPPoolService) ListIPPoolID() sets.Set[string]
- func (service *IPPoolService) WrapHierarchyIPPool(iap *model.IpAddressPool, iapbs []*model.IpAddressPoolBlockSubnet) (*model.Infra, error)
- type IPPoolStore
- type IpAddressPool
- type IpAddressPoolBlockSubnet
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) CreateOrUpdateIPPool ¶
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
Click to show internal directories.
Click to hide internal directories.