Documentation ¶
Index ¶
- func GenerateK8sName(ps *v1beta1.PullSubscription) string
- func GenerateReceiveAdapterName(ps *v1beta1.PullSubscription) string
- func GenerateSubscriptionName(ps *v1beta1.PullSubscription) string
- func GetLabelSelector(controller, source string) labels.Selector
- func GetLabels(controller, source string) map[string]string
- func MakeReceiveAdapter(ctx context.Context, args *ReceiveAdapterArgs) *v1.Deployment
- type ReceiveAdapterArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateK8sName ¶ added in v0.16.0
func GenerateK8sName(ps *v1beta1.PullSubscription) string
GenerateK8sName generates a k8s name based on PullSubscription information.
It uses the object labels to see whether it's from a source, channel, or ps to constructs a k8s compliant name.
func GenerateReceiveAdapterName ¶ added in v0.16.0
func GenerateReceiveAdapterName(ps *v1beta1.PullSubscription) string
GenerateReceiveAdapterName generates the name of the receive adapter to be used for this PullSubscription.
func GenerateSubscriptionName ¶
func GenerateSubscriptionName(ps *v1beta1.PullSubscription) string
GenerateSubscriptionName generates the name for the Pub/Sub subscription to be used for this PullSubscription.
It uses the object labels to see whether it's from a source, channel, or ps to construct the name.
func GetLabelSelector ¶
func MakeReceiveAdapter ¶
func MakeReceiveAdapter(ctx context.Context, args *ReceiveAdapterArgs) *v1.Deployment
MakeReceiveAdapter generates (but does not insert into K8s) the Receive Adapter Deployment for PullSubscriptions.
Types ¶
type ReceiveAdapterArgs ¶
type ReceiveAdapterArgs struct { Image string PullSubscription *v1beta1.PullSubscription Labels map[string]string SubscriptionID string SinkURI *apis.URL TransformerURI *apis.URL MetricsConfig string LoggingConfig string TracingConfig string }
ReceiveAdapterArgs are the arguments needed to create a PullSubscription Receive Adapter. Every field is required.
Click to show internal directories.
Click to hide internal directories.