input

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateInput

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

GenerateInput is an operator that generates log entries.

func (*GenerateInput) Start

func (g *GenerateInput) Start() error

Start will start generating log entries.

func (*GenerateInput) Stop

func (g *GenerateInput) Stop() error

Stop will stop generating logs.

type GenerateInputConfig

type GenerateInputConfig struct {
	helper.InputConfig `yaml:",inline"`
	Entry              entry.Entry `json:"entry"           yaml:"entry"`
	Count              int         `json:"count,omitempty" yaml:"count,omitempty"`
	Static             bool        `json:"static"          yaml:"static,omitempty"`
}

GenerateInputConfig is the configuration of a generate input operator.

func NewGenerateInputConfig

func NewGenerateInputConfig(operatorID string) *GenerateInputConfig

func (*GenerateInputConfig) Build

Build will build a generate input operator.

type JournaldInput

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

JournaldInput is an operator that process logs using journald

func (*JournaldInput) Start

func (operator *JournaldInput) Start() error

Start will start generating log entries.

func (*JournaldInput) Stop

func (operator *JournaldInput) Stop() error

Stop will stop generating logs.

type JournaldInputConfig

type JournaldInputConfig struct {
	helper.InputConfig `yaml:",inline"`

	Directory *string  `json:"directory,omitempty" yaml:"directory,omitempty"`
	Files     []string `json:"files,omitempty"     yaml:"files,omitempty"`
	StartAt   string   `json:"start_at,omitempty"  yaml:"start_at,omitempty"`
}

JournaldInputConfig is the configuration of a journald input operator

func NewJournaldInputConfig

func NewJournaldInputConfig(operatorID string) *JournaldInputConfig

func (JournaldInputConfig) Build

Build will build a journald input operator from the supplied configuration

type K8sEvents

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

K8sEvents is an operator for generating logs from k8s events

func (*K8sEvents) Start

func (k *K8sEvents) Start() error

Start implements the operator.Operator interface

func (*K8sEvents) Stop

func (k *K8sEvents) Stop() error

Stop implements operator.Operator

type K8sEventsConfig

type K8sEventsConfig struct {
	helper.InputConfig `yaml:",inline"`
	Namespaces         []string
}

K8sEventsConfig is the configuration of K8sEvents operator

func NewK8sEventsConfig

func NewK8sEventsConfig(operatorID string) *K8sEventsConfig

NewK8sEventsConfig creates a default K8sEventsConfig

func (K8sEventsConfig) Build

Build will build a k8s_event_input operator from the supplied configuration

type TCPInput

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

TCPInput is an operator that listens for log entries over tcp.

func (*TCPInput) Start

func (t *TCPInput) Start() error

Start will start listening for log entries over tcp.

func (*TCPInput) Stop

func (t *TCPInput) Stop() error

Stop will stop listening for log entries over TCP.

type TCPInputConfig

type TCPInputConfig struct {
	helper.InputConfig `yaml:",inline"`

	ListenAddress string `json:"listen_address,omitempty" yaml:"listen_address,omitempty"`
}

TCPInputConfig is the configuration of a tcp input operator.

func NewTCPInputConfig

func NewTCPInputConfig(operatorID string) *TCPInputConfig

func (TCPInputConfig) Build

Build will build a tcp input operator.

type UDPInput

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

UDPInput is an operator that listens to a socket for log entries.

func (*UDPInput) Start

func (u *UDPInput) Start() error

Start will start listening for messages on a socket.

func (*UDPInput) Stop

func (u *UDPInput) Stop() error

Stop will stop listening for udp messages.

type UDPInputConfig

type UDPInputConfig struct {
	helper.InputConfig `yaml:",inline"`

	ListenAddress string `json:"listen_address,omitempty" yaml:"listen_address,omitempty"`
}

UDPInputConfig is the configuration of a udp input operator.

func NewUDPInputConfig

func NewUDPInputConfig(operatorID string) *UDPInputConfig

func (UDPInputConfig) Build

Build will build a udp input operator.

Directories

Path Synopsis
journald module
k8sevent module
tcp module
udp module

Jump to

Keyboard shortcuts

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