util

package
v2.1.66 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPanic

func AssertPanic(t *testing.T, f func())

func ContainsInt

func ContainsInt(s []int, e int) bool

func ContainsString

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

func CreateIngressObject

func CreateIngressObject(ingressName string, namespace string, url string) *v1.Ingress

func CreateRouteObject

func CreateRouteObject(routeName string, namespace string, url string) *routev1.Route

CreateRouteObject creates an openshift route object

func GetNameTemplateFormat

func GetNameTemplateFormat(nameTemplate string) (string, error)

func GetProviderWithName

func GetProviderWithName(controllerConfig config.Config, name string) *config.Provider

func SliceAtoi

func SliceAtoi(stringSlice []string) ([]int, error)

func SliceAtoi64 added in v2.1.60

func SliceAtoi64(stringSlice []string) ([]int64, error)

func SliceItoa

func SliceItoa(intSlice []int) []string

func SplitAndSort

func SplitAndSort(s string, sep string) []string

func StrToInt64 added in v2.1.60

func StrToInt64(str string) int64

Types

type MonitorNameTemplateParts

type MonitorNameTemplateParts struct {
	Name      string
	Namespace string
}

Jump to

Keyboard shortcuts

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