Documentation
¶
Overview ¶
Package dev contains generated bindings for API file dev.api.
Contents: - 2 enums - 8 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type DevAttach
- type DevAttachReply
- func (*DevAttachReply) GetCrcString() string
- func (*DevAttachReply) GetMessageName() string
- func (*DevAttachReply) GetMessageType() api.MessageType
- func (m *DevAttachReply) Marshal(b []byte) ([]byte, error)
- func (m *DevAttachReply) Reset()
- func (m *DevAttachReply) Size() (size int)
- func (m *DevAttachReply) Unmarshal(b []byte) error
- type DevCreatePortIf
- func (*DevCreatePortIf) GetCrcString() string
- func (*DevCreatePortIf) GetMessageName() string
- func (*DevCreatePortIf) GetMessageType() api.MessageType
- func (m *DevCreatePortIf) Marshal(b []byte) ([]byte, error)
- func (m *DevCreatePortIf) Reset()
- func (m *DevCreatePortIf) Size() (size int)
- func (m *DevCreatePortIf) Unmarshal(b []byte) error
- type DevCreatePortIfReply
- func (*DevCreatePortIfReply) GetCrcString() string
- func (*DevCreatePortIfReply) GetMessageName() string
- func (*DevCreatePortIfReply) GetMessageType() api.MessageType
- func (m *DevCreatePortIfReply) Marshal(b []byte) ([]byte, error)
- func (m *DevCreatePortIfReply) Reset()
- func (m *DevCreatePortIfReply) Size() (size int)
- func (m *DevCreatePortIfReply) Unmarshal(b []byte) error
- type DevDetach
- type DevDetachReply
- func (*DevDetachReply) GetCrcString() string
- func (*DevDetachReply) GetMessageName() string
- func (*DevDetachReply) GetMessageType() api.MessageType
- func (m *DevDetachReply) Marshal(b []byte) ([]byte, error)
- func (m *DevDetachReply) Reset()
- func (m *DevDetachReply) Size() (size int)
- func (m *DevDetachReply) Unmarshal(b []byte) error
- type DevFlags
- type DevPortFlags
- type DevRemovePortIf
- func (*DevRemovePortIf) GetCrcString() string
- func (*DevRemovePortIf) GetMessageName() string
- func (*DevRemovePortIf) GetMessageType() api.MessageType
- func (m *DevRemovePortIf) Marshal(b []byte) ([]byte, error)
- func (m *DevRemovePortIf) Reset()
- func (m *DevRemovePortIf) Size() (size int)
- func (m *DevRemovePortIf) Unmarshal(b []byte) error
- type DevRemovePortIfReply
- func (*DevRemovePortIfReply) GetCrcString() string
- func (*DevRemovePortIfReply) GetMessageName() string
- func (*DevRemovePortIfReply) GetMessageType() api.MessageType
- func (m *DevRemovePortIfReply) Marshal(b []byte) ([]byte, error)
- func (m *DevRemovePortIfReply) Reset()
- func (m *DevRemovePortIfReply) Size() (size int)
- func (m *DevRemovePortIfReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
const ( APIFile = "dev" APIVersion = "0.0.1" VersionCrc = 0x36dfff5d )
Variables ¶
var ( DevFlags_name = map[uint32]string{ 1: "VL_API_DEV_FLAG_NO_STATS", } DevFlags_value = map[string]uint32{ "VL_API_DEV_FLAG_NO_STATS": 1, } )
var ( DevPortFlags_name = map[uint32]string{ 1: "VL_API_DEV_PORT_FLAG_INTERRUPT_MODE", } DevPortFlags_value = map[string]uint32{ "VL_API_DEV_PORT_FLAG_INTERRUPT_MODE": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type DevAttach ¶
type DevAttach struct { DeviceID string `binapi:"string[48],name=device_id" json:"device_id,omitempty"` DriverName string `binapi:"string[16],name=driver_name" json:"driver_name,omitempty"` Flags DevFlags `binapi:"dev_flags,name=flags" json:"flags,omitempty"` Args string `binapi:"string[],name=args" json:"args,omitempty"` }
/* SPDX-License-Identifier: Apache-2.0
- Copyright(c) 2022 Cisco Systems, Inc.
DevAttach defines message 'dev_attach'.
func (*DevAttach) GetCrcString ¶
func (*DevAttach) GetMessageName ¶
func (*DevAttach) GetMessageType ¶
func (*DevAttach) GetMessageType() api.MessageType
type DevAttachReply ¶
type DevAttachReply struct { DevIndex uint32 `binapi:"u32,name=dev_index" json:"dev_index,omitempty"` Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ErrorString string `binapi:"string[],name=error_string" json:"error_string,omitempty"` }
DevAttachReply defines message 'dev_attach_reply'.
func (*DevAttachReply) GetCrcString ¶
func (*DevAttachReply) GetCrcString() string
func (*DevAttachReply) GetMessageName ¶
func (*DevAttachReply) GetMessageName() string
func (*DevAttachReply) GetMessageType ¶
func (*DevAttachReply) GetMessageType() api.MessageType
func (*DevAttachReply) Reset ¶
func (m *DevAttachReply) Reset()
func (*DevAttachReply) Size ¶
func (m *DevAttachReply) Size() (size int)
func (*DevAttachReply) Unmarshal ¶
func (m *DevAttachReply) Unmarshal(b []byte) error
type DevCreatePortIf ¶
type DevCreatePortIf struct { DevIndex uint32 `binapi:"u32,name=dev_index" json:"dev_index,omitempty"` IntfName string `binapi:"string[32],name=intf_name" json:"intf_name,omitempty"` NumRxQueues uint16 `binapi:"u16,name=num_rx_queues" json:"num_rx_queues,omitempty"` NumTxQueues uint16 `binapi:"u16,name=num_tx_queues" json:"num_tx_queues,omitempty"` RxQueueSize uint16 `binapi:"u16,name=rx_queue_size" json:"rx_queue_size,omitempty"` TxQueueSize uint16 `binapi:"u16,name=tx_queue_size" json:"tx_queue_size,omitempty"` PortID uint16 `binapi:"u16,name=port_id" json:"port_id,omitempty"` Flags DevPortFlags `binapi:"dev_port_flags,name=flags" json:"flags,omitempty"` Args string `binapi:"string[],name=args" json:"args,omitempty"` }
DevCreatePortIf defines message 'dev_create_port_if'.
func (*DevCreatePortIf) GetCrcString ¶
func (*DevCreatePortIf) GetCrcString() string
func (*DevCreatePortIf) GetMessageName ¶
func (*DevCreatePortIf) GetMessageName() string
func (*DevCreatePortIf) GetMessageType ¶
func (*DevCreatePortIf) GetMessageType() api.MessageType
func (*DevCreatePortIf) Reset ¶
func (m *DevCreatePortIf) Reset()
func (*DevCreatePortIf) Size ¶
func (m *DevCreatePortIf) Size() (size int)
func (*DevCreatePortIf) Unmarshal ¶
func (m *DevCreatePortIf) Unmarshal(b []byte) error
type DevCreatePortIfReply ¶
type DevCreatePortIfReply struct { SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"` Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ErrorString string `binapi:"string[],name=error_string" json:"error_string,omitempty"` }
DevCreatePortIfReply defines message 'dev_create_port_if_reply'.
func (*DevCreatePortIfReply) GetCrcString ¶
func (*DevCreatePortIfReply) GetCrcString() string
func (*DevCreatePortIfReply) GetMessageName ¶
func (*DevCreatePortIfReply) GetMessageName() string
func (*DevCreatePortIfReply) GetMessageType ¶
func (*DevCreatePortIfReply) GetMessageType() api.MessageType
func (*DevCreatePortIfReply) Marshal ¶
func (m *DevCreatePortIfReply) Marshal(b []byte) ([]byte, error)
func (*DevCreatePortIfReply) Reset ¶
func (m *DevCreatePortIfReply) Reset()
func (*DevCreatePortIfReply) Size ¶
func (m *DevCreatePortIfReply) Size() (size int)
func (*DevCreatePortIfReply) Unmarshal ¶
func (m *DevCreatePortIfReply) Unmarshal(b []byte) error
type DevDetach ¶
type DevDetach struct {
DevIndex uint32 `binapi:"u32,name=dev_index" json:"dev_index,omitempty"`
}
DevDetach defines message 'dev_detach'.
func (*DevDetach) GetCrcString ¶
func (*DevDetach) GetMessageName ¶
func (*DevDetach) GetMessageType ¶
func (*DevDetach) GetMessageType() api.MessageType
type DevDetachReply ¶
type DevDetachReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ErrorString string `binapi:"string[],name=error_string" json:"error_string,omitempty"` }
DevDetachReply defines message 'dev_detach_reply'.
func (*DevDetachReply) GetCrcString ¶
func (*DevDetachReply) GetCrcString() string
func (*DevDetachReply) GetMessageName ¶
func (*DevDetachReply) GetMessageName() string
func (*DevDetachReply) GetMessageType ¶
func (*DevDetachReply) GetMessageType() api.MessageType
func (*DevDetachReply) Reset ¶
func (m *DevDetachReply) Reset()
func (*DevDetachReply) Size ¶
func (m *DevDetachReply) Size() (size int)
func (*DevDetachReply) Unmarshal ¶
func (m *DevDetachReply) Unmarshal(b []byte) error
type DevFlags ¶
type DevFlags uint32
DevFlags defines enum 'dev_flags'.
const (
VL_API_DEV_FLAG_NO_STATS DevFlags = 1
)
type DevPortFlags ¶
type DevPortFlags uint32
DevPortFlags defines enum 'dev_port_flags'.
const (
VL_API_DEV_PORT_FLAG_INTERRUPT_MODE DevPortFlags = 1
)
func (DevPortFlags) String ¶
func (x DevPortFlags) String() string
type DevRemovePortIf ¶
type DevRemovePortIf struct {
SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
}
DevRemovePortIf defines message 'dev_remove_port_if'.
func (*DevRemovePortIf) GetCrcString ¶
func (*DevRemovePortIf) GetCrcString() string
func (*DevRemovePortIf) GetMessageName ¶
func (*DevRemovePortIf) GetMessageName() string
func (*DevRemovePortIf) GetMessageType ¶
func (*DevRemovePortIf) GetMessageType() api.MessageType
func (*DevRemovePortIf) Reset ¶
func (m *DevRemovePortIf) Reset()
func (*DevRemovePortIf) Size ¶
func (m *DevRemovePortIf) Size() (size int)
func (*DevRemovePortIf) Unmarshal ¶
func (m *DevRemovePortIf) Unmarshal(b []byte) error
type DevRemovePortIfReply ¶
type DevRemovePortIfReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ErrorString string `binapi:"string[],name=error_string" json:"error_string,omitempty"` }
DevRemovePortIfReply defines message 'dev_remove_port_if_reply'.
func (*DevRemovePortIfReply) GetCrcString ¶
func (*DevRemovePortIfReply) GetCrcString() string
func (*DevRemovePortIfReply) GetMessageName ¶
func (*DevRemovePortIfReply) GetMessageName() string
func (*DevRemovePortIfReply) GetMessageType ¶
func (*DevRemovePortIfReply) GetMessageType() api.MessageType
func (*DevRemovePortIfReply) Marshal ¶
func (m *DevRemovePortIfReply) Marshal(b []byte) ([]byte, error)
func (*DevRemovePortIfReply) Reset ¶
func (m *DevRemovePortIfReply) Reset()
func (*DevRemovePortIfReply) Size ¶
func (m *DevRemovePortIfReply) Size() (size int)
func (*DevRemovePortIfReply) Unmarshal ¶
func (m *DevRemovePortIfReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { DevAttach(ctx context.Context, in *DevAttach) (*DevAttachReply, error) DevCreatePortIf(ctx context.Context, in *DevCreatePortIf) (*DevCreatePortIfReply, error) DevDetach(ctx context.Context, in *DevDetach) (*DevDetachReply, error) DevRemovePortIf(ctx context.Context, in *DevRemovePortIf) (*DevRemovePortIfReply, error) }
RPCService defines RPC service dev.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService