dev

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dev contains generated bindings for API file dev.api.

Contents: - 2 enums - 8 messages

Index

Constants

View Source
const (
	APIFile    = "dev"
	APIVersion = "0.0.1"
	VersionCrc = 0x36dfff5d
)

Variables

View Source
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,
	}
)
View Source
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

func AllMessages() []api.Message

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) GetCrcString() string

func (*DevAttach) GetMessageName

func (*DevAttach) GetMessageName() string

func (*DevAttach) GetMessageType

func (*DevAttach) GetMessageType() api.MessageType

func (*DevAttach) Marshal

func (m *DevAttach) Marshal(b []byte) ([]byte, error)

func (*DevAttach) Reset

func (m *DevAttach) Reset()

func (*DevAttach) Size

func (m *DevAttach) Size() (size int)

func (*DevAttach) Unmarshal

func (m *DevAttach) Unmarshal(b []byte) error

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) Marshal

func (m *DevAttachReply) Marshal(b []byte) ([]byte, error)

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) Marshal

func (m *DevCreatePortIf) Marshal(b []byte) ([]byte, error)

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) GetCrcString() string

func (*DevDetach) GetMessageName

func (*DevDetach) GetMessageName() string

func (*DevDetach) GetMessageType

func (*DevDetach) GetMessageType() api.MessageType

func (*DevDetach) Marshal

func (m *DevDetach) Marshal(b []byte) ([]byte, error)

func (*DevDetach) Reset

func (m *DevDetach) Reset()

func (*DevDetach) Size

func (m *DevDetach) Size() (size int)

func (*DevDetach) Unmarshal

func (m *DevDetach) Unmarshal(b []byte) error

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) Marshal

func (m *DevDetachReply) Marshal(b []byte) ([]byte, error)

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
)

func (DevFlags) String

func (x DevFlags) String() string

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) Marshal

func (m *DevRemovePortIf) Marshal(b []byte) ([]byte, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL