istio: Index | Files

package validation

import ""


Package Files

validator.go vld.go vld_unix.go

func GetOriginalDestination Uses

func GetOriginalDestination(conn net.Conn) (daddr net.IP, dport uint16, err error)

Recover the original address from redirect socket. Supposed to work for tcp over ipv4 and ipv6.

type Client Uses

type Client struct {
    Config *Config

func (*Client) Run Uses

func (c *Client) Run() error

type Config Uses

type Config struct {
    ServerListenAddress []string
    ServerOriginalPort  uint16
    ServerOriginalIP    net.IP
    ServerReadyBarrier  chan ReturnCode
    ProbeTimeout        time.Duration

type ReturnCode Uses

type ReturnCode int
const (
    DONE ReturnCode = iota

type Service Uses

type Service struct {
    Config *Config

func (*Service) Run Uses

func (s *Service) Run() error

type Validator Uses

type Validator struct {
    Config *Config

func NewValidator Uses

func NewValidator(config *config.Config, hostIP net.IP) *Validator

func (*Validator) Run Uses

func (validator *Validator) Run() error

Package validation imports 14 packages (graph) and is imported by 1 packages. Updated 2021-01-09. Refresh now. Tools for package owners.