package
0.0.0-20190628093746-affaa533fc2e
Repository: https://github.com/szymongib/kyma.git
Documentation: pkg.go.dev

# Functions

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.
DeactivateSubscriptions deactivate subscriptions.
EncodeChannelName function encodes and joins the given event components to construct the encoded channel name.
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.
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.
WriteSubscription writes a subscription.
WriteSubscriptions writes subscriptions.

# Constants

FieldKnativeChannelName knative channel name field.

# 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.