subnetport

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceTypeSubnetPort = servicecommon.ResourceTypeSubnetPort
	MarkedForDelete        = true
)
View Source
var (
	String = common.String
)

Functions

func ComparableToSubnetPort

func ComparableToSubnetPort(sp Comparable) *model.VpcSubnetPort

Types

type Comparable

type Comparable = common.Comparable

func SubnetPortToComparable

func SubnetPortToComparable(sp *model.VpcSubnetPort) Comparable

type SubnetPort

type SubnetPort model.VpcSubnetPort

func (*SubnetPort) Key

func (sp *SubnetPort) Key() string

func (*SubnetPort) Value

func (sp *SubnetPort) Value() data.DataValue

type SubnetPortService

type SubnetPortService struct {
	servicecommon.Service
	SubnetPortStore *SubnetPortStore
}

func InitializeSubnetPort

func InitializeSubnetPort(service servicecommon.Service) (*SubnetPortService, error)

InitializeSubnetPort sync NSX resources.

func (*SubnetPortService) CheckSubnetPortState

func (service *SubnetPortService) CheckSubnetPortState(obj interface{}, nsxSubnetPath string, enableDHCP bool) (*model.SegmentPortState, error)

CheckSubnetPortState will check the port realized status then get the port state to prepare the CR status.

func (*SubnetPortService) Cleanup

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

func (*SubnetPortService) CreateOrUpdateSubnetPort

func (service *SubnetPortService) CreateOrUpdateSubnetPort(obj interface{}, nsxSubnet *model.VpcSubnet, contextID string, tags *map[string]string) (*model.SegmentPortState, error)

func (*SubnetPortService) DeleteSubnetPort

func (service *SubnetPortService) DeleteSubnetPort(uid types.UID) error

func (*SubnetPortService) GetGatewayNetmaskForSubnetPort

func (service *SubnetPortService) GetGatewayNetmaskForSubnetPort(obj *v1alpha1.SubnetPort, nsxSubnetPath string) (string, string, error)

func (*SubnetPortService) GetPortsOfSubnet

func (service *SubnetPortService) GetPortsOfSubnet(nsxSubnetID string) (ports []*model.VpcSubnetPort)

func (*SubnetPortService) GetSubnetPathForSubnetPortFromStore

func (service *SubnetPortService) GetSubnetPathForSubnetPortFromStore(nsxSubnetPortID string) string

func (*SubnetPortService) GetSubnetPortState

func (service *SubnetPortService) GetSubnetPortState(obj interface{}, nsxSubnetPath string) (*model.SegmentPortState, error)

func (*SubnetPortService) ListNSXSubnetPortIDForCR

func (service *SubnetPortService) ListNSXSubnetPortIDForCR() sets.Set[string]

func (*SubnetPortService) ListNSXSubnetPortIDForPod

func (service *SubnetPortService) ListNSXSubnetPortIDForPod() sets.Set[string]

type SubnetPortStore

type SubnetPortStore struct {
	common.ResourceStore
}

SubnetPortStore is a store for SubnetPorts

func (*SubnetPortStore) Apply

func (vs *SubnetPortStore) Apply(i interface{}) error

func (*SubnetPortStore) GetByIndex

func (subnetPortStore *SubnetPortStore) GetByIndex(key string, value string) []*model.VpcSubnetPort

func (*SubnetPortStore) GetByKey

func (subnetPortStore *SubnetPortStore) GetByKey(key string) *model.VpcSubnetPort

func (*SubnetPortStore) GetSubnetPortsByNamespace

func (vs *SubnetPortStore) GetSubnetPortsByNamespace(ns string) []*model.VpcSubnetPort

Jump to

Keyboard shortcuts

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