Documentation ¶
Index ¶
- Constants
- func NewAppChannel(appName string) *messagingv1alpha1.Channel
- func NewAppNamespace(name string, brokerInjection bool) *corev1.Namespace
- func NewAppSubscription(appNs, appName string, opts ...SubscriptionOption) *messagingv1alpha1.Subscription
- func NewDefaultBroker(ns string) *eventingv1alpha1.Broker
- func NewFakeClients(objs ...runtime.Object) (*eventingfake.Clientset, *k8sfake.Clientset)
- type ActionsAsserter
- type SubscriptionOption
Constants ¶
View Source
const FakeChannelName = "fake-chan"
View Source
const FakeSubscriptionName = "fake-sub"
Variables ¶
This section is empty.
Functions ¶
func NewAppChannel ¶
func NewAppChannel(appName string) *messagingv1alpha1.Channel
func NewAppSubscription ¶
func NewAppSubscription(appNs, appName string, opts ...SubscriptionOption) *messagingv1alpha1.Subscription
func NewDefaultBroker ¶
func NewDefaultBroker(ns string) *eventingv1alpha1.Broker
func NewFakeClients ¶
NewFakeClients initializes fake Clientsets with an optional list of API objects.
Types ¶
type ActionsAsserter ¶
func NewActionsAsserter ¶
func NewActionsAsserter(t *testing.T, clis ...rt.ActionRecorder) *ActionsAsserter
func (*ActionsAsserter) AssertCreates ¶
func (a *ActionsAsserter) AssertCreates(t *testing.T, expect []runtime.Object)
func (*ActionsAsserter) AssertDeletes ¶
func (a *ActionsAsserter) AssertDeletes(t *testing.T, expect []string)
func (*ActionsAsserter) AssertUpdates ¶
func (a *ActionsAsserter) AssertUpdates(t *testing.T, expect []runtime.Object)
type SubscriptionOption ¶
type SubscriptionOption func(*messagingv1alpha1.Subscription)
SubscriptionOption is a functional option for Subscription objects.
func WithNameSuffix ¶
func WithNameSuffix(nameSuffix string) SubscriptionOption
WithNameSuffix generates the name of a Subscription using its GenerateName prefix.
Click to show internal directories.
Click to hide internal directories.