Documentation ¶
Index ¶
- func ConvertFromCRFormat(data map[string][]string) map[string]IPs
- func ConvertToCRFormat(info map[string]IPs) map[string][]string
- func CreateDynamicKubeConfigClient() (dynClient dynamic.Interface, err error)
- func CreateOrUpdateNetworkConfig(info map[string][]string, resourceName, namespace string) error
- func GenerateIPs(ipList map[string]IPs, requestedIPs int, networkKey string) (randomValues []string, err error)
- func GetLastIPDigit(ip string) (string, error)
- func LoadProfile(source, configLocation, configName string) (ipList map[string]IPs)
- func LoadYAMLStructure(yamlData []byte) (ipList map[string]IPs)
- func PrintBanner() string
- func ReadYAMLFileFromDisk(filePath string) ([]byte, error)
- func SaveYAMLToDisk(ipList map[string]IPs, filename string)
- func TruncateIP(ip string) (string, error)
- type IPInfo
- type IPs
- type NetworkConfig
- type NetworkConfigSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIPs ¶
func GetLastIPDigit ¶
func LoadProfile ¶
func LoadYAMLStructure ¶
func ReadYAMLFileFromDisk ¶
READY YAML FILE FROM DISK
func SaveYAMLToDisk ¶
func TruncateIP ¶
Types ¶
type NetworkConfig ¶
type NetworkConfig struct { v1.TypeMeta `json:",inline"` v1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkConfigSpec `json:"spec,omitempty"` }
DEFINE THE NETWORKCONFIG STRUCT
func GetNetworkConfig ¶
func GetNetworkConfig(resourceName, namespace string) (*NetworkConfig, error)
FUNCTION TO GET A NETWORKCONFIG RESOURCE
type NetworkConfigSpec ¶
Click to show internal directories.
Click to hide internal directories.