misc

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const NameResolutionHistoryFilename string = "name_resolution_history.json"

Variables

View Source
var AlivePcaps *sync.Map
View Source
var Snaplen int = 65536
View Source
var TargetedPods []v1.Pod // global

Functions

func BuildPcapPath

func BuildPcapPath(id int64) string

func BuildTlsPcapPath

func BuildTlsPcapPath(id int64) string

func BuildTlsTmpPcapPath

func BuildTlsTmpPcapPath(id int64) string

func BuildTmpPcapPath

func BuildTmpPcapPath(id int64) string

func BuildUdpPcapPath added in v0.6.1

func BuildUdpPcapPath(id int64) string

func CleanUpTmpPcaps

func CleanUpTmpPcaps() error

func Contains

func Contains(s []string, str string) bool

func GetDataDir

func GetDataDir() string

func GetDataPath added in v0.7.0

func GetDataPath(path string) string

func GetFileContentType added in v0.7.0

func GetFileContentType(out *os.File) (string, error)

func GetNameResolutionHistoryPath

func GetNameResolutionHistoryPath() string

func GetPcapPath

func GetPcapPath(id string) string

func GetPcapsDir

func GetPcapsDir() string

func GetSelfHost added in v0.7.0

func GetSelfHost() string

func GetSelfNode added in v0.7.0

func GetSelfNode() string

func HandleError

func HandleError(c *gin.Context, err error)

func InitAlivePcapsMap

func InitAlivePcapsMap()

func InitDataDir

func InitDataDir()

func IsTls

func IsTls(id string) bool

func LimitPcapsDirSize added in v0.5.0

func LimitPcapsDirSize()

func RemoveDataDir added in v0.7.0

func RemoveDataDir(path string) string

func RemovePortFromWorkerHost

func RemovePortFromWorkerHost(workerHost string) string

func SetPcapsDirSizeLimit added in v0.5.0

func SetPcapsDirSizeLimit(limit int64)

func SetSelfHost added in v0.7.0

func SetSelfHost(v string)

func SetSelfNode added in v0.7.0

func SetSelfNode(v string)

Types

type Opts

type Opts struct {
	ClusterMode            bool
	StaleConnectionTimeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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