utils

package
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString checks if a string is present in a slice.

func GenerateDatapathID

func GenerateDatapathID(switchName string) string

generateDatapathID generates a datapath ID from the switch name

func GenerateHash

func GenerateHash(obj runtime.Object) string

func GetBridgeName

func GetBridgeName(params BridgeParams) string

func GetPortNumberFromNetAttachDef

func GetPortNumberFromNetAttachDef(netAttachName string) (string, error)

GetPortNumberFromNetAttachDef extracts the port number from the network attachment name.

func Int32Ptr

func Int32Ptr(i int32) *int32

func RemoveString

func RemoveString(slice []string, s string) []string

RemoveString removes a string from a slice.

func SpecToJson

func SpecToJson(obj runtime.Object) bytes.Buffer

Types

type BridgeParams

type BridgeParams struct {
	NodeName     string
	ProviderName string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL