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.