utils

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert2Set

func Convert2Set(list []string) sets.String

Convert2Set converts a string list to string set.

func GetNodeID

func GetNodeID(node *apiv1.Node) (string, error)

GetNodeID get instance ID from the Node spec.

func GetResourceName

func GetResourceName(namespace, name, clusterName string) string

GetResourceName get Ingress related resource name.

func Hash

func Hash(data string) string

Hash gets the data hash.

func NodeNames

func NodeNames(nodes []*apiv1.Node) []string

NodeNames get all the node names.

func NodeSlicesEqual

func NodeSlicesEqual(x, y []*apiv1.Node) bool

NodeSlicesEqual check if two nodes equals to each other.

Types

This section is empty.

Jump to

Keyboard shortcuts

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