assert

package
v0.0.0-...-b110700 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiCompleted

func ApiCompleted(apiDefinition *v1alpha1.ApiDefinition) error

func ApiFailed

func ApiFailed(apiDefinition *v1alpha1.ApiDefinition) error

func ApiV4Completed

func ApiV4Completed(apiDefinition *v1alpha1.ApiV4Definition) error

func ApiV4Failed

func ApiV4Failed(apiDefinition *v1alpha1.ApiV4Definition) error

func ApplicationCompleted

func ApplicationCompleted(app *v1alpha1.Application) error

func ApplicationFailed

func ApplicationFailed(app *v1alpha1.Application) error

func Equals

func Equals(field string, expected, given any) error

func EventsEmitted

func EventsEmitted(obj client.Object, reasons ...string)

func HasFinalizer

func HasFinalizer(object client.Object, value string) error

func MapContaining

func MapContaining[K comparable, V any](m map[K]V, key K, value V) error

func MapNotContaining

func MapNotContaining[K comparable, V any](m map[K]V, key K) error

func Nil

func Nil(field string, value any) error

func NoErrorAndHTTPStatus

func NoErrorAndHTTPStatus(err error, res *http.Response, expectedStatus int) error

func NotEmptySlice

func NotEmptySlice[T any](field string, value []T) error

func NotEmptyString

func NotEmptyString(field string, value string) error

func NotFoundError

func NotFoundError(err error) error

func NotNil

func NotNil(field string, value any) error

func SliceEqualsSorted

func SliceEqualsSorted[S ~[]E, E any](field string, expected S, given S, comp sort.Comparator[E]) error

func SliceOfSize

func SliceOfSize[T any](field string, value []T, size int) error

func StrEndingWithPath

func StrEndingWithPath(str, path string) error

func StrStartingWith

func StrStartingWith(str, prefix string) error

func SubscriptionCompleted

func SubscriptionCompleted(sub *v1alpha1.Subscription) error

func SubscriptionFailed

func SubscriptionFailed(sub *v1alpha1.Subscription) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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