package
0.0.0-20200206082754-c833ae4fd044
Repository: https://github.com/dbadura/kyma.git
Documentation: pkg.go.dev
# Functions
ActivateSubscriptionForKnSubscription activates a Kyma Subscription when Kn Subscription is ready.
ActivateSubscriptions activates subscriptions.
CheckIfEventActivationExistForSubscription returns a boolean value indicating if there is an EventActivation for the Subscription or not.
ContainsString returns true if the string exists in the array.
DeactivateSubscriptionForKnSubscription deactivates a Kyma Subscription when Kn Subscription is not ready.
DeactivateSubscriptions deactivate subscriptions.
ErrorInvalidChannelNameLength returns a publish.Error instance.
GetDefaultChannelNamespace returns the default namespace of Knative/Eventing channels and subscriptions.
GetKnativeLib returns the Knative/Eventing access layer.
GetKnSubscriptionName joins the kySubscriptionName and kySubscriptionNamespace.
GetKymaSubscriptionForSubscription gets Kyma Subscription for a particular Knative Subscription.
GetSubscriptionsForEventActivation gets the "ea" object of all the subscriptions having the same "namespace" and the same "Source".
IsSubscriptionActivated checks if the subscription is active or not.
NewDefaultCurrentTime returns a new CurrentTime instance.
NewKnativeLib returns an interface to KnativeLib, which can be mocked.
RemoveString removes the string from in the array and returns a new array instance.
SetNotReadySubscription set subscription as not ready.
SetReadySubscription set subscription as ready.
Subscription returns a new SubscriptionBuilder instance.
UpdateEventActivation handles Kyma EventActivation.
UpdateKnativeSubscription updates Knative subscription on change in Finalizer.
WaitForChannelWithTimeout returns a function that waits until a Channel gets Ready or fails after a timeout.
WriteSubscription writes a subscription.
WriteSubscriptions writes subscriptions.
# Constants
FieldKnativeChannelName knative channel name field.
SubNs is the key for namespace of the subscription.
SubscriptionEventType is the key for event type in label.
SubscriptionEventTypeVersion is the key for event type version in label.
SubscriptionSourceID is the key for source id in label.
# Structs
DefaultCurrentTime represents the default current time.
KnativeLib represents the knative lib.
SubscriptionBuilder represents the subscription builder that is used in the internal knative util package and the knative subscription controller tests.
SubscriptionWithError handles Kyma subscriptions.
# Interfaces
CurrentTime handles current time.
KnativeAccessLib encapsulates the Knative access lib behaviours.
# Type aliases
ChannelReadyFunc is a function used to ensure that a Channel has become Ready.