trafficdirection

package
v1.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 0 Imported by: 16

Documentation

Overview

package trafficdirection specifies the directionality of policy in a numeric representation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrafficDirection

type TrafficDirection uint8

TrafficDirection specifies the directionality of policy (ingress or egress).

const (
	// Invalid represents an invalid traffic direction.
	Invalid TrafficDirection = 2

	// Egress represents egress traffic.
	Egress TrafficDirection = 1

	// Ingress represents ingress traffic.
	Ingress TrafficDirection = 0
)

func (TrafficDirection) String

func (td TrafficDirection) String() string

func (TrafficDirection) Uint8

func (td TrafficDirection) Uint8() uint8

Uint8 normalizes the TrafficDirection for insertion into BPF maps.

Jump to

Keyboard shortcuts

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