source

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDeliveryOrder = contract.DeliveryOrder_ORDERED
)

Variables

View Source
var (
	DefaultEgressConfig = contract.EgressConfig{
		Retry:         10,
		BackoffPolicy: contract.BackoffPolicy_Exponential,
		BackoffDelay:  10000,
		Timeout:       0,
	}
)

Functions

func NewController

func NewController(ctx context.Context, _ configmap.Watcher, configs *config.Env) *controller.Impl

Types

type Reconciler

type Reconciler struct {
	*base.Reconciler
	*config.Env

	Resolver *resolver.URIResolver

	// NewKafkaClient creates new sarama Client. It's convenient to add this as Reconciler field so that we can
	// mock the function used during the reconciliation loop.
	NewKafkaClient kafka.NewClientFunc
	// NewKafkaClusterAdminClient creates new sarama ClusterAdmin. It's convenient to add this as Reconciler field so that we can
	// mock the function used during the reconciliation loop.
	NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc
	// InitOffsetsFunc initialize offsets for a provided set of topics and a provided consumer group id.
	// It's convenient to add this as Reconciler field so that we can mock the function used during the
	// reconciliation loop.
	InitOffsetsFunc kafka.InitOffsetsFunc
}

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, ks *sources.KafkaSource) reconciler.Event

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, ks *sources.KafkaSource) reconciler.Event

type SecretLocator

type SecretLocator struct {
	*sources.KafkaSource
}

func (*SecretLocator) SecretName

func (ks *SecretLocator) SecretName() (string, bool)

func (*SecretLocator) SecretNamespace

func (ks *SecretLocator) SecretNamespace() (string, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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