Documentation
¶
Index ¶
- Constants
- func AddClusterInfoData(toConfigMap *corev1.ConfigMap, newCluster ClusterInfo) error
- func Allocate(info *Info) (string, error)
- func CheckForOverlappingCIDRs(infoMap map[string]*ClusterInfo, cidr, clusterID string) error
- func ExtractClusterInfo(fromConfigMap *corev1.ConfigMap) (map[string]*ClusterInfo, error)
- func GetValidAllocationSize(cidrRange string, allocationSize uint) (uint, error)
- func IsCIDRPreConfigured(clusterID string, clustersetIPNetworks map[string]*ClusterInfo) bool
- func IsValid(cidr string) error
- type ClusterInfo
- type Info
Constants ¶
View Source
const ClusterInfoKey = "clusterinfo"
Variables ¶
This section is empty.
Functions ¶
func AddClusterInfoData ¶
func AddClusterInfoData(toConfigMap *corev1.ConfigMap, newCluster ClusterInfo) error
func CheckForOverlappingCIDRs ¶
func CheckForOverlappingCIDRs(infoMap map[string]*ClusterInfo, cidr, clusterID string) error
func ExtractClusterInfo ¶
func ExtractClusterInfo(fromConfigMap *corev1.ConfigMap) (map[string]*ClusterInfo, error)
func GetValidAllocationSize ¶
func IsCIDRPreConfigured ¶
func IsCIDRPreConfigured(clusterID string, clustersetIPNetworks map[string]*ClusterInfo) bool
Types ¶
type ClusterInfo ¶
Click to show internal directories.
Click to hide internal directories.