util

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(list []string, s string) bool

Contains checks if the passed string is present in the given slice of strings.

func Remove

func Remove(list []string, s string) []string

Remove deletes the passed string from the given slice of strings.

func SetStatusConditions

func SetStatusConditions(client runtimeclient.Client, logger logr.Logger, object interface{}, conditions *kedav1alpha1.Conditions) error

SetStatusConditions patches given object with passed list of conditions based on the object's type or returns an error.

func UpdateScaledObjectStatus

func UpdateScaledObjectStatus(client runtimeclient.Client, logger logr.Logger, scaledObject *kedav1alpha1.ScaledObject, status *kedav1alpha1.ScaledObjectStatus) error

UpdateScaledObjectStatus patches the given ScaledObject with the updated status passed to it or returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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