Documentation ¶
Index ¶
- func ContainsString(slice []string, s string) bool
- func GenerateDatapathID(switchName string) string
- func GenerateHash(obj runtime.Object) string
- func GetBridgeName(params BridgeParams) 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 BridgeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString checks if a string is present in a slice.
func GenerateDatapathID ¶
generateDatapathID generates a datapath ID from the switch name
func GenerateHash ¶
func GetBridgeName ¶
func GetBridgeName(params BridgeParams) string
func GetPortNumberFromNetAttachDef ¶
GetPortNumberFromNetAttachDef extracts the port number from the network attachment name.
func RemoveString ¶
RemoveString removes a string from a slice.
Types ¶
type BridgeParams ¶
Click to show internal directories.
Click to hide internal directories.