subnetport

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 19 Imported by: 4

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) (*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() error

func (*SubnetPortService) CreateOrUpdateSubnetPort

func (service *SubnetPortService) CreateOrUpdateSubnetPort(obj interface{}, nsxSubnetPath string, 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) 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.String

func (*SubnetPortService) ListNSXSubnetPortIDForPod

func (service *SubnetPortService) ListNSXSubnetPortIDForPod() sets.String

type SubnetPortStore

type SubnetPortStore struct {
	common.ResourceStore
}

SubnetPortStore is a store for SubnetPorts

func (*SubnetPortStore) Apply added in v0.0.1

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