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 ¶
const (
DefaultNumConsumers = "10"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController initializes the controller and is called by the generated code Registers event handlers to enqueue events
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles a streamsource object
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, source *sourcesv1alpha1.RedisStreamSource) pkgreconciler.Event
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, source *sourcesv1alpha1.RedisStreamSource) pkgreconciler.Event
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.