controller

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrokerConfigMapKey                 = "bootstrap_servers"
	ConsumerModeConfigMapKey           = "consumer_mode"
	ConsumerModePartitionConsumerValue = "partitions"
	ConsumerModeMultiplexConsumerValue = "multiplex"
	KafkaChannelSeparator              = "."
)
View Source
const (

	// ConfigMapName is the name of the ConfigMap in the knative-eventing namespace that contains
	// the subscription information for all kafka Channels. The Provisioner writes to it and the
	// Dispatcher reads from it.
	DispatcherConfigMapName = "kafka-channel-dispatcher"
)
View Source
const (
	// Name is the name of the kafka ClusterChannelProvisioner.
	Name = "kafka"
)

Variables

This section is empty.

Functions

func ProvideController

func ProvideController(mgr manager.Manager, config *KafkaProvisionerConfig, logger *zap.Logger) (controller.Controller, error)

ProvideController returns a Provisioner controller.

Types

type KafkaProvisionerConfig

type KafkaProvisionerConfig struct {
	Brokers      []string
	ConsumerMode cluster.ConsumerMode
}

func GetProvisionerConfig

func GetProvisionerConfig(path string) (*KafkaProvisionerConfig, error)

GetProvisionerConfig returns the details of the associated ClusterChannelProvisioner object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL