tcpdump

package
v0.0.0-...-089de29 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPDump

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

func Attach

func Attach(containerName, netns, iface string) *TCPDump

Attach use if tcpdump is available in the container

func AttachUnavailable

func AttachUnavailable(containerID, iface string) *TCPDump

AttachUnavailable use if tcpdump is not available in the container

func (*TCPDump) AddMatcher

func (t *TCPDump) AddMatcher(name string, s stringMatcher)

func (*TCPDump) MatchCount

func (t *TCPDump) MatchCount(name string) int

func (*TCPDump) MatchCountFn

func (t *TCPDump) MatchCountFn(name string) func() int

func (*TCPDump) ResetCount

func (t *TCPDump) ResetCount(name string)

func (*TCPDump) SetLogEnabled

func (t *TCPDump) SetLogEnabled(logEnabled bool)

func (*TCPDump) SetLogString

func (t *TCPDump) SetLogString(str string)

func (*TCPDump) Start

func (t *TCPDump) Start(expr ...string)

func (*TCPDump) Stop

func (t *TCPDump) Stop()

Jump to

Keyboard shortcuts

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