Documentation
¶
Overview ¶
Package lb contains generated bindings for API file lb.api.
Contents: - 18 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type LbAddDelAs
- func (*LbAddDelAs) GetCrcString() string
- func (*LbAddDelAs) GetMessageName() string
- func (*LbAddDelAs) GetMessageType() api.MessageType
- func (m *LbAddDelAs) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelAs) Reset()
- func (m *LbAddDelAs) Size() (size int)
- func (m *LbAddDelAs) Unmarshal(b []byte) error
- type LbAddDelAsReply
- func (*LbAddDelAsReply) GetCrcString() string
- func (*LbAddDelAsReply) GetMessageName() string
- func (*LbAddDelAsReply) GetMessageType() api.MessageType
- func (m *LbAddDelAsReply) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelAsReply) Reset()
- func (m *LbAddDelAsReply) Size() (size int)
- func (m *LbAddDelAsReply) Unmarshal(b []byte) error
- type LbAddDelIntfNat4
- func (*LbAddDelIntfNat4) GetCrcString() string
- func (*LbAddDelIntfNat4) GetMessageName() string
- func (*LbAddDelIntfNat4) GetMessageType() api.MessageType
- func (m *LbAddDelIntfNat4) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelIntfNat4) Reset()
- func (m *LbAddDelIntfNat4) Size() (size int)
- func (m *LbAddDelIntfNat4) Unmarshal(b []byte) error
- type LbAddDelIntfNat4Reply
- func (*LbAddDelIntfNat4Reply) GetCrcString() string
- func (*LbAddDelIntfNat4Reply) GetMessageName() string
- func (*LbAddDelIntfNat4Reply) GetMessageType() api.MessageType
- func (m *LbAddDelIntfNat4Reply) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelIntfNat4Reply) Reset()
- func (m *LbAddDelIntfNat4Reply) Size() (size int)
- func (m *LbAddDelIntfNat4Reply) Unmarshal(b []byte) error
- type LbAddDelIntfNat6
- func (*LbAddDelIntfNat6) GetCrcString() string
- func (*LbAddDelIntfNat6) GetMessageName() string
- func (*LbAddDelIntfNat6) GetMessageType() api.MessageType
- func (m *LbAddDelIntfNat6) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelIntfNat6) Reset()
- func (m *LbAddDelIntfNat6) Size() (size int)
- func (m *LbAddDelIntfNat6) Unmarshal(b []byte) error
- type LbAddDelIntfNat6Reply
- func (*LbAddDelIntfNat6Reply) GetCrcString() string
- func (*LbAddDelIntfNat6Reply) GetMessageName() string
- func (*LbAddDelIntfNat6Reply) GetMessageType() api.MessageType
- func (m *LbAddDelIntfNat6Reply) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelIntfNat6Reply) Reset()
- func (m *LbAddDelIntfNat6Reply) Size() (size int)
- func (m *LbAddDelIntfNat6Reply) Unmarshal(b []byte) error
- type LbAddDelVip
- func (*LbAddDelVip) GetCrcString() string
- func (*LbAddDelVip) GetMessageName() string
- func (*LbAddDelVip) GetMessageType() api.MessageType
- func (m *LbAddDelVip) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelVip) Reset()
- func (m *LbAddDelVip) Size() (size int)
- func (m *LbAddDelVip) Unmarshal(b []byte) error
- type LbAddDelVipReply
- func (*LbAddDelVipReply) GetCrcString() string
- func (*LbAddDelVipReply) GetMessageName() string
- func (*LbAddDelVipReply) GetMessageType() api.MessageType
- func (m *LbAddDelVipReply) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelVipReply) Reset()
- func (m *LbAddDelVipReply) Size() (size int)
- func (m *LbAddDelVipReply) Unmarshal(b []byte) error
- type LbAddDelVipV2
- func (*LbAddDelVipV2) GetCrcString() string
- func (*LbAddDelVipV2) GetMessageName() string
- func (*LbAddDelVipV2) GetMessageType() api.MessageType
- func (m *LbAddDelVipV2) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelVipV2) Reset()
- func (m *LbAddDelVipV2) Size() (size int)
- func (m *LbAddDelVipV2) Unmarshal(b []byte) error
- type LbAddDelVipV2Reply
- func (*LbAddDelVipV2Reply) GetCrcString() string
- func (*LbAddDelVipV2Reply) GetMessageName() string
- func (*LbAddDelVipV2Reply) GetMessageType() api.MessageType
- func (m *LbAddDelVipV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *LbAddDelVipV2Reply) Reset()
- func (m *LbAddDelVipV2Reply) Size() (size int)
- func (m *LbAddDelVipV2Reply) Unmarshal(b []byte) error
- type LbAsDetails
- func (*LbAsDetails) GetCrcString() string
- func (*LbAsDetails) GetMessageName() string
- func (*LbAsDetails) GetMessageType() api.MessageType
- func (m *LbAsDetails) Marshal(b []byte) ([]byte, error)
- func (m *LbAsDetails) Reset()
- func (m *LbAsDetails) Size() (size int)
- func (m *LbAsDetails) Unmarshal(b []byte) error
- type LbAsDump
- type LbConf
- type LbConfReply
- func (*LbConfReply) GetCrcString() string
- func (*LbConfReply) GetMessageName() string
- func (*LbConfReply) GetMessageType() api.MessageType
- func (m *LbConfReply) Marshal(b []byte) ([]byte, error)
- func (m *LbConfReply) Reset()
- func (m *LbConfReply) Size() (size int)
- func (m *LbConfReply) Unmarshal(b []byte) error
- type LbFlushVip
- func (*LbFlushVip) GetCrcString() string
- func (*LbFlushVip) GetMessageName() string
- func (*LbFlushVip) GetMessageType() api.MessageType
- func (m *LbFlushVip) Marshal(b []byte) ([]byte, error)
- func (m *LbFlushVip) Reset()
- func (m *LbFlushVip) Size() (size int)
- func (m *LbFlushVip) Unmarshal(b []byte) error
- type LbFlushVipReply
- func (*LbFlushVipReply) GetCrcString() string
- func (*LbFlushVipReply) GetMessageName() string
- func (*LbFlushVipReply) GetMessageType() api.MessageType
- func (m *LbFlushVipReply) Marshal(b []byte) ([]byte, error)
- func (m *LbFlushVipReply) Reset()
- func (m *LbFlushVipReply) Size() (size int)
- func (m *LbFlushVipReply) Unmarshal(b []byte) error
- type LbVipDetails
- func (*LbVipDetails) GetCrcString() string
- func (*LbVipDetails) GetMessageName() string
- func (*LbVipDetails) GetMessageType() api.MessageType
- func (m *LbVipDetails) Marshal(b []byte) ([]byte, error)
- func (m *LbVipDetails) Reset()
- func (m *LbVipDetails) Size() (size int)
- func (m *LbVipDetails) Unmarshal(b []byte) error
- type LbVipDump
- type RPCService
- type RPCService_LbAsDumpClient
- type RPCService_LbVipDumpClient
Constants ¶
const ( APIFile = "lb" APIVersion = "1.1.0" VersionCrc = 0x49e3c1c1 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type LbAddDelAs ¶
type LbAddDelAs struct { Pfx ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"` Protocol uint8 `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` AsAddress ip_types.Address `binapi:"address,name=as_address" json:"as_address,omitempty"` IsDel bool `binapi:"bool,name=is_del" json:"is_del,omitempty"` IsFlush bool `binapi:"bool,name=is_flush" json:"is_flush,omitempty"` }
Add an application server for a given VIP
- pfx - ip prefix and length
- protocol - tcp or udp.
- port - destination port.
- as_address - The application server address (IPv4 in lower order 32 bits).
- is_del - The AS should be removed.
- is_flush - The sessions related to this AS should be flushed.
LbAddDelAs defines 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()
func (*LbAddDelAs) Size ¶
func (m *LbAddDelAs) Size() (size int)
func (*LbAddDelAs) Unmarshal ¶
func (m *LbAddDelAs) Unmarshal(b []byte) error
type LbAddDelAsReply ¶
type LbAddDelAsReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbAddDelAsReply defines 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()
func (*LbAddDelAsReply) Size ¶
func (m *LbAddDelAsReply) Size() (size int)
func (*LbAddDelAsReply) Unmarshal ¶
func (m *LbAddDelAsReply) Unmarshal(b []byte) error
type LbAddDelIntfNat4 ¶
type LbAddDelIntfNat4 struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Enable/disable NAT4 feature on the interface
- is_add - true if add, false if delete
- sw_if_index - software index of the interface
LbAddDelIntfNat4 defines message 'lb_add_del_intf_nat4'.
func (*LbAddDelIntfNat4) GetCrcString ¶
func (*LbAddDelIntfNat4) GetCrcString() string
func (*LbAddDelIntfNat4) GetMessageName ¶
func (*LbAddDelIntfNat4) GetMessageName() string
func (*LbAddDelIntfNat4) GetMessageType ¶
func (*LbAddDelIntfNat4) GetMessageType() api.MessageType
func (*LbAddDelIntfNat4) Reset ¶
func (m *LbAddDelIntfNat4) Reset()
func (*LbAddDelIntfNat4) Size ¶
func (m *LbAddDelIntfNat4) Size() (size int)
func (*LbAddDelIntfNat4) Unmarshal ¶
func (m *LbAddDelIntfNat4) Unmarshal(b []byte) error
type LbAddDelIntfNat4Reply ¶
type LbAddDelIntfNat4Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbAddDelIntfNat4Reply defines message 'lb_add_del_intf_nat4_reply'.
func (*LbAddDelIntfNat4Reply) GetCrcString ¶
func (*LbAddDelIntfNat4Reply) GetCrcString() string
func (*LbAddDelIntfNat4Reply) GetMessageName ¶
func (*LbAddDelIntfNat4Reply) GetMessageName() string
func (*LbAddDelIntfNat4Reply) GetMessageType ¶
func (*LbAddDelIntfNat4Reply) GetMessageType() api.MessageType
func (*LbAddDelIntfNat4Reply) Marshal ¶
func (m *LbAddDelIntfNat4Reply) Marshal(b []byte) ([]byte, error)
func (*LbAddDelIntfNat4Reply) Reset ¶
func (m *LbAddDelIntfNat4Reply) Reset()
func (*LbAddDelIntfNat4Reply) Size ¶
func (m *LbAddDelIntfNat4Reply) Size() (size int)
func (*LbAddDelIntfNat4Reply) Unmarshal ¶
func (m *LbAddDelIntfNat4Reply) Unmarshal(b []byte) error
type LbAddDelIntfNat6 ¶
type LbAddDelIntfNat6 struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Enable/disable NAT6 feature on the interface
- is_add - true if add, false if delete
- sw_if_index - software index of the interface
LbAddDelIntfNat6 defines message 'lb_add_del_intf_nat6'.
func (*LbAddDelIntfNat6) GetCrcString ¶
func (*LbAddDelIntfNat6) GetCrcString() string
func (*LbAddDelIntfNat6) GetMessageName ¶
func (*LbAddDelIntfNat6) GetMessageName() string
func (*LbAddDelIntfNat6) GetMessageType ¶
func (*LbAddDelIntfNat6) GetMessageType() api.MessageType
func (*LbAddDelIntfNat6) Reset ¶
func (m *LbAddDelIntfNat6) Reset()
func (*LbAddDelIntfNat6) Size ¶
func (m *LbAddDelIntfNat6) Size() (size int)
func (*LbAddDelIntfNat6) Unmarshal ¶
func (m *LbAddDelIntfNat6) Unmarshal(b []byte) error
type LbAddDelIntfNat6Reply ¶
type LbAddDelIntfNat6Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbAddDelIntfNat6Reply defines message 'lb_add_del_intf_nat6_reply'.
func (*LbAddDelIntfNat6Reply) GetCrcString ¶
func (*LbAddDelIntfNat6Reply) GetCrcString() string
func (*LbAddDelIntfNat6Reply) GetMessageName ¶
func (*LbAddDelIntfNat6Reply) GetMessageName() string
func (*LbAddDelIntfNat6Reply) GetMessageType ¶
func (*LbAddDelIntfNat6Reply) GetMessageType() api.MessageType
func (*LbAddDelIntfNat6Reply) Marshal ¶
func (m *LbAddDelIntfNat6Reply) Marshal(b []byte) ([]byte, error)
func (*LbAddDelIntfNat6Reply) Reset ¶
func (m *LbAddDelIntfNat6Reply) Reset()
func (*LbAddDelIntfNat6Reply) Size ¶
func (m *LbAddDelIntfNat6Reply) Size() (size int)
func (*LbAddDelIntfNat6Reply) Unmarshal ¶
func (m *LbAddDelIntfNat6Reply) Unmarshal(b []byte) error
type LbAddDelVip ¶
type LbAddDelVip struct { Pfx ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"` Protocol uint8 `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` Encap lb_types.LbEncapType `binapi:"lb_encap_type,name=encap" json:"encap,omitempty"` Dscp uint8 `binapi:"u8,name=dscp" json:"dscp,omitempty"` Type lb_types.LbSrvType `binapi:"lb_srv_type,name=type" json:"type,omitempty"` TargetPort uint16 `binapi:"u16,name=target_port" json:"target_port,omitempty"` NodePort uint16 `binapi:"u16,name=node_port" json:"node_port,omitempty"` NewFlowsTableLength uint32 `binapi:"u32,name=new_flows_table_length,default=1024" json:"new_flows_table_length,omitempty"` IsDel bool `binapi:"bool,name=is_del" json:"is_del,omitempty"` }
Add a virtual address (or prefix)
- pfx - ip prefix and length
- protocol - tcp or udp.
- port - destination port. (0) means 'all-port VIP'
- encap - Encap is ip4 GRE(0) or ip6 GRE(1) or L3DSR(2) or NAT4(3) or NAT6(4).
- dscp - DSCP bit corresponding to VIP(applicable in L3DSR mode only).
- type - service type(applicable in NAT4/NAT6 mode only).
- target_port - Pod's port corresponding to specific service(applicable in NAT4/NAT6 mode only).
- node_port - Node's port(applicable in NAT4/NAT6 mode only).
- new_flows_table_length - Size of the new connections flow table used for this VIP (must be power of 2).
- is_del - The VIP should be removed.
LbAddDelVip defines 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()
func (*LbAddDelVip) Size ¶
func (m *LbAddDelVip) Size() (size int)
func (*LbAddDelVip) Unmarshal ¶
func (m *LbAddDelVip) Unmarshal(b []byte) error
type LbAddDelVipReply ¶
type LbAddDelVipReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbAddDelVipReply defines 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()
func (*LbAddDelVipReply) Size ¶
func (m *LbAddDelVipReply) Size() (size int)
func (*LbAddDelVipReply) Unmarshal ¶
func (m *LbAddDelVipReply) Unmarshal(b []byte) error
type LbAddDelVipV2 ¶ added in v0.8.0
type LbAddDelVipV2 struct { Pfx ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"` Protocol uint8 `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` Encap lb_types.LbEncapType `binapi:"lb_encap_type,name=encap" json:"encap,omitempty"` Dscp uint8 `binapi:"u8,name=dscp" json:"dscp,omitempty"` Type lb_types.LbSrvType `binapi:"lb_srv_type,name=type" json:"type,omitempty"` TargetPort uint16 `binapi:"u16,name=target_port" json:"target_port,omitempty"` NodePort uint16 `binapi:"u16,name=node_port" json:"node_port,omitempty"` NewFlowsTableLength uint32 `binapi:"u32,name=new_flows_table_length,default=1024" json:"new_flows_table_length,omitempty"` SrcIPSticky bool `binapi:"bool,name=src_ip_sticky" json:"src_ip_sticky,omitempty"` IsDel bool `binapi:"bool,name=is_del" json:"is_del,omitempty"` }
Add a virtual address (or prefix)
- pfx - ip prefix and length
- protocol - tcp or udp.
- port - destination port. (0) means 'all-port VIP'
- encap - Encap is ip4 GRE(0) or ip6 GRE(1) or L3DSR(2) or NAT4(3) or NAT6(4).
- dscp - DSCP bit corresponding to VIP(applicable in L3DSR mode only).
- type - service type(applicable in NAT4/NAT6 mode only).
- target_port - Pod's port corresponding to specific service(applicable in NAT4/NAT6 mode only).
- node_port - Node's port(applicable in NAT4/NAT6 mode only).
- new_flows_table_length - Size of the new connections flow table used for this VIP (must be power of 2).
- src_ip_sticky - source ip based sticky session.
- is_del - The VIP should be removed.
LbAddDelVipV2 defines message 'lb_add_del_vip_v2'.
func (*LbAddDelVipV2) GetCrcString ¶ added in v0.8.0
func (*LbAddDelVipV2) GetCrcString() string
func (*LbAddDelVipV2) GetMessageName ¶ added in v0.8.0
func (*LbAddDelVipV2) GetMessageName() string
func (*LbAddDelVipV2) GetMessageType ¶ added in v0.8.0
func (*LbAddDelVipV2) GetMessageType() api.MessageType
func (*LbAddDelVipV2) Marshal ¶ added in v0.8.0
func (m *LbAddDelVipV2) Marshal(b []byte) ([]byte, error)
func (*LbAddDelVipV2) Reset ¶ added in v0.8.0
func (m *LbAddDelVipV2) Reset()
func (*LbAddDelVipV2) Size ¶ added in v0.8.0
func (m *LbAddDelVipV2) Size() (size int)
func (*LbAddDelVipV2) Unmarshal ¶ added in v0.8.0
func (m *LbAddDelVipV2) Unmarshal(b []byte) error
type LbAddDelVipV2Reply ¶ added in v0.8.0
type LbAddDelVipV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbAddDelVipV2Reply defines message 'lb_add_del_vip_v2_reply'.
func (*LbAddDelVipV2Reply) GetCrcString ¶ added in v0.8.0
func (*LbAddDelVipV2Reply) GetCrcString() string
func (*LbAddDelVipV2Reply) GetMessageName ¶ added in v0.8.0
func (*LbAddDelVipV2Reply) GetMessageName() string
func (*LbAddDelVipV2Reply) GetMessageType ¶ added in v0.8.0
func (*LbAddDelVipV2Reply) GetMessageType() api.MessageType
func (*LbAddDelVipV2Reply) Marshal ¶ added in v0.8.0
func (m *LbAddDelVipV2Reply) Marshal(b []byte) ([]byte, error)
func (*LbAddDelVipV2Reply) Reset ¶ added in v0.8.0
func (m *LbAddDelVipV2Reply) Reset()
func (*LbAddDelVipV2Reply) Size ¶ added in v0.8.0
func (m *LbAddDelVipV2Reply) Size() (size int)
func (*LbAddDelVipV2Reply) Unmarshal ¶ added in v0.8.0
func (m *LbAddDelVipV2Reply) Unmarshal(b []byte) error
type LbAsDetails ¶
type LbAsDetails struct { Vip lb_types.LbVip `binapi:"lb_vip,name=vip" json:"vip,omitempty"` AppSrv ip_types.Address `binapi:"address,name=app_srv" json:"app_srv,omitempty"` Flags uint8 `binapi:"u8,name=flags" json:"flags,omitempty"` InUseSince uint32 `binapi:"u32,name=in_use_since" json:"in_use_since,omitempty"` }
lb_as_details
- as - AS detail record
LbAsDetails defines message 'lb_as_details'.
func (*LbAsDetails) GetCrcString ¶
func (*LbAsDetails) GetCrcString() string
func (*LbAsDetails) GetMessageName ¶
func (*LbAsDetails) GetMessageName() string
func (*LbAsDetails) GetMessageType ¶
func (*LbAsDetails) GetMessageType() api.MessageType
func (*LbAsDetails) Reset ¶
func (m *LbAsDetails) Reset()
func (*LbAsDetails) Size ¶
func (m *LbAsDetails) Size() (size int)
func (*LbAsDetails) Unmarshal ¶
func (m *LbAsDetails) Unmarshal(b []byte) error
type LbAsDump ¶
type LbAsDump struct { Pfx ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"` Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` }
dump AS list per VIP or all ASs for all VIPs
- pfx - ip prefix and length.
- protocol - tcp or udp.
- port - destination port.
LbAsDump defines message 'lb_as_dump'.
func (*LbAsDump) GetCrcString ¶
func (*LbAsDump) GetMessageName ¶
func (*LbAsDump) GetMessageType ¶
func (*LbAsDump) GetMessageType() api.MessageType
type LbConf ¶
type LbConf struct { IP4SrcAddress ip_types.IP4Address `binapi:"ip4_address,name=ip4_src_address" json:"ip4_src_address,omitempty"` IP6SrcAddress ip_types.IP6Address `binapi:"ip6_address,name=ip6_src_address" json:"ip6_src_address,omitempty"` StickyBucketsPerCore uint32 `binapi:"u32,name=sticky_buckets_per_core,default=4294967295" json:"sticky_buckets_per_core,omitempty"` FlowTimeout uint32 `binapi:"u32,name=flow_timeout,default=4294967295" json:"flow_timeout,omitempty"` }
Configure Load-Balancer global parameters (unlike the CLI, both ip4_src_address and ip6_src_address need to be specified.
- ip4_src_address - IPv4 address to be used as source for IPv4 traffic(applicable in GRE4/GRE6/NAT4/NAT6 mode only).
- ip6_src_address - IPv6 address to be used as source for IPv6 traffic(applicable in GRE4/GRE6/NAT4/NAT6 mode only).
- sticky_buckets_per_core - Number of buckets *per worker thread* in the established flow table (must be power of 2).
- flow_timeout - Time in seconds after which, if no packet is received for a given flow, the flow is removed from the established flow table.
LbConf defines message 'lb_conf'.
func (*LbConf) GetCrcString ¶
func (*LbConf) GetMessageName ¶
func (*LbConf) GetMessageType ¶
func (*LbConf) GetMessageType() api.MessageType
type LbConfReply ¶
type LbConfReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbConfReply defines 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()
func (*LbConfReply) Size ¶
func (m *LbConfReply) Size() (size int)
func (*LbConfReply) Unmarshal ¶
func (m *LbConfReply) Unmarshal(b []byte) error
type LbFlushVip ¶
type LbFlushVip struct { Pfx ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"` Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` }
Flush a given vip
- pfx - ip prefix and length
- protocol - tcp or udp.
- port - destination port.
LbFlushVip defines 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()
func (*LbFlushVip) Size ¶
func (m *LbFlushVip) Size() (size int)
func (*LbFlushVip) Unmarshal ¶
func (m *LbFlushVip) Unmarshal(b []byte) error
type LbFlushVipReply ¶
type LbFlushVipReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LbFlushVipReply defines 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()
func (*LbFlushVipReply) Size ¶
func (m *LbFlushVipReply) Size() (size int)
func (*LbFlushVipReply) Unmarshal ¶
func (m *LbFlushVipReply) Unmarshal(b []byte) error
type LbVipDetails ¶
type LbVipDetails struct { Vip lb_types.LbVip `binapi:"lb_vip,name=vip" json:"vip,omitempty"` Encap lb_types.LbEncapType `binapi:"lb_encap_type,name=encap" json:"encap,omitempty"` Dscp ip_types.IPDscp `binapi:"ip_dscp,name=dscp" json:"dscp,omitempty"` SrvType lb_types.LbSrvType `binapi:"lb_srv_type,name=srv_type" json:"srv_type,omitempty"` TargetPort uint16 `binapi:"u16,name=target_port" json:"target_port,omitempty"` FlowTableLength uint16 `binapi:"u16,name=flow_table_length" json:"flow_table_length,omitempty"` }
Reply all configured vip
- vip - all vip addrs.
LbVipDetails defines message 'lb_vip_details'.
func (*LbVipDetails) GetCrcString ¶
func (*LbVipDetails) GetCrcString() string
func (*LbVipDetails) GetMessageName ¶
func (*LbVipDetails) GetMessageName() string
func (*LbVipDetails) GetMessageType ¶
func (*LbVipDetails) GetMessageType() api.MessageType
func (*LbVipDetails) Reset ¶
func (m *LbVipDetails) Reset()
func (*LbVipDetails) Size ¶
func (m *LbVipDetails) Size() (size int)
func (*LbVipDetails) Unmarshal ¶
func (m *LbVipDetails) Unmarshal(b []byte) error
type LbVipDump ¶
type LbVipDump struct { Pfx ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"` PfxMatcher ip_types.PrefixMatcher `binapi:"prefix_matcher,name=pfx_matcher" json:"pfx_matcher,omitempty"` Protocol uint8 `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` }
Dump all vips LbVipDump defines message 'lb_vip_dump'.
func (*LbVipDump) GetCrcString ¶
func (*LbVipDump) GetMessageName ¶
func (*LbVipDump) GetMessageType ¶
func (*LbVipDump) GetMessageType() api.MessageType
type RPCService ¶
type RPCService interface { LbAddDelAs(ctx context.Context, in *LbAddDelAs) (*LbAddDelAsReply, error) LbAddDelIntfNat4(ctx context.Context, in *LbAddDelIntfNat4) (*LbAddDelIntfNat4Reply, error) LbAddDelIntfNat6(ctx context.Context, in *LbAddDelIntfNat6) (*LbAddDelIntfNat6Reply, error) LbAddDelVip(ctx context.Context, in *LbAddDelVip) (*LbAddDelVipReply, error) LbAddDelVipV2(ctx context.Context, in *LbAddDelVipV2) (*LbAddDelVipV2Reply, error) LbAsDump(ctx context.Context, in *LbAsDump) (RPCService_LbAsDumpClient, error) LbConf(ctx context.Context, in *LbConf) (*LbConfReply, error) LbFlushVip(ctx context.Context, in *LbFlushVip) (*LbFlushVipReply, error) LbVipDump(ctx context.Context, in *LbVipDump) (RPCService_LbVipDumpClient, error) }
RPCService defines RPC service lb.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_LbAsDumpClient ¶
type RPCService_LbAsDumpClient interface { Recv() (*LbAsDetails, error) api.Stream }
type RPCService_LbVipDumpClient ¶
type RPCService_LbVipDumpClient interface { Recv() (*LbVipDetails, error) api.Stream }