streamsource

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Copyright 2020 The Knative Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	DefaultNumConsumers = "10"
)

Variables

This section is empty.

Functions

func ConfigMapName

func ConfigMapName() string

ConfigMapName gets the name of the redis ConfigMap

func NewController

func NewController(
	ctx context.Context,
	cmw configmap.Watcher,
) *controller.Impl

NewController initializes the controller and is called by the generated code Registers event handlers to enqueue events

func TLSSecretName

func TLSSecretName() string

TLSSecretName gets the name of the tls cert Secret

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler reconciles a streamsource object

func (*Reconciler) FinalizeKind

func (*Reconciler) ReconcileKind

type RedisConfig

type RedisConfig struct {
	NumConsumers string
}

RedisConfig contains the configuration defined in the redis ConfigMap. +k8s:deepcopy-gen=true

func GetRedisConfig

func GetRedisConfig(configMap map[string]string) (*RedisConfig, error)

GetRedisConfig returns the details of the Redis stream.

func NewConfigFromConfigMap

func NewConfigFromConfigMap(configMap *corev1.ConfigMap) (*RedisConfig, error)

NewConfigFromConfigMap creates a RedisConfig from the supplied ConfigMap, expecting the given list of components.

func NewConfigFromMap

func NewConfigFromMap(data map[string]string) (*RedisConfig, error)

NewConfigFromMap creates a RedisConfig from the supplied map, expecting the given list of components.

type TLSConfig

type TLSConfig struct {
	TLSCertificate string
}

func GetTLSSecret

func GetTLSSecret(secret map[string][]byte) (*TLSConfig, error)

GetTLSSecret returns the details of the TLS certificate.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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