Documentation ¶
Index ¶
- Constants
- Variables
- type Comparable
- type Subnet
- type SubnetParameters
- type SubnetService
- func (service *SubnetService) BuildSubnetID(subnet *v1alpha1.Subnet) string
- func (service *SubnetService) Cleanup() error
- func (service *SubnetService) CreateOrUpdateSubnet(obj client.Object, tags []model.Tag) (string, error)
- func (service *SubnetService) DeleteIPAllocation(orgID, projectID, vpcID, subnetID string) error
- func (service *SubnetService) DeleteSubnet(nsxSubnet model.VpcSubnet) error
- func (service *SubnetService) GenerateSubnetNSTags(obj client.Object, nsUID string) []model.Tag
- func (service *SubnetService) GetIPPoolUsage(subnet *v1alpha1.Subnet) (*model.PolicyPoolUsage, error)
- func (service *SubnetService) GetSubnetStatus(subnet *model.VpcSubnet) ([]model.VpcSubnetStatus, error)
- func (service *SubnetService) IsOrphanSubnet(subnet model.VpcSubnet, subnetsetIDs sets.String) bool
- func (service *SubnetService) ListSubnetCreatedByCR() []model.VpcSubnet
- func (service *SubnetService) ListSubnetCreatedBySubnetSet() []model.VpcSubnet
- func (service *SubnetService) ListSubnetID() sets.String
- func (service *SubnetService) ListSubnetSetID(ctx context.Context) sets.String
- func (service *SubnetService) UpdateSubnetSetStatus(obj *v1alpha1.SubnetSet) error
- func (service *SubnetService) UpdateSubnetSetTags(ns string, vpcSubnets []model.VpcSubnet, tags []model.Tag) error
- func (service *SubnetService) WrapHierarchySubnet(subnet *model.VpcSubnet, vpcInfo *common.VPCResourceInfo) (*model.OrgRoot, error)
- type SubnetStore
Constants ¶
View Source
const (
SUBNETPREFIX = "sub"
)
Variables ¶
View Source
var ( MarkedForDelete = true EnforceRevisionCheckParam = false ResourceTypeSubnet = common.ResourceTypeSubnet NewConverter = common.NewConverter SubnetTypeError = errors.New("unsupported type") )
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
type Comparable = common.Comparable
func SubnetToComparable ¶
func SubnetToComparable(subnet *model.VpcSubnet) Comparable
type SubnetParameters ¶
SubnetParameters stores parameters to CRUD Subnet object
type SubnetService ¶
type SubnetService struct { common.Service SubnetStore *SubnetStore }
func GetSubnetService ¶
func GetSubnetService(service common.Service) *SubnetService
GetSubnetService get singleton SubnetService instance, subnet/subnetset controller share the same instance.
func InitializeSubnetService ¶
func InitializeSubnetService(service common.Service) (*SubnetService, error)
InitializeSubnetService initialize Subnet service.
func (*SubnetService) BuildSubnetID ¶
func (service *SubnetService) BuildSubnetID(subnet *v1alpha1.Subnet) string
func (*SubnetService) Cleanup ¶
func (service *SubnetService) Cleanup() error
func (*SubnetService) CreateOrUpdateSubnet ¶
func (*SubnetService) DeleteIPAllocation ¶
func (service *SubnetService) DeleteIPAllocation(orgID, projectID, vpcID, subnetID string) error
func (*SubnetService) DeleteSubnet ¶
func (service *SubnetService) DeleteSubnet(nsxSubnet model.VpcSubnet) error
func (*SubnetService) GenerateSubnetNSTags ¶
func (*SubnetService) GetIPPoolUsage ¶
func (service *SubnetService) GetIPPoolUsage(subnet *v1alpha1.Subnet) (*model.PolicyPoolUsage, error)
func (*SubnetService) GetSubnetStatus ¶
func (service *SubnetService) GetSubnetStatus(subnet *model.VpcSubnet) ([]model.VpcSubnetStatus, error)
func (*SubnetService) IsOrphanSubnet ¶
check if subnet belongs to a subnetset, if yes, check if that subnetset still exists
func (*SubnetService) ListSubnetCreatedByCR ¶
func (service *SubnetService) ListSubnetCreatedByCR() []model.VpcSubnet
func (*SubnetService) ListSubnetCreatedBySubnetSet ¶
func (service *SubnetService) ListSubnetCreatedBySubnetSet() []model.VpcSubnet
func (*SubnetService) ListSubnetID ¶
func (service *SubnetService) ListSubnetID() sets.String
func (*SubnetService) ListSubnetSetID ¶
func (service *SubnetService) ListSubnetSetID(ctx context.Context) sets.String
func (*SubnetService) UpdateSubnetSetStatus ¶
func (service *SubnetService) UpdateSubnetSetStatus(obj *v1alpha1.SubnetSet) error
func (*SubnetService) UpdateSubnetSetTags ¶
func (*SubnetService) WrapHierarchySubnet ¶
func (service *SubnetService) WrapHierarchySubnet(subnet *model.VpcSubnet, vpcInfo *common.VPCResourceInfo) (*model.OrgRoot, error)
WrapHierarchySubnet Wrap the subnet for InfraClient to patch.
type SubnetStore ¶
type SubnetStore struct {
common.ResourceStore
}
SubnetStore is a store for subnet.
func (*SubnetStore) Apply ¶ added in v0.0.1
func (subnetStore *SubnetStore) Apply(i interface{}) error
func (*SubnetStore) GetByIndex ¶
func (subnetStore *SubnetStore) GetByIndex(key string, value string) []model.VpcSubnet
Click to show internal directories.
Click to hide internal directories.