helpers

package
v0.0.0-...-fbbe22e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VectorSecretID = "kubernetes_secret"

Variables

View Source
var (
	Replacer = strings.NewReplacer(" ", "_", "-", "_", ".", "_")
)

Functions

func ConfigPath

func ConfigPath(name string, file string) string

ConfigPath is the quoted path for any configmap visible to the collector

func FormatComponentID

func FormatComponentID(name string) string

func ListenOnAllLocalInterfacesAddress

func ListenOnAllLocalInterfacesAddress() string

func MakeID

func MakeID(parts ...string) string

MakeID given a list of components

func MakeInputID

func MakeInputID(parts ...string) string

MakeInputID for components that logically represent clf.input

func MakeInputs

func MakeInputs(in ...string) string

func MakeOutputID

func MakeOutputID(parts ...string) string

MakeOutPutID for components that logically represent clf.output

func MakePipelineID

func MakePipelineID(parts ...string) string

MakePipelineID for components that logically represent clf.pipeline (e.g. filters)

func MakeRouteInputID

func MakeRouteInputID(rerouteId, sourceType string) string

MakeRouteInputID appends sourceType to rerouteId for input ids

func SecretFrom

func SecretFrom(secretKey *v1.SecretReference) string

SecretFrom formated string SECRET[<secret_component_id>.<secret_name>#<secret_key>]

func SecretPath

func SecretPath(secretName string, file string) string

SecretPath is the quoted path for any secret visible to the collector

func TrimSpaces

func TrimSpaces(in []string) []string

Types

type ComponentReceiver

type ComponentReceiver interface {
	AddInputFrom(n InputComponent)
}

ComponentReceiver is a vector component that receives input from another component (e.g. transform, sink)

type InputComponent

type InputComponent interface {
	// InputIDs are the ids of config elemements to use as input to other components
	InputIDs() []string
}

InputComponent is a vector sink, transformation, source that is provided as input to other components

Jump to

Keyboard shortcuts

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