helpers

package
v0.0.0-...-79e2c14 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func FormatComponentID

func FormatComponentID(name string) string

func GetOutputSecret

func GetOutputSecret(o logging.OutputSpec, secrets map[string]*corev1.Secret) *corev1.Secret

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 SetTLSProfileOptions

func SetTLSProfileOptions(o logging.OutputSpec, op framework.Options)

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