helper

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Standalone        bool
	AgentTestsOnly    bool
	NoOFTests         bool
	GraphOutputFormat string
	TopologyBackend   string
	FlowBackend       string
	AnalyzerListen    string
)

Functions

func Connect added in v0.19.1

func Connect(endpoint string, timeout int, onReady func(*websocket.Conn)) (*websocket.Conn, error)

func DecodeStructMessageJSON added in v0.19.1

func DecodeStructMessageJSON(b []byte) *ws.StructMessage

func ExecCmds added in v0.2.0

func ExecCmds(t *testing.T, cmds ...Cmd) (e error)

func FilterIPv6AddrAnd added in v0.7.0

func FilterIPv6AddrAnd(flows []*flow.Flow, A, B string) (r []*flow.Flow)

func FlowsToString added in v0.10.0

func FlowsToString(flows []*flow.Flow) string

func InitConfig

func InitConfig(conf string, params ...HelperParams) error

func SendPCAPFile added in v0.10.0

func SendPCAPFile(filename string, socket string) error

func WSClose added in v0.12.0

func WSClose(ws *websocket.Conn) error

Types

type Cmd added in v0.2.0

type Cmd struct {
	Cmd   string
	Check bool
}

type HelperParams added in v0.4.0

type HelperParams map[string]interface{}

Jump to

Keyboard shortcuts

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