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 BondLbAlgo_name = map[uint32]string + var BondLbAlgo_value = map[string]uint32 + var BondMode_name = map[uint32]string + var BondMode_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 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 BondCreate struct + ID uint32 + Lb BondLbAlgo + MacAddress MacAddress + Mode BondMode + NumaOnly bool + UseCustomMac bool + func (*BondCreate) GetCrcString() string + func (*BondCreate) GetMessageName() string + func (*BondCreate) GetMessageType() api.MessageType + func (m *BondCreate) Marshal(b []byte) ([]byte, error) + func (m *BondCreate) Reset() + func (m *BondCreate) Size() (size int) + func (m *BondCreate) Unmarshal(b []byte) error + type BondCreateReply struct + Retval int32 + SwIfIndex InterfaceIndex + func (*BondCreateReply) GetCrcString() string + func (*BondCreateReply) GetMessageName() string + func (*BondCreateReply) GetMessageType() api.MessageType + func (m *BondCreateReply) Marshal(b []byte) ([]byte, error) + func (m *BondCreateReply) Reset() + func (m *BondCreateReply) Size() (size int) + func (m *BondCreateReply) Unmarshal(b []byte) error + type BondDelete struct + SwIfIndex InterfaceIndex + func (*BondDelete) GetCrcString() string + func (*BondDelete) GetMessageName() string + func (*BondDelete) GetMessageType() api.MessageType + func (m *BondDelete) Marshal(b []byte) ([]byte, error) + func (m *BondDelete) Reset() + func (m *BondDelete) Size() (size int) + func (m *BondDelete) Unmarshal(b []byte) error + type BondDeleteReply struct + Retval int32 + func (*BondDeleteReply) GetCrcString() string + func (*BondDeleteReply) GetMessageName() string + func (*BondDeleteReply) GetMessageType() api.MessageType + func (m *BondDeleteReply) Marshal(b []byte) ([]byte, error) + func (m *BondDeleteReply) Reset() + func (m *BondDeleteReply) Size() (size int) + func (m *BondDeleteReply) Unmarshal(b []byte) error + type BondDetachSlave struct + SwIfIndex InterfaceIndex + func (*BondDetachSlave) GetCrcString() string + func (*BondDetachSlave) GetMessageName() string + func (*BondDetachSlave) GetMessageType() api.MessageType + func (m *BondDetachSlave) Marshal(b []byte) ([]byte, error) + func (m *BondDetachSlave) Reset() + func (m *BondDetachSlave) Size() (size int) + func (m *BondDetachSlave) Unmarshal(b []byte) error + type BondDetachSlaveReply struct + Retval int32 + func (*BondDetachSlaveReply) GetCrcString() string + func (*BondDetachSlaveReply) GetMessageName() string + func (*BondDetachSlaveReply) GetMessageType() api.MessageType + func (m *BondDetachSlaveReply) Marshal(b []byte) ([]byte, error) + func (m *BondDetachSlaveReply) Reset() + func (m *BondDetachSlaveReply) Size() (size int) + func (m *BondDetachSlaveReply) Unmarshal(b []byte) error + type BondEnslave struct + BondSwIfIndex InterfaceIndex + IsLongTimeout bool + IsPassive bool + SwIfIndex InterfaceIndex + func (*BondEnslave) GetCrcString() string + func (*BondEnslave) GetMessageName() string + func (*BondEnslave) GetMessageType() api.MessageType + func (m *BondEnslave) Marshal(b []byte) ([]byte, error) + func (m *BondEnslave) Reset() + func (m *BondEnslave) Size() (size int) + func (m *BondEnslave) Unmarshal(b []byte) error + type BondEnslaveReply struct + Retval int32 + func (*BondEnslaveReply) GetCrcString() string + func (*BondEnslaveReply) GetMessageName() string + func (*BondEnslaveReply) GetMessageType() api.MessageType + func (m *BondEnslaveReply) Marshal(b []byte) ([]byte, error) + func (m *BondEnslaveReply) Reset() + func (m *BondEnslaveReply) Size() (size int) + func (m *BondEnslaveReply) Unmarshal(b []byte) error + type BondLbAlgo uint32 + const BOND_API_LB_ALGO_AB + const BOND_API_LB_ALGO_BC + const BOND_API_LB_ALGO_L2 + const BOND_API_LB_ALGO_L23 + const BOND_API_LB_ALGO_L34 + const BOND_API_LB_ALGO_RR + func (x BondLbAlgo) String() string + type BondMode uint32 + const BOND_API_MODE_ACTIVE_BACKUP + const BOND_API_MODE_BROADCAST + const BOND_API_MODE_LACP + const BOND_API_MODE_ROUND_ROBIN + const BOND_API_MODE_XOR + func (x BondMode) 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 LinkDuplex uint32 + const LINK_DUPLEX_API_FULL + const LINK_DUPLEX_API_HALF + const LINK_DUPLEX_API_UNKNOWN + func (x LinkDuplex) String() string + type MacAddress [6]uint8 + func ParseMacAddress(s string) (MacAddress, error) + func (x *MacAddress) MarshalText() ([]byte, error) + func (x *MacAddress) UnmarshalText(text []byte) error + func (x MacAddress) String() string + func (x MacAddress) ToMAC() net.HardwareAddr + 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 RPCService interface + BondCreate func(ctx context.Context, in *BondCreate) (*BondCreateReply, error) + BondDelete func(ctx context.Context, in *BondDelete) (*BondDeleteReply, error) + BondDetachSlave func(ctx context.Context, in *BondDetachSlave) (*BondDetachSlaveReply, error) + BondEnslave func(ctx context.Context, in *BondEnslave) (*BondEnslaveReply, error) + SwInterfaceBondDump func(ctx context.Context, in *SwInterfaceBondDump) (RPCService_SwInterfaceBondDumpClient, error) + SwInterfaceSetBondWeight func(ctx context.Context, in *SwInterfaceSetBondWeight) (*SwInterfaceSetBondWeightReply, error) + SwInterfaceSlaveDump func(ctx context.Context, in *SwInterfaceSlaveDump) (RPCService_SwInterfaceSlaveDumpClient, error) + func NewServiceClient(conn api.Connection) RPCService + type RPCService_SwInterfaceBondDumpClient interface + Recv func() (*SwInterfaceBondDetails, error) + type RPCService_SwInterfaceSlaveDumpClient interface + Recv func() (*SwInterfaceSlaveDetails, 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 + type SwInterfaceBondDetails struct + ActiveSlaves uint32 + ID uint32 + InterfaceName string + Lb BondLbAlgo + Mode BondMode + NumaOnly bool + Slaves uint32 + SwIfIndex InterfaceIndex + func (*SwInterfaceBondDetails) GetCrcString() string + func (*SwInterfaceBondDetails) GetMessageName() string + func (*SwInterfaceBondDetails) GetMessageType() api.MessageType + func (m *SwInterfaceBondDetails) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceBondDetails) Reset() + func (m *SwInterfaceBondDetails) Size() (size int) + func (m *SwInterfaceBondDetails) Unmarshal(b []byte) error + type SwInterfaceBondDump struct + func (*SwInterfaceBondDump) GetCrcString() string + func (*SwInterfaceBondDump) GetMessageName() string + func (*SwInterfaceBondDump) GetMessageType() api.MessageType + func (m *SwInterfaceBondDump) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceBondDump) Reset() + func (m *SwInterfaceBondDump) Size() (size int) + func (m *SwInterfaceBondDump) Unmarshal(b []byte) error + type SwInterfaceSetBondWeight struct + SwIfIndex InterfaceIndex + Weight uint32 + func (*SwInterfaceSetBondWeight) GetCrcString() string + func (*SwInterfaceSetBondWeight) GetMessageName() string + func (*SwInterfaceSetBondWeight) GetMessageType() api.MessageType + func (m *SwInterfaceSetBondWeight) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceSetBondWeight) Reset() + func (m *SwInterfaceSetBondWeight) Size() (size int) + func (m *SwInterfaceSetBondWeight) Unmarshal(b []byte) error + type SwInterfaceSetBondWeightReply struct + Retval int32 + func (*SwInterfaceSetBondWeightReply) GetCrcString() string + func (*SwInterfaceSetBondWeightReply) GetMessageName() string + func (*SwInterfaceSetBondWeightReply) GetMessageType() api.MessageType + func (m *SwInterfaceSetBondWeightReply) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceSetBondWeightReply) Reset() + func (m *SwInterfaceSetBondWeightReply) Size() (size int) + func (m *SwInterfaceSetBondWeightReply) Unmarshal(b []byte) error + type SwInterfaceSlaveDetails struct + InterfaceName string + IsLocalNuma bool + IsLongTimeout bool + IsPassive bool + SwIfIndex InterfaceIndex + Weight uint32 + func (*SwInterfaceSlaveDetails) GetCrcString() string + func (*SwInterfaceSlaveDetails) GetMessageName() string + func (*SwInterfaceSlaveDetails) GetMessageType() api.MessageType + func (m *SwInterfaceSlaveDetails) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceSlaveDetails) Reset() + func (m *SwInterfaceSlaveDetails) Size() (size int) + func (m *SwInterfaceSlaveDetails) Unmarshal(b []byte) error + type SwInterfaceSlaveDump struct + SwIfIndex InterfaceIndex + func (*SwInterfaceSlaveDump) GetCrcString() string + func (*SwInterfaceSlaveDump) GetMessageName() string + func (*SwInterfaceSlaveDump) GetMessageType() api.MessageType + func (m *SwInterfaceSlaveDump) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceSlaveDump) Reset() + func (m *SwInterfaceSlaveDump) Size() (size int) + func (m *SwInterfaceSlaveDump) Unmarshal(b []byte) error