assert

package
v0.0.0-...-89741fe Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiAccepted

func ApiAccepted(apiDefinition *v1alpha1.ApiDefinition) error

func ApiCompleted

func ApiCompleted(apiDefinition *v1alpha1.ApiDefinition) error

func ApiFailed

func ApiFailed(apiDefinition *v1alpha1.ApiDefinition) error

func ApiRejected

func ApiRejected(apiDefinition *v1alpha1.ApiDefinition) error

func ApiV4Accepted

func ApiV4Accepted(apiDefinition *v1alpha1.ApiV4Definition) error

func ApiV4Completed

func ApiV4Completed(apiDefinition *v1alpha1.ApiV4Definition) error

func ApiV4Failed

func ApiV4Failed(apiDefinition *v1alpha1.ApiV4Definition) error

func ApiV4Rejected

func ApiV4Rejected(apiDefinition *v1alpha1.ApiV4Definition) error

func ApplicationAccepted

func ApplicationAccepted(app *v1alpha1.Application) error

func ApplicationCompleted

func ApplicationCompleted(app *v1alpha1.Application) error

func ApplicationFailed

func ApplicationFailed(app *v1alpha1.Application) error

func ApplicationRejected

func ApplicationRejected(app *v1alpha1.Application) error

func Deleted

func Deleted[T client.Object](ctx context.Context, kind string, obj T) error

func Equals

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

func EventsEmitted

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

func GroupAccepted

func GroupAccepted(group *v1alpha1.Group) error

func GroupCompleted

func GroupCompleted(group *v1alpha1.Group) error

func GroupFailed

func GroupFailed(group *v1alpha1.Group) error

func HasFinalizer

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

func IsAccepted

func IsAccepted(obj core.ConditionAwareObject) error

func IsResolved

func IsResolved(obj core.ConditionAwareObject) error

func IsUnresolved

func IsUnresolved(obj core.ConditionAwareObject) 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 NotificationCompleted

func NotificationCompleted(notification *v1alpha1.Notification) error

func NotificationFailed

func NotificationFailed(notification *v1alpha1.Notification) error

func SharedPolicyGroupAccepted

func SharedPolicyGroupAccepted(sub *v1alpha1.SharedPolicyGroup) error

func SharedPolicyGroupCompleted

func SharedPolicyGroupCompleted(sub *v1alpha1.SharedPolicyGroup) error

func SharedPolicyGroupFailed

func SharedPolicyGroupFailed(sub *v1alpha1.SharedPolicyGroup) 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 SubscriptionAccepted

func SubscriptionAccepted(sub *v1alpha1.Subscription) 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