misc

package
v0.8.13-canary Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemChannelBufferSize     = 100
	PacketChannelBufferSize   = 1000
	ErrorChannelBufferSize    = 100
	LogChannelBufferSize      = 100
	TlsCloseChannelBufferSize = 100
)
View Source
const ClientHelloBasicPacket string = "" /* 1166-byte string literal not displayed */
View Source
const DefaultContext string = "master"
View Source
const MasterPcapSizeCheckPeriod time.Duration = 5 * time.Second
View Source
const NameResolutionDumpPeriod time.Duration = 3 * time.Second
View Source
const NameResolutionHistoryFilename string = "name_resolution_history.json"
View Source
const PcapTTL time.Duration = 10 * time.Second

Variables

View Source
var RunID int64
View Source
var Snaplen int = 65536
View Source
var TargetedPods []v1.Pod // global

Functions

func BuildPcapFilename added in v0.8.2

func BuildPcapFilename(id int64) string

func BuildUdpPcapFilename added in v0.8.2

func BuildUdpPcapFilename(id int64) string

func Contains

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

func GetContextDataPath added in v0.8.7

func GetContextDataPath(context string) string

func GetContextPath added in v0.8.2

func GetContextPath(context string) string

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 GetMasterPcapPath added in v0.8.2

func GetMasterPcapPath() string

func GetMasterPcapSizeLimit added in v0.8.2

func GetMasterPcapSizeLimit() int64

func GetNameResolutionHistoryPath

func GetNameResolutionHistoryPath() string

func GetPcapPath

func GetPcapPath(filename string, context 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 InitDataDir

func InitDataDir()

func IsTls

func IsTls(id string) bool

func RemoveDataDir added in v0.7.0

func RemoveDataDir(path string) string

func RemovePortFromWorkerHost

func RemovePortFromWorkerHost(workerHost string) string

func SetMasterPcapSizeLimit added in v0.8.2

func SetMasterPcapSizeLimit(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