stanza_input_operator

package module
v0.0.0-...-7cb0806 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	helper.InputConfig `mapstructure:",squash"`

	Endpoint  string `mapstructure:"endpoint,omitempty"`
	LogFilter string `mapstructure:"logfilter,omitempty"`
}

Config is the configuration of a kubearmor input operator

func NewConfig

func NewConfig() *Config

NewConfig creates a new input config with default values

func NewConfigWithID

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new input config with default values NOTE: The config passed from here gets overwritten by values in the config file. So, override is handled by env variable expansion in collector configuration.

func (Config) Build

func (cfg Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

Build will build a kubearmor input operator from the supplied configuration

type Feeder

type Feeder struct {
	// contains filtered or unexported fields
}

Feeder Structure

func NewClient

func NewClient(operator helper.InputOperator, cfg Config) (*Feeder, error)

NewClient Function

func (*Feeder) DestroyClient

func (fd *Feeder) DestroyClient() error

type Input

type Input struct {
	helper.InputOperator
	Config
	// contains filtered or unexported fields
}

Input is an operator that processes kubearmor logs

func (*Input) Start

func (operator *Input) Start(_ operator.Persister) error

Start will start generating log entries.

func (*Input) Stop

func (operator *Input) Stop() error

Stop will stop generating logs.

Jump to

Keyboard shortcuts

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