Documentation
¶
Index ¶
- func AllocateIPv4s(cidr string, ipStart int, count int) ([]string, string, error)
- func ChangePortNumber(address, newPort string) string
- func ContainsString(slice []string, s string) bool
- func DefaultIfEmpty(val, def string) string
- func GenerateHash(obj runtime.Object) string
- func GenerateLPMNetworkName(overlayName string) string
- func GenerateReplicaSetName(switchPodName string) string
- func GenerateServiceName(switchPodName string) string
- func GenerateSwitchPodName(resourceName, nodeName string, switchType SwitchType) string
- func GetPortNumberFromNetAttachDef(netAttachName string) (string, error)
- func Int32Ptr(i int32) *int32
- func RemoveString(slice []string, s string) []string
- func SpecToJson(obj runtime.Object) bytes.Buffer
- type SwitchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocateIPv4s ¶ added in v1.2.13
allocateIPv4s returns count IPs starting at host offset ipStart within cidr. It enforces: IPv4, ipStart>=1, and avoids network/broadcast addresses for typical subnets.
func ChangePortNumber ¶ added in v1.2.9
func ContainsString ¶
ContainsString checks if a string is present in a slice.
func DefaultIfEmpty ¶ added in v1.2.10
func GenerateHash ¶
func GenerateLPMNetworkName ¶ added in v1.2.13
func GenerateReplicaSetName ¶ added in v1.2.13
func GenerateServiceName ¶ added in v1.2.9
func GenerateSwitchPodName ¶ added in v1.2.13
func GenerateSwitchPodName(resourceName, nodeName string, switchType SwitchType) string
func GetPortNumberFromNetAttachDef ¶
GetPortNumberFromNetAttachDef extracts the port number from the network attachment name.
func RemoveString ¶
RemoveString removes a string from a slice.
Types ¶
type SwitchType ¶ added in v1.2.13
type SwitchType string
const ( SlicePacketSwitch SwitchType = "sps" NetworkEdgeDevice SwitchType = "ned" )
Click to show internal directories.
Click to hide internal directories.