Versions in this module Expand all Collapse all v0 v0.4.0 Jan 17, 2022 Changes in this version + const APIFile + const APIVersion + const VersionCrc + var AddressFamily_name = map[uint32]string + var AddressFamily_value = map[string]uint32 + var IPDscp_name = map[uint8]string + var IPDscp_value = map[string]uint8 + var IPEcn_name = map[uint8]string + var IPEcn_value = map[string]uint8 + var IPProto_name = map[uint32]string + var IPProto_value = map[string]uint32 + var IfStatusFlags_name = map[uint32]string + var IfStatusFlags_value = map[string]uint32 + var IfType_name = map[uint32]string + var IfType_value = map[string]uint32 + var LbEncapType_name = map[uint32]string + var LbEncapType_value = map[string]uint32 + var LbLkpTypeT_name = map[uint32]string + var LbLkpTypeT_value = map[string]uint32 + var LbNatProtocol_name = map[uint32]string + var LbNatProtocol_value = map[string]uint32 + var LbSrvType_name = map[uint32]string + var LbSrvType_value = map[string]uint32 + var LbVipType_name = map[uint32]string + var LbVipType_value = map[string]uint32 + var LinkDuplex_name = map[uint32]string + var LinkDuplex_value = map[string]uint32 + var MtuProto_name = map[uint32]string + var MtuProto_value = map[string]uint32 + var RxMode_name = map[uint32]string + var RxMode_value = map[string]uint32 + var SubIfFlags_name = map[uint32]string + var SubIfFlags_value = map[string]uint32 + func AllMessages() []api.Message + type Address struct + Af AddressFamily + Un AddressUnion + func ParseAddress(s string) (Address, error) + func (x *Address) MarshalText() ([]byte, error) + func (x *Address) UnmarshalText(text []byte) error + func (x Address) String() string + func (x Address) ToIP() net.IP + type AddressFamily uint32 + const ADDRESS_IP4 + const ADDRESS_IP6 + func (x AddressFamily) String() string + type AddressUnion struct + XXX_UnionData [16]byte + func AddressUnionIP4(a IP4Address) (u AddressUnion) + func AddressUnionIP6(a IP6Address) (u AddressUnion) + func (u *AddressUnion) GetIP4() (a IP4Address) + func (u *AddressUnion) GetIP6() (a IP6Address) + func (u *AddressUnion) SetIP4(a IP4Address) + func (u *AddressUnion) SetIP6(a IP6Address) + type AddressWithPrefix Prefix + func ParseAddressWithPrefix(s string) (AddressWithPrefix, error) + func (x *AddressWithPrefix) MarshalText() ([]byte, error) + func (x *AddressWithPrefix) UnmarshalText(text []byte) error + func (x AddressWithPrefix) String() string + type IP4Address [4]uint8 + func ParseIP4Address(s string) (IP4Address, error) + func (x *IP4Address) MarshalText() ([]byte, error) + func (x *IP4Address) UnmarshalText(text []byte) error + func (x IP4Address) String() string + func (x IP4Address) ToIP() net.IP + type IP4AddressWithPrefix IP4Prefix + type IP4Prefix struct + Address IP4Address + Len uint8 + func ParseIP4Prefix(s string) (prefix IP4Prefix, err error) + func (x *IP4Prefix) MarshalText() ([]byte, error) + func (x *IP4Prefix) UnmarshalText(text []byte) error + func (x IP4Prefix) String() string + func (x IP4Prefix) ToIPNet() *net.IPNet + type IP6Address [16]uint8 + func ParseIP6Address(s string) (IP6Address, error) + func (x *IP6Address) MarshalText() ([]byte, error) + func (x *IP6Address) UnmarshalText(text []byte) error + func (x IP6Address) String() string + func (x IP6Address) ToIP() net.IP + type IP6AddressWithPrefix IP6Prefix + type IP6Prefix struct + Address IP6Address + Len uint8 + func ParseIP6Prefix(s string) (prefix IP6Prefix, err error) + func (x *IP6Prefix) MarshalText() ([]byte, error) + func (x *IP6Prefix) UnmarshalText(text []byte) error + func (x IP6Prefix) String() string + func (x IP6Prefix) ToIPNet() *net.IPNet + type IPDscp uint8 + const IP_API_DSCP_AF11 + const IP_API_DSCP_AF12 + const IP_API_DSCP_AF13 + const IP_API_DSCP_AF21 + const IP_API_DSCP_AF22 + const IP_API_DSCP_AF23 + const IP_API_DSCP_AF31 + const IP_API_DSCP_AF32 + const IP_API_DSCP_AF33 + const IP_API_DSCP_AF41 + const IP_API_DSCP_AF42 + const IP_API_DSCP_AF43 + const IP_API_DSCP_CS0 + const IP_API_DSCP_CS1 + const IP_API_DSCP_CS2 + const IP_API_DSCP_CS3 + const IP_API_DSCP_CS4 + const IP_API_DSCP_CS5 + const IP_API_DSCP_CS6 + const IP_API_DSCP_CS7 + const IP_API_DSCP_EF + func (x IPDscp) String() string + type IPEcn uint8 + const IP_API_ECN_CE + const IP_API_ECN_ECT0 + const IP_API_ECN_ECT1 + const IP_API_ECN_NONE + func (x IPEcn) String() string + type IPProto uint32 + const IP_API_PROTO_AH + const IP_API_PROTO_EIGRP + const IP_API_PROTO_ESP + const IP_API_PROTO_GRE + const IP_API_PROTO_HOPOPT + const IP_API_PROTO_ICMP + const IP_API_PROTO_IGMP + const IP_API_PROTO_OSPF + const IP_API_PROTO_RESERVED + const IP_API_PROTO_SCTP + const IP_API_PROTO_TCP + const IP_API_PROTO_UDP + func (x IPProto) String() string + type IfStatusFlags uint32 + const IF_STATUS_API_FLAG_ADMIN_UP + const IF_STATUS_API_FLAG_LINK_UP + func (x IfStatusFlags) String() string + type IfType uint32 + const IF_API_TYPE_HARDWARE + const IF_API_TYPE_P2P + const IF_API_TYPE_PIPE + const IF_API_TYPE_SUB + func (x IfType) String() string + type InterfaceIndex uint32 + type LbAddDelAs struct + AsAddress Address + IsDel bool + IsFlush bool + Pfx AddressWithPrefix + Port uint16 + Protocol uint8 + 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 struct + Retval int32 + 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 struct + IsAdd bool + SwIfIndex InterfaceIndex + 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 struct + Retval int32 + 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 struct + IsAdd bool + SwIfIndex InterfaceIndex + 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 struct + Retval int32 + 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 struct + Dscp uint8 + Encap LbEncapType + IsDel bool + NewFlowsTableLength uint32 + NodePort uint16 + Pfx AddressWithPrefix + Port uint16 + Protocol uint8 + TargetPort uint16 + Type LbSrvType + 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 struct + Retval int32 + 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 LbAsDetails struct + AppSrv Address + Flags uint8 + InUseSince uint32 + Vip LbVip + 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 struct + Pfx AddressWithPrefix + Port uint16 + Protocol uint8 + func (*LbAsDump) GetCrcString() string + func (*LbAsDump) GetMessageName() string + func (*LbAsDump) GetMessageType() api.MessageType + func (m *LbAsDump) Marshal(b []byte) ([]byte, error) + func (m *LbAsDump) Reset() + func (m *LbAsDump) Size() (size int) + func (m *LbAsDump) Unmarshal(b []byte) error + type LbConf struct + FlowTimeout uint32 + IP4SrcAddress IP4Address + IP6SrcAddress IP6Address + StickyBucketsPerCore uint32 + func (*LbConf) GetCrcString() string + func (*LbConf) GetMessageName() string + func (*LbConf) GetMessageType() api.MessageType + func (m *LbConf) Marshal(b []byte) ([]byte, error) + func (m *LbConf) Reset() + func (m *LbConf) Size() (size int) + func (m *LbConf) Unmarshal(b []byte) error + type LbConfReply struct + Retval int32 + 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 LbEncapType uint32 + const LB_API_ENCAP_N_TYPES + const LB_API_ENCAP_TYPE_GRE4 + const LB_API_ENCAP_TYPE_GRE6 + const LB_API_ENCAP_TYPE_L3DSR + const LB_API_ENCAP_TYPE_NAT4 + const LB_API_ENCAP_TYPE_NAT6 + func (x LbEncapType) String() string + type LbFlushVip struct + Pfx AddressWithPrefix + Port uint16 + Protocol uint8 + 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 struct + Retval int32 + 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 LbLkpTypeT uint32 + const LB_API_LKP_ALL_PORT_IP + const LB_API_LKP_DIFF_IP_PORT + const LB_API_LKP_N_TYPES + const LB_API_LKP_SAME_IP_PORT + func (x LbLkpTypeT) String() string + type LbNatProtocol uint32 + const LB_API_NAT_PROTOCOL_ANY + const LB_API_NAT_PROTOCOL_TCP + const LB_API_NAT_PROTOCOL_UDP + func (x LbNatProtocol) String() string + type LbSrvType uint32 + const LB_API_SRV_N_TYPES + const LB_API_SRV_TYPE_CLUSTERIP + const LB_API_SRV_TYPE_NODEPORT + func (x LbSrvType) String() string + type LbVip struct + Pfx AddressWithPrefix + Port uint16 + Protocol IPProto + type LbVipDetails struct + Dscp IPDscp + Encap LbEncapType + FlowTableLength uint16 + SrvType LbSrvType + TargetPort uint16 + Vip LbVip + 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 struct + Pfx AddressWithPrefix + PfxMatcher PrefixMatcher + Port uint16 + Protocol uint8 + func (*LbVipDump) GetCrcString() string + func (*LbVipDump) GetMessageName() string + func (*LbVipDump) GetMessageType() api.MessageType + func (m *LbVipDump) Marshal(b []byte) ([]byte, error) + func (m *LbVipDump) Reset() + func (m *LbVipDump) Size() (size int) + func (m *LbVipDump) Unmarshal(b []byte) error + type LbVipType uint32 + const LB_API_VIP_N_TYPES + const LB_API_VIP_TYPE_IP4_GRE4 + const LB_API_VIP_TYPE_IP4_GRE6 + const LB_API_VIP_TYPE_IP4_L3DSR + const LB_API_VIP_TYPE_IP4_NAT4 + const LB_API_VIP_TYPE_IP6_GRE4 + const LB_API_VIP_TYPE_IP6_GRE6 + const LB_API_VIP_TYPE_IP6_NAT6 + func (x LbVipType) String() string + type LinkDuplex uint32 + const LINK_DUPLEX_API_FULL + const LINK_DUPLEX_API_HALF + const LINK_DUPLEX_API_UNKNOWN + func (x LinkDuplex) String() string + type Mprefix struct + Af AddressFamily + GrpAddress AddressUnion + GrpAddressLength uint16 + SrcAddress AddressUnion + type MtuProto uint32 + const MTU_PROTO_API_IP4 + const MTU_PROTO_API_IP6 + const MTU_PROTO_API_L3 + const MTU_PROTO_API_MPLS + const MTU_PROTO_API_N + func (x MtuProto) String() string + type Prefix struct + Address Address + Len uint8 + func ParsePrefix(ip string) (prefix Prefix, err error) + func (x *Prefix) MarshalText() ([]byte, error) + func (x *Prefix) UnmarshalText(text []byte) error + func (x Prefix) String() string + func (x Prefix) ToIPNet() *net.IPNet + type PrefixMatcher struct + Ge uint8 + Le uint8 + type RPCService interface + LbAddDelAs func(ctx context.Context, in *LbAddDelAs) (*LbAddDelAsReply, error) + LbAddDelIntfNat4 func(ctx context.Context, in *LbAddDelIntfNat4) (*LbAddDelIntfNat4Reply, error) + LbAddDelIntfNat6 func(ctx context.Context, in *LbAddDelIntfNat6) (*LbAddDelIntfNat6Reply, error) + LbAddDelVip func(ctx context.Context, in *LbAddDelVip) (*LbAddDelVipReply, error) + LbAsDump func(ctx context.Context, in *LbAsDump) (RPCService_LbAsDumpClient, error) + LbConf func(ctx context.Context, in *LbConf) (*LbConfReply, error) + LbFlushVip func(ctx context.Context, in *LbFlushVip) (*LbFlushVipReply, error) + LbVipDump func(ctx context.Context, in *LbVipDump) (RPCService_LbVipDumpClient, error) + func NewServiceClient(conn api.Connection) RPCService + type RPCService_LbAsDumpClient interface + Recv func() (*LbAsDetails, error) + type RPCService_LbVipDumpClient interface + Recv func() (*LbVipDetails, error) + type RxMode uint32 + const RX_MODE_API_ADAPTIVE + const RX_MODE_API_DEFAULT + const RX_MODE_API_INTERRUPT + const RX_MODE_API_POLLING + const RX_MODE_API_UNKNOWN + func (x RxMode) String() string + type SubIfFlags uint32 + const SUB_IF_API_FLAG_DEFAULT + const SUB_IF_API_FLAG_DOT1AD + const SUB_IF_API_FLAG_DOT1AH + const SUB_IF_API_FLAG_EXACT_MATCH + const SUB_IF_API_FLAG_INNER_VLAN_ID_ANY + const SUB_IF_API_FLAG_MASK_VNET + const SUB_IF_API_FLAG_NO_TAGS + const SUB_IF_API_FLAG_ONE_TAG + const SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY + const SUB_IF_API_FLAG_TWO_TAGS + func (x SubIfFlags) String() string