apidump

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpPacketCounters added in v0.13.0

func DumpPacketCounters(interfaces map[string]interfaceInfo, inboundSummary *trace.PacketCountSummary, outboundSummary *trace.PacketCountSummary)

DumpPacketCounters prints the accumulated packet counts per interface and per port, at Debug level, to stderr. The first argument should be the keyed by interface names (as created in the Run function below); all we really need are those names.

func Run

func Run(args Args) error

Types

type Args

type Args struct {
	// Required args
	ClientID akid.ClientID
	Domain   string

	// If both LocalPath and AkitaURI are set, data is teed to both local traces
	// and backend trace.
	// If unset, defaults to a random spec on Akita Cloud.
	Out location.Location

	Interfaces     []string
	Filter         string
	Tags           map[string]string
	PathExclusions []string
	HostExclusions []string
	SampleRate     float64

	// If set, apidump will run the command in a subshell and terminate
	// automatically when the subcommand terminates.
	//
	// apidump will pipe stdout and stderr from the command. If the command stops
	// with non-zero exit code, apidump will also exit with the same exit code.
	ExecCommand string

	// Username to run ExecCommand as. If not set, defaults to the current user.
	ExecCommandUser string

	Plugins []plugin.AkitaPlugin
}

Jump to

Keyboard shortcuts

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