cmd

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ConfigMethodUnknown = iota
	ConfigMethodFileWatcher
	ConfigMethodFilePoller
	ConfigMethodKubernetesSecretMapWatcher
	ConfigMethodInline
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMethod added in v1.1.0

type ConfigMethod int

type Globals

type Globals struct {
	BrokerConfigPath        string `help:"Path to broker configuration file." env:"BROKER_CONFIG_PATH" default:"/etc/triggermesh/broker.conf"`
	ObservabilityConfigPath string `help:"Path to observability configuration file." env:"OBSERVABILITY_CONFIG_PATH"`
	Port                    int    `help:"HTTP Port to listen for CloudEvents." env:"PORT" default:"8080"`
	BrokerName              string `` /* 129-byte string literal not displayed */

	// Config Polling is an alternative to the default file watcher for config files.
	ConfigPollingPeriod string `` /* 158-byte string literal not displayed */

	// Inline Configuration
	BrokerConfig        string `help:"JSON representation of broker configuration." env:"BROKER_CONFIG"`
	ObservabilityConfig string `help:"JSON representation of observability configuration." env:"OBSERVABILITY_CONFIG"`

	// Kubernetes parameters
	KubernetesNamespace                  string `help:"Namespace where the broker is running." env:"KUBERNETES_NAMESPACE"`
	KubernetesBrokerConfigSecretName     string `help:"Secret object name that contains the broker configuration." env:"KUBERNETES_BROKER_CONFIG_SECRET_NAME"`
	KubernetesBrokerConfigSecretKey      string `help:"Secret object key that contains the broker configuration." env:"KUBERNETES_BROKER_CONFIG_SECRET_KEY"`
	KubernetesObservabilityConfigMapName string `help:"ConfigMap object name that contains the observability configuration." env:"KUBERNETES_OBSERVABILITY_CONFIGMAP_NAME"`
	KubernetesStatusConfigmapName        string `help:"ConfigMap object name where the broker instance should write its status." env:"KUBERNETES_STATUS_CONFIGMAP_NAME"`
	KubernetesStatusConfigmapKey         string `help:"ConfigMap object key where the broker should write its status." env:"KUBERNETES_STATUS_CONFIGMAP_KEY" default:"status"`
	StatusReporterResyncCheckPeriod      string `` /* 134-byte string literal not displayed */
	StatusReporterResyncForcePeriod      string `` /* 145-byte string literal not displayed */

	ObservabilityMetricsDomain string `help:"Domain to be used for some metrics reporters." env:"OBSERVABILITY_METRICS_DOMAIN" default:"triggermesh.io/eventing"`

	Context           context.Context    `kong:"-"`
	Logger            *zap.SugaredLogger `kong:"-"`
	LogLevel          zap.AtomicLevel    `kong:"-"`
	PollingPeriod     time.Duration      `kong:"-"`
	ConfigMethod      ConfigMethod       `kong:"-"`
	StatusCheckPeriod time.Duration      `kong:"-"`
	StatusForcePeriod time.Duration      `kong:"-"`
}

func (*Globals) Flush

func (s *Globals) Flush()

func (*Globals) Initialize

func (s *Globals) Initialize() error

func (*Globals) UpdateLogLevel

func (s *Globals) UpdateLogLevel(cfg *observability.Config)

func (*Globals) UpdateMetricsOptions

func (s *Globals) UpdateMetricsOptions(cfg *observability.Config)

func (*Globals) Validate

func (s *Globals) Validate() error

Jump to

Keyboard shortcuts

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