lb_types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package lb_types contains generated bindings for API file lb_types.api.

Contents:

5 enums
1 struct

Index

Constants

View Source
const (
	APIFile    = "lb_types"
	APIVersion = "1.0.0"
	VersionCrc = 0xba19340c
)

Variables

View Source
var (
	LbEncapType_name = map[uint32]string{
		0: "LB_API_ENCAP_TYPE_GRE4",
		1: "LB_API_ENCAP_TYPE_GRE6",
		2: "LB_API_ENCAP_TYPE_L3DSR",
		3: "LB_API_ENCAP_TYPE_NAT4",
		4: "LB_API_ENCAP_TYPE_NAT6",
		5: "LB_API_ENCAP_N_TYPES",
	}
	LbEncapType_value = map[string]uint32{
		"LB_API_ENCAP_TYPE_GRE4":  0,
		"LB_API_ENCAP_TYPE_GRE6":  1,
		"LB_API_ENCAP_TYPE_L3DSR": 2,
		"LB_API_ENCAP_TYPE_NAT4":  3,
		"LB_API_ENCAP_TYPE_NAT6":  4,
		"LB_API_ENCAP_N_TYPES":    5,
	}
)
View Source
var (
	LbLkpTypeT_name = map[uint32]string{
		0: "LB_API_LKP_SAME_IP_PORT",
		1: "LB_API_LKP_DIFF_IP_PORT",
		2: "LB_API_LKP_ALL_PORT_IP",
		3: "LB_API_LKP_N_TYPES",
	}
	LbLkpTypeT_value = map[string]uint32{
		"LB_API_LKP_SAME_IP_PORT": 0,
		"LB_API_LKP_DIFF_IP_PORT": 1,
		"LB_API_LKP_ALL_PORT_IP":  2,
		"LB_API_LKP_N_TYPES":      3,
	}
)
View Source
var (
	LbNatProtocol_name = map[uint32]string{
		6:          "LB_API_NAT_PROTOCOL_UDP",
		23:         "LB_API_NAT_PROTOCOL_TCP",
		4294967295: "LB_API_NAT_PROTOCOL_ANY",
	}
	LbNatProtocol_value = map[string]uint32{
		"LB_API_NAT_PROTOCOL_UDP": 6,
		"LB_API_NAT_PROTOCOL_TCP": 23,
		"LB_API_NAT_PROTOCOL_ANY": 4294967295,
	}
)
View Source
var (
	LbSrvType_name = map[uint32]string{
		0: "LB_API_SRV_TYPE_CLUSTERIP",
		1: "LB_API_SRV_TYPE_NODEPORT",
		2: "LB_API_SRV_N_TYPES",
	}
	LbSrvType_value = map[string]uint32{
		"LB_API_SRV_TYPE_CLUSTERIP": 0,
		"LB_API_SRV_TYPE_NODEPORT":  1,
		"LB_API_SRV_N_TYPES":        2,
	}
)
View Source
var (
	LbVipType_name = map[uint32]string{
		0: "LB_API_VIP_TYPE_IP6_GRE6",
		1: "LB_API_VIP_TYPE_IP6_GRE4",
		2: "LB_API_VIP_TYPE_IP4_GRE6",
		3: "LB_API_VIP_TYPE_IP4_GRE4",
		4: "LB_API_VIP_TYPE_IP4_L3DSR",
		5: "LB_API_VIP_TYPE_IP4_NAT4",
		6: "LB_API_VIP_TYPE_IP6_NAT6",
		7: "LB_API_VIP_N_TYPES",
	}
	LbVipType_value = map[string]uint32{
		"LB_API_VIP_TYPE_IP6_GRE6":  0,
		"LB_API_VIP_TYPE_IP6_GRE4":  1,
		"LB_API_VIP_TYPE_IP4_GRE6":  2,
		"LB_API_VIP_TYPE_IP4_GRE4":  3,
		"LB_API_VIP_TYPE_IP4_L3DSR": 4,
		"LB_API_VIP_TYPE_IP4_NAT4":  5,
		"LB_API_VIP_TYPE_IP6_NAT6":  6,
		"LB_API_VIP_N_TYPES":        7,
	}
)

Functions

This section is empty.

Types

type LbEncapType

type LbEncapType uint32

LbEncapType defines enum 'lb_encap_type'.

const (
	LB_API_ENCAP_TYPE_GRE4  LbEncapType = 0
	LB_API_ENCAP_TYPE_GRE6  LbEncapType = 1
	LB_API_ENCAP_TYPE_L3DSR LbEncapType = 2
	LB_API_ENCAP_TYPE_NAT4  LbEncapType = 3
	LB_API_ENCAP_TYPE_NAT6  LbEncapType = 4
	LB_API_ENCAP_N_TYPES    LbEncapType = 5
)

func (LbEncapType) String

func (x LbEncapType) String() string

type LbLkpTypeT

type LbLkpTypeT uint32

LbLkpTypeT defines enum 'lb_lkp_type_t'.

const (
	LB_API_LKP_SAME_IP_PORT LbLkpTypeT = 0
	LB_API_LKP_DIFF_IP_PORT LbLkpTypeT = 1
	LB_API_LKP_ALL_PORT_IP  LbLkpTypeT = 2
	LB_API_LKP_N_TYPES      LbLkpTypeT = 3
)

func (LbLkpTypeT) String

func (x LbLkpTypeT) String() string

type LbNatProtocol

type LbNatProtocol uint32

LbNatProtocol defines enum 'lb_nat_protocol'.

const (
	LB_API_NAT_PROTOCOL_UDP LbNatProtocol = 6
	LB_API_NAT_PROTOCOL_TCP LbNatProtocol = 23
	LB_API_NAT_PROTOCOL_ANY LbNatProtocol = 4294967295
)

func (LbNatProtocol) String

func (x LbNatProtocol) String() string

type LbSrvType

type LbSrvType uint32

LbSrvType defines enum 'lb_srv_type'.

const (
	LB_API_SRV_TYPE_CLUSTERIP LbSrvType = 0
	LB_API_SRV_TYPE_NODEPORT  LbSrvType = 1
	LB_API_SRV_N_TYPES        LbSrvType = 2
)

func (LbSrvType) String

func (x LbSrvType) String() string

type LbVip

type LbVip struct {
	Pfx      ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"`
	Protocol ip_types.IPProto           `binapi:"ip_proto,name=protocol" json:"protocol,omitempty"`
	Port     uint16                     `binapi:"u16,name=port" json:"port,omitempty"`
}

LbVip defines type 'lb_vip'.

type LbVipType

type LbVipType uint32

LbVipType defines enum 'lb_vip_type'.

const (
	LB_API_VIP_TYPE_IP6_GRE6  LbVipType = 0
	LB_API_VIP_TYPE_IP6_GRE4  LbVipType = 1
	LB_API_VIP_TYPE_IP4_GRE6  LbVipType = 2
	LB_API_VIP_TYPE_IP4_GRE4  LbVipType = 3
	LB_API_VIP_TYPE_IP4_L3DSR LbVipType = 4
	LB_API_VIP_TYPE_IP4_NAT4  LbVipType = 5
	LB_API_VIP_TYPE_IP6_NAT6  LbVipType = 6
	LB_API_VIP_N_TYPES        LbVipType = 7
)

func (LbVipType) String

func (x LbVipType) String() string

Jump to

Keyboard shortcuts

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