util

package
v2.1.32 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 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 SliceItoa

func SliceItoa(intSlice []int) []string

func SplitAndSort

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

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