linux

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	v1.UnimplementedLinuxCaptureServiceServer
	//Captures identifies the capture per interface name
	Captures map[string]*pcap.PcapHandler

	Linux Linux
	// contains filtered or unexported fields
}

Handler Implement the CaptureHandler interface for linux environnement

func NewHandler

func NewHandler(Linux Linux) *Handler

NewHandler creates a linux capture Handler

func (*Handler) Capture added in v0.2.1

Capture implement the capture grpc interface

func (*Handler) ServerInformation

func (s *Handler) ServerInformation() (*types.ServerInfo, error)

type Linux

type Linux struct {
	//Whether the linux configuration is enabled or no
	Enabled bool `yaml:"enabled,omitempty"`
	//OverideDefaultNamespace let us change the network namespace to capture in
	OverideDefaultNamespace string `yaml:"overrideNamespace,omitempty"`
}

Linux provides a Linux server capture configuration

Jump to

Keyboard shortcuts

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