Documentation
¶
Index ¶
- Variables
- func ComparableToSubnetPort(sp Comparable) *model.VpcSubnetPort
- type Comparable
- type SubnetPort
- type SubnetPortService
- func (service *SubnetPortService) CheckSubnetPortState(obj interface{}, nsxSubnetPath string) (*model.SegmentPortState, error)
- func (service *SubnetPortService) Cleanup() error
- func (service *SubnetPortService) CreateOrUpdateSubnetPort(obj interface{}, nsxSubnetPath string, contextID string, ...) (*model.SegmentPortState, error)
- func (service *SubnetPortService) DeleteSubnetPort(uid types.UID) error
- func (service *SubnetPortService) GetGatewayNetmaskForSubnetPort(obj *v1alpha1.SubnetPort, nsxSubnetPath string) (string, string, error)
- func (service *SubnetPortService) GetSubnetPathForSubnetPortFromStore(nsxSubnetPortID string) string
- func (service *SubnetPortService) GetSubnetPortState(obj interface{}, nsxSubnetPath string) (*model.SegmentPortState, error)
- func (service *SubnetPortService) ListNSXSubnetPortIDForCR() sets.String
- func (service *SubnetPortService) ListNSXSubnetPortIDForPod() sets.String
- type SubnetPortStore
- func (vs *SubnetPortStore) Apply(i interface{}) error
- func (subnetPortStore *SubnetPortStore) GetByIndex(key string, value string) []model.VpcSubnetPort
- func (subnetPortStore *SubnetPortStore) GetByKey(key string) *model.VpcSubnetPort
- func (vs *SubnetPortStore) GetSubnetPortsByNamespace(ns string) []model.VpcSubnetPort
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
Click to show internal directories.
Click to hide internal directories.