Documentation ¶
Overview ¶
Package lb is a generated VPP binary API for 'lb' module.
It consists of:
1 enum 2 aliases 5 types 1 union 8 messages 4 services
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type Address
- type AddressFamily
- type AddressUnion
- type IP4Address
- type IP4Prefix
- type IP6Address
- type IP6Prefix
- type LbAddDelAs
- type LbAddDelAsReply
- type LbAddDelVip
- type LbAddDelVipReply
- type LbConf
- type LbConfReply
- type LbFlushVip
- type LbFlushVipReply
- type Mprefix
- type Prefix
- type RPCService
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "lb" // APIVersion is the API version of this module. APIVersion = "1.0.0" // VersionCrc is the CRC of this module. VersionCrc = 0xfb2a696e )
Variables ¶
var AddressFamily_name = map[uint32]string{
0: "ADDRESS_IP4",
1: "ADDRESS_IP6",
}
var AddressFamily_value = map[string]uint32{
"ADDRESS_IP4": 0,
"ADDRESS_IP6": 1,
}
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type Address ¶
type Address struct { Af AddressFamily Un AddressUnion }
Address represents VPP binary API type 'address'.
func (*Address) GetCrcString ¶
func (*Address) GetTypeName ¶
type AddressFamily ¶
type AddressFamily uint32
AddressFamily represents VPP binary API enum 'address_family'.
const ( ADDRESS_IP4 AddressFamily = 0 ADDRESS_IP6 AddressFamily = 1 )
func (AddressFamily) String ¶
func (x AddressFamily) String() string
type AddressUnion ¶
type AddressUnion struct {
XXX_UnionData [16]byte
}
AddressUnion represents VPP binary API union 'address_union'.
func AddressUnionIP4 ¶
func AddressUnionIP4(a IP4Address) (u AddressUnion)
func AddressUnionIP6 ¶
func AddressUnionIP6(a IP6Address) (u AddressUnion)
func (*AddressUnion) GetCrcString ¶
func (*AddressUnion) GetCrcString() string
func (*AddressUnion) GetIP4 ¶
func (u *AddressUnion) GetIP4() (a IP4Address)
func (*AddressUnion) GetIP6 ¶
func (u *AddressUnion) GetIP6() (a IP6Address)
func (*AddressUnion) GetTypeName ¶
func (*AddressUnion) GetTypeName() string
func (*AddressUnion) SetIP4 ¶
func (u *AddressUnion) SetIP4(a IP4Address)
func (*AddressUnion) SetIP6 ¶
func (u *AddressUnion) SetIP6(a IP6Address)
type IP4Address ¶
type IP4Address [4]uint8
IP4Address represents VPP binary API alias 'ip4_address'.
type IP4Prefix ¶
type IP4Prefix struct { Prefix IP4Address Len uint8 }
IP4Prefix represents VPP binary API type 'ip4_prefix'.
func (*IP4Prefix) GetCrcString ¶
func (*IP4Prefix) GetTypeName ¶
type IP6Address ¶
type IP6Address [16]uint8
IP6Address represents VPP binary API alias 'ip6_address'.
type IP6Prefix ¶
type IP6Prefix struct { Prefix IP6Address Len uint8 }
IP6Prefix represents VPP binary API type 'ip6_prefix'.
func (*IP6Prefix) GetCrcString ¶
func (*IP6Prefix) GetTypeName ¶
type LbAddDelAs ¶
type LbAddDelAs struct { VipIPPrefix []byte `struc:"[16]byte"` VipPrefixLength uint8 Protocol uint8 Port uint16 AsAddress []byte `struc:"[16]byte"` IsDel uint8 IsFlush uint8 }
LbAddDelAs represents VPP binary API message 'lb_add_del_as'.
func (*LbAddDelAs) GetCrcString ¶
func (*LbAddDelAs) GetCrcString() string
func (*LbAddDelAs) GetMessageName ¶
func (*LbAddDelAs) GetMessageName() string
func (*LbAddDelAs) GetMessageType ¶
func (*LbAddDelAs) GetMessageType() api.MessageType
func (*LbAddDelAs) Reset ¶
func (m *LbAddDelAs) Reset()
type LbAddDelAsReply ¶
type LbAddDelAsReply struct {
Retval int32
}
LbAddDelAsReply represents VPP binary API message 'lb_add_del_as_reply'.
func (*LbAddDelAsReply) GetCrcString ¶
func (*LbAddDelAsReply) GetCrcString() string
func (*LbAddDelAsReply) GetMessageName ¶
func (*LbAddDelAsReply) GetMessageName() string
func (*LbAddDelAsReply) GetMessageType ¶
func (*LbAddDelAsReply) GetMessageType() api.MessageType
func (*LbAddDelAsReply) Reset ¶
func (m *LbAddDelAsReply) Reset()
type LbAddDelVip ¶
type LbAddDelVip struct { IPPrefix []byte `struc:"[16]byte"` PrefixLength uint8 Protocol uint8 Port uint16 Encap uint8 Dscp uint8 Type uint8 TargetPort uint16 NodePort uint16 NewFlowsTableLength uint32 IsDel uint8 }
LbAddDelVip represents VPP binary API message 'lb_add_del_vip'.
func (*LbAddDelVip) GetCrcString ¶
func (*LbAddDelVip) GetCrcString() string
func (*LbAddDelVip) GetMessageName ¶
func (*LbAddDelVip) GetMessageName() string
func (*LbAddDelVip) GetMessageType ¶
func (*LbAddDelVip) GetMessageType() api.MessageType
func (*LbAddDelVip) Reset ¶
func (m *LbAddDelVip) Reset()
type LbAddDelVipReply ¶
type LbAddDelVipReply struct {
Retval int32
}
LbAddDelVipReply represents VPP binary API message 'lb_add_del_vip_reply'.
func (*LbAddDelVipReply) GetCrcString ¶
func (*LbAddDelVipReply) GetCrcString() string
func (*LbAddDelVipReply) GetMessageName ¶
func (*LbAddDelVipReply) GetMessageName() string
func (*LbAddDelVipReply) GetMessageType ¶
func (*LbAddDelVipReply) GetMessageType() api.MessageType
func (*LbAddDelVipReply) Reset ¶
func (m *LbAddDelVipReply) Reset()
type LbConf ¶
type LbConf struct { IP4SrcAddress IP4Address IP6SrcAddress IP6Address StickyBucketsPerCore uint32 FlowTimeout uint32 }
LbConf represents VPP binary API message 'lb_conf'.
func (*LbConf) GetCrcString ¶
func (*LbConf) GetMessageName ¶
func (*LbConf) GetMessageType ¶
func (*LbConf) GetMessageType() api.MessageType
type LbConfReply ¶
type LbConfReply struct {
Retval int32
}
LbConfReply represents VPP binary API message 'lb_conf_reply'.
func (*LbConfReply) GetCrcString ¶
func (*LbConfReply) GetCrcString() string
func (*LbConfReply) GetMessageName ¶
func (*LbConfReply) GetMessageName() string
func (*LbConfReply) GetMessageType ¶
func (*LbConfReply) GetMessageType() api.MessageType
func (*LbConfReply) Reset ¶
func (m *LbConfReply) Reset()
type LbFlushVip ¶
type LbFlushVip struct { IPPrefix []byte `struc:"[16]byte"` PrefixLength uint8 Protocol uint8 Port uint16 }
LbFlushVip represents VPP binary API message 'lb_flush_vip'.
func (*LbFlushVip) GetCrcString ¶
func (*LbFlushVip) GetCrcString() string
func (*LbFlushVip) GetMessageName ¶
func (*LbFlushVip) GetMessageName() string
func (*LbFlushVip) GetMessageType ¶
func (*LbFlushVip) GetMessageType() api.MessageType
func (*LbFlushVip) Reset ¶
func (m *LbFlushVip) Reset()
type LbFlushVipReply ¶
type LbFlushVipReply struct {
Retval int32
}
LbFlushVipReply represents VPP binary API message 'lb_flush_vip_reply'.
func (*LbFlushVipReply) GetCrcString ¶
func (*LbFlushVipReply) GetCrcString() string
func (*LbFlushVipReply) GetMessageName ¶
func (*LbFlushVipReply) GetMessageName() string
func (*LbFlushVipReply) GetMessageType ¶
func (*LbFlushVipReply) GetMessageType() api.MessageType
func (*LbFlushVipReply) Reset ¶
func (m *LbFlushVipReply) Reset()
type Mprefix ¶
type Mprefix struct { Af AddressFamily GrpAddressLength uint16 GrpAddress AddressUnion SrcAddress AddressUnion }
Mprefix represents VPP binary API type 'mprefix'.
func (*Mprefix) GetCrcString ¶
func (*Mprefix) GetTypeName ¶
type Prefix ¶
Prefix represents VPP binary API type 'prefix'.
func (*Prefix) GetCrcString ¶
func (*Prefix) GetTypeName ¶
type RPCService ¶
type RPCService interface { LbAddDelAs(ctx context.Context, in *LbAddDelAs) (*LbAddDelAsReply, error) LbAddDelVip(ctx context.Context, in *LbAddDelVip) (*LbAddDelVipReply, error) LbConf(ctx context.Context, in *LbConf) (*LbConfReply, error) LbFlushVip(ctx context.Context, in *LbFlushVip) (*LbFlushVipReply, error) }
RPCService represents RPC service API for lb module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService