Documentation
¶
Index ¶
- Variables
- func BoolPtr(b bool) *bool
- func ContainsString(slice []string, s string) bool
- func GetCloudEvent(eventType string) event.Event
- func GetPortNumberFromURL(u url.URL) (uint32, error)
- func GetRandString(length int) string
- func GetSinkData(sink string) (string, []string, error)
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func IsValidScheme(sink string) bool
- func MakeConsumerError(actualError, underlyingError error, consumer any) error
- func MakeSubscriptionError(actualError, underlyingError error, subscription any) error
- func ProcMountTypePtr(p v1.ProcMountType) *v1.ProcMountType
- func RemoveString(slice []string, s string) (result []string)
- func StringPtr(s string) *string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParseSink = errors.Errorf("failed to parse subscription sink URL")
Functions ¶
func ContainsString ¶
ContainsString checks if a string is contained in a slice of strings.
func GetCloudEvent ¶
func GetPortNumberFromURL ¶
GetPortNumberFromURL converts string port from url.URL to uint32 port.
func GetRandString ¶
GetRandString returns a random string of the given length.
func IsValidScheme ¶
IsValidScheme returns true if the sink scheme is http or https, otherwise returns false.
func MakeConsumerError ¶
MakeConsumerError creates a new error and includes the underlyingError in the message for consumer-related errors.
func MakeSubscriptionError ¶
MakeSubscriptionError creates a new error and includes the underlyingError in the message for subscription-related errors.
func ProcMountTypePtr ¶
func ProcMountTypePtr(p v1.ProcMountType) *v1.ProcMountType
func RemoveString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.