Documentation ¶
Overview ¶
Package sinks ... Copyright 2019 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Package sinks ... Copyright 2019 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Package sinks ... Copyright 2019 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sink ¶
type Sink interface { HandleEvent(kubeEvent common.KubeEvent) error HandleObject(kubeObject common.KubeObject) error }
Sink receives events from the router, process and publish them to a certain destination (stdout, NewRelic platform, etc.).
type SinkConfig ¶
SinkConfig defines the name and config map of an `Sink`
func (SinkConfig) GetDurationOr ¶
GetDurationOr returns the duration variable by the given name. It will return the fallback in case the duration is not found. Invalid durations in configuration are not accepted.
func (SinkConfig) MustGetString ¶
func (s SinkConfig) MustGetString(name string) string
MustGetString returns the string variable by the given name. If it's not present, an error will given and the application will stop.