Documentation ¶
Index ¶
- Constants
- Variables
- func BuildPcapPath(id int64) string
- func BuildTlsPcapPath(id int64) string
- func BuildTlsTmpPcapPath(id int64) string
- func BuildTmpPcapPath(id int64) string
- func BuildUdpPcapPath(id int64) string
- func CleanUpTmpPcaps() error
- func Contains(s []string, str string) bool
- func GetDataDir() string
- func GetDataPath(path string) string
- func GetFileContentType(out *os.File) (string, error)
- func GetNameResolutionHistoryPath() string
- func GetPcapPath(id string) string
- func GetPcapsDir() string
- func GetSelfHost() string
- func GetSelfNode() string
- func HandleError(c *gin.Context, err error)
- func InitAlivePcapsMap()
- func InitDataDir()
- func IsTls(id string) bool
- func LimitPcapsDirSize()
- func RemoveDataDir(path string) string
- func RemovePortFromWorkerHost(workerHost string) string
- func SetPcapsDirSizeLimit(limit int64)
- func SetSelfHost(v string)
- func SetSelfNode(v string)
- type Opts
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 BuildTlsPcapPath ¶
func BuildTlsTmpPcapPath ¶
func BuildTmpPcapPath ¶
func BuildUdpPcapPath ¶ added in v0.6.1
func CleanUpTmpPcaps ¶
func CleanUpTmpPcaps() error
func GetDataDir ¶
func GetDataDir() string
func GetDataPath ¶ added in v0.7.0
func GetNameResolutionHistoryPath ¶
func GetNameResolutionHistoryPath() string
func GetPcapPath ¶
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 InitAlivePcapsMap ¶
func InitAlivePcapsMap()
func InitDataDir ¶
func InitDataDir()
func LimitPcapsDirSize ¶ added in v0.5.0
func LimitPcapsDirSize()
func RemoveDataDir ¶ added in v0.7.0
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 ¶
Click to show internal directories.
Click to hide internal directories.