subscription

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelSubscriptionName is the label for immutable name of the name
	LabelSubscriptionName = "name"
	// LabelNamespaceName is the label for immutable name of the namespace
	LabelNamespaceName = "subscription_ns"
)

Variables

This section is empty.

Functions

func NewController

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

NewController returns a new controller that reconciles Subscriptions objects.

Types

type KnativeChannelReportArgs

type KnativeChannelReportArgs struct {
	Name  string
	Ready bool
}

KnativeChannelReportArgs Knative Channel Report Args

func NewKnativeChannelReportArgs

func NewKnativeChannelReportArgs(name string, ready bool) *KnativeChannelReportArgs

NewKnativeChannelReportArgs constructs a NewKnativeChannelReportArgs

type KnativeSubscriptionReportArgs

type KnativeSubscriptionReportArgs struct {
	Namespace string
	Name      string
	Ready     bool
}

KnativeSubscriptionReportArgs Knative Subscription Report Args

func NewKnativeSubscriptionReportArgs

func NewKnativeSubscriptionReportArgs(namespace string, name string, ready bool) *KnativeSubscriptionReportArgs

NewKnativeSubscriptionReportArgs constructs a NewKnativeSubscriptionReportArgs

type KymaSubscriptionReportArgs

type KymaSubscriptionReportArgs struct {
	Namespace string
	Name      string
	Ready     bool
}

KymaSubscriptionReportArgs Kyma Subscription Report Args

func NewKymaSubscriptionReportArgs

func NewKymaSubscriptionReportArgs(namespace string, name string, ready bool) *KymaSubscriptionReportArgs

NewKymaSubscriptionReportArgs constructs a kymaSubscriptionReportArgs

type Reconciler

type Reconciler struct {
	// wrapper for core controller components (clients, logger, ...)
	*reconciler.Base

	StatsReporter StatsReporter
	// contains filtered or unexported fields
}

Reconciler Kyma subscriptions reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile reconciles a Kyma Subscription

type StatsReporter

type StatsReporter interface {
	// ReportKymaSubscriptionGauge captures the kyma subscription count.
	ReportKymaSubscriptionGauge(args *KymaSubscriptionReportArgs) error

	// ReportKnativeSubscriptionGauge captures the knative subscription count.
	ReportKnativeSubscriptionGauge(args *KnativeSubscriptionReportArgs) error

	// ReportKnativeChannelGauge captures the knative channel count.
	ReportKnativeChannelGauge(args *KnativeChannelReportArgs) error
}

StatsReporter defines the interface for sending Kyma Subscription Controller metrics.

func NewStatsReporter

func NewStatsReporter() (StatsReporter, error)

NewStatsReporter creates a reporter that collects and reports source metrics.

Jump to

Keyboard shortcuts

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