Documentation ¶
Index ¶
- Constants
- Variables
- func BuildPcapFilename(id int64) string
- func BuildUdpPcapFilename(id int64) string
- func Contains(s []string, str string) bool
- func GetContextDataPath(context string) string
- func GetContextPath(context string) string
- func GetDataDir() string
- func GetDataPath(path string) string
- func GetFileContentType(out *os.File) (string, error)
- func GetMasterPcapPath() string
- func GetMasterPcapSizeLimit() int64
- func GetNameResolutionHistoryPath() string
- func GetPcapPath(filename string, context string) string
- func GetPcapsDir() string
- func GetSelfHost() string
- func GetSelfNode() string
- func HandleError(c *gin.Context, err error)
- func InitDataDir()
- func IsTls(id string) bool
- func MergeByteChannels(cs ...<-chan []byte) <-chan []byte
- func RemoveDataDir(path string) string
- func RemovePortFromWorkerHost(workerHost string) string
- func SetMasterPcapSizeLimit(limit int64)
- func SetSelfHost(v string)
- func SetSelfNode(v string)
- type Opts
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 BuildUdpPcapFilename ¶ added in v0.8.2
func GetContextDataPath ¶ added in v0.8.7
func GetContextPath ¶ added in v0.8.2
func GetDataDir ¶
func GetDataDir() string
func GetDataPath ¶ added in v0.7.0
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 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 InitDataDir ¶
func InitDataDir()
func MergeByteChannels ¶ added in v0.8.33
func RemoveDataDir ¶ added in v0.7.0
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 ¶
Click to show internal directories.
Click to hide internal directories.