stanza_input_operator

package module
v0.0.0-...-29b77e5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 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

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 {
	// flag
	Running bool
	// 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