Documentation
¶
Overview ¶
Package vmxnet3 contains generated bindings for API file vmxnet3.api.
Contents:
2 aliases 6 enums 2 structs 6 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type IfStatusFlags
- type IfType
- type InterfaceIndex
- type LinkDuplex
- type MacAddress
- type MtuProto
- type RPCService
- type RPCService_Vmxnet3DumpClient
- type RxMode
- type SubIfFlags
- type Vmxnet3Create
- func (*Vmxnet3Create) GetCrcString() string
- func (*Vmxnet3Create) GetMessageName() string
- func (*Vmxnet3Create) GetMessageType() api.MessageType
- func (m *Vmxnet3Create) Marshal(b []byte) ([]byte, error)
- func (m *Vmxnet3Create) Reset()
- func (m *Vmxnet3Create) Size() (size int)
- func (m *Vmxnet3Create) Unmarshal(b []byte) error
- type Vmxnet3CreateReply
- func (*Vmxnet3CreateReply) GetCrcString() string
- func (*Vmxnet3CreateReply) GetMessageName() string
- func (*Vmxnet3CreateReply) GetMessageType() api.MessageType
- func (m *Vmxnet3CreateReply) Marshal(b []byte) ([]byte, error)
- func (m *Vmxnet3CreateReply) Reset()
- func (m *Vmxnet3CreateReply) Size() (size int)
- func (m *Vmxnet3CreateReply) Unmarshal(b []byte) error
- type Vmxnet3Delete
- func (*Vmxnet3Delete) GetCrcString() string
- func (*Vmxnet3Delete) GetMessageName() string
- func (*Vmxnet3Delete) GetMessageType() api.MessageType
- func (m *Vmxnet3Delete) Marshal(b []byte) ([]byte, error)
- func (m *Vmxnet3Delete) Reset()
- func (m *Vmxnet3Delete) Size() (size int)
- func (m *Vmxnet3Delete) Unmarshal(b []byte) error
- type Vmxnet3DeleteReply
- func (*Vmxnet3DeleteReply) GetCrcString() string
- func (*Vmxnet3DeleteReply) GetMessageName() string
- func (*Vmxnet3DeleteReply) GetMessageType() api.MessageType
- func (m *Vmxnet3DeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *Vmxnet3DeleteReply) Reset()
- func (m *Vmxnet3DeleteReply) Size() (size int)
- func (m *Vmxnet3DeleteReply) Unmarshal(b []byte) error
- type Vmxnet3Details
- func (*Vmxnet3Details) GetCrcString() string
- func (*Vmxnet3Details) GetMessageName() string
- func (*Vmxnet3Details) GetMessageType() api.MessageType
- func (m *Vmxnet3Details) Marshal(b []byte) ([]byte, error)
- func (m *Vmxnet3Details) Reset()
- func (m *Vmxnet3Details) Size() (size int)
- func (m *Vmxnet3Details) Unmarshal(b []byte) error
- type Vmxnet3Dump
- func (*Vmxnet3Dump) GetCrcString() string
- func (*Vmxnet3Dump) GetMessageName() string
- func (*Vmxnet3Dump) GetMessageType() api.MessageType
- func (m *Vmxnet3Dump) Marshal(b []byte) ([]byte, error)
- func (m *Vmxnet3Dump) Reset()
- func (m *Vmxnet3Dump) Size() (size int)
- func (m *Vmxnet3Dump) Unmarshal(b []byte) error
- type Vmxnet3RxList
- type Vmxnet3TxList
Constants ¶
const ( APIFile = "vmxnet3" APIVersion = "1.1.0" VersionCrc = 0xe89a60f7 )
Variables ¶
var ( IfStatusFlags_name = map[uint32]string{ 1: "IF_STATUS_API_FLAG_ADMIN_UP", 2: "IF_STATUS_API_FLAG_LINK_UP", } IfStatusFlags_value = map[string]uint32{ "IF_STATUS_API_FLAG_ADMIN_UP": 1, "IF_STATUS_API_FLAG_LINK_UP": 2, } )
var ( IfType_name = map[uint32]string{ 1: "IF_API_TYPE_HARDWARE", 2: "IF_API_TYPE_SUB", 3: "IF_API_TYPE_P2P", 4: "IF_API_TYPE_PIPE", } IfType_value = map[string]uint32{ "IF_API_TYPE_HARDWARE": 1, "IF_API_TYPE_SUB": 2, "IF_API_TYPE_P2P": 3, "IF_API_TYPE_PIPE": 4, } )
var ( LinkDuplex_name = map[uint32]string{ 0: "LINK_DUPLEX_API_UNKNOWN", 1: "LINK_DUPLEX_API_HALF", 2: "LINK_DUPLEX_API_FULL", } LinkDuplex_value = map[string]uint32{ "LINK_DUPLEX_API_UNKNOWN": 0, "LINK_DUPLEX_API_HALF": 1, "LINK_DUPLEX_API_FULL": 2, } )
var ( MtuProto_name = map[uint32]string{ 1: "MTU_PROTO_API_L3", 2: "MTU_PROTO_API_IP4", 3: "MTU_PROTO_API_IP6", 4: "MTU_PROTO_API_MPLS", 5: "MTU_PROTO_API_N", } MtuProto_value = map[string]uint32{ "MTU_PROTO_API_L3": 1, "MTU_PROTO_API_IP4": 2, "MTU_PROTO_API_IP6": 3, "MTU_PROTO_API_MPLS": 4, "MTU_PROTO_API_N": 5, } )
var ( RxMode_name = map[uint32]string{ 0: "RX_MODE_API_UNKNOWN", 1: "RX_MODE_API_POLLING", 2: "RX_MODE_API_INTERRUPT", 3: "RX_MODE_API_ADAPTIVE", 4: "RX_MODE_API_DEFAULT", } RxMode_value = map[string]uint32{ "RX_MODE_API_UNKNOWN": 0, "RX_MODE_API_POLLING": 1, "RX_MODE_API_INTERRUPT": 2, "RX_MODE_API_ADAPTIVE": 3, "RX_MODE_API_DEFAULT": 4, } )
var ( SubIfFlags_name = map[uint32]string{ 1: "SUB_IF_API_FLAG_NO_TAGS", 2: "SUB_IF_API_FLAG_ONE_TAG", 4: "SUB_IF_API_FLAG_TWO_TAGS", 8: "SUB_IF_API_FLAG_DOT1AD", 16: "SUB_IF_API_FLAG_EXACT_MATCH", 32: "SUB_IF_API_FLAG_DEFAULT", 64: "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY", 128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY", 254: "SUB_IF_API_FLAG_MASK_VNET", 256: "SUB_IF_API_FLAG_DOT1AH", } SubIfFlags_value = map[string]uint32{ "SUB_IF_API_FLAG_NO_TAGS": 1, "SUB_IF_API_FLAG_ONE_TAG": 2, "SUB_IF_API_FLAG_TWO_TAGS": 4, "SUB_IF_API_FLAG_DOT1AD": 8, "SUB_IF_API_FLAG_EXACT_MATCH": 16, "SUB_IF_API_FLAG_DEFAULT": 32, "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64, "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128, "SUB_IF_API_FLAG_MASK_VNET": 254, "SUB_IF_API_FLAG_DOT1AH": 256, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type IfStatusFlags ¶
type IfStatusFlags uint32
IfStatusFlags defines enum 'if_status_flags'.
const ( IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1 IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2 )
func (IfStatusFlags) String ¶
func (x IfStatusFlags) String() string
type LinkDuplex ¶
type LinkDuplex uint32
LinkDuplex defines enum 'link_duplex'.
const ( LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0 LINK_DUPLEX_API_HALF LinkDuplex = 1 LINK_DUPLEX_API_FULL LinkDuplex = 2 )
func (LinkDuplex) String ¶
func (x LinkDuplex) String() string
type MacAddress ¶
type MacAddress [6]uint8
MacAddress defines alias 'mac_address'.
func ParseMacAddress ¶
func ParseMacAddress(s string) (MacAddress, error)
func (*MacAddress) MarshalText ¶
func (x *MacAddress) MarshalText() ([]byte, error)
func (MacAddress) String ¶
func (x MacAddress) String() string
func (MacAddress) ToMAC ¶
func (x MacAddress) ToMAC() net.HardwareAddr
func (*MacAddress) UnmarshalText ¶
func (x *MacAddress) UnmarshalText(text []byte) error
type RPCService ¶
type RPCService interface { Vmxnet3Create(ctx context.Context, in *Vmxnet3Create) (*Vmxnet3CreateReply, error) Vmxnet3Delete(ctx context.Context, in *Vmxnet3Delete) (*Vmxnet3DeleteReply, error) Vmxnet3Dump(ctx context.Context, in *Vmxnet3Dump) (RPCService_Vmxnet3DumpClient, error) }
RPCService defines RPC service vmxnet3.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_Vmxnet3DumpClient ¶
type RPCService_Vmxnet3DumpClient interface { Recv() (*Vmxnet3Details, error) api.Stream }
type SubIfFlags ¶
type SubIfFlags uint32
SubIfFlags defines enum 'sub_if_flags'.
const ( SUB_IF_API_FLAG_NO_TAGS SubIfFlags = 1 SUB_IF_API_FLAG_ONE_TAG SubIfFlags = 2 SUB_IF_API_FLAG_TWO_TAGS SubIfFlags = 4 SUB_IF_API_FLAG_DOT1AD SubIfFlags = 8 SUB_IF_API_FLAG_EXACT_MATCH SubIfFlags = 16 SUB_IF_API_FLAG_DEFAULT SubIfFlags = 32 SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64 SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128 SUB_IF_API_FLAG_MASK_VNET SubIfFlags = 254 SUB_IF_API_FLAG_DOT1AH SubIfFlags = 256 )
func (SubIfFlags) String ¶
func (x SubIfFlags) String() string
type Vmxnet3Create ¶
type Vmxnet3Create struct { PciAddr uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"` EnableElog int32 `binapi:"i32,name=enable_elog" json:"enable_elog,omitempty"` RxqSize uint16 `binapi:"u16,name=rxq_size" json:"rxq_size,omitempty"` RxqNum uint16 `binapi:"u16,name=rxq_num" json:"rxq_num,omitempty"` TxqSize uint16 `binapi:"u16,name=txq_size" json:"txq_size,omitempty"` TxqNum uint16 `binapi:"u16,name=txq_num" json:"txq_num,omitempty"` Bind uint8 `binapi:"u8,name=bind" json:"bind,omitempty"` EnableGso bool `binapi:"bool,name=enable_gso" json:"enable_gso,omitempty"` }
Vmxnet3Create defines message 'vmxnet3_create'.
func (*Vmxnet3Create) GetCrcString ¶
func (*Vmxnet3Create) GetCrcString() string
func (*Vmxnet3Create) GetMessageName ¶
func (*Vmxnet3Create) GetMessageName() string
func (*Vmxnet3Create) GetMessageType ¶
func (*Vmxnet3Create) GetMessageType() api.MessageType
func (*Vmxnet3Create) Reset ¶
func (m *Vmxnet3Create) Reset()
func (*Vmxnet3Create) Size ¶
func (m *Vmxnet3Create) Size() (size int)
func (*Vmxnet3Create) Unmarshal ¶
func (m *Vmxnet3Create) Unmarshal(b []byte) error
type Vmxnet3CreateReply ¶
type Vmxnet3CreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Vmxnet3CreateReply defines message 'vmxnet3_create_reply'.
func (*Vmxnet3CreateReply) GetCrcString ¶
func (*Vmxnet3CreateReply) GetCrcString() string
func (*Vmxnet3CreateReply) GetMessageName ¶
func (*Vmxnet3CreateReply) GetMessageName() string
func (*Vmxnet3CreateReply) GetMessageType ¶
func (*Vmxnet3CreateReply) GetMessageType() api.MessageType
func (*Vmxnet3CreateReply) Reset ¶
func (m *Vmxnet3CreateReply) Reset()
func (*Vmxnet3CreateReply) Size ¶
func (m *Vmxnet3CreateReply) Size() (size int)
func (*Vmxnet3CreateReply) Unmarshal ¶
func (m *Vmxnet3CreateReply) Unmarshal(b []byte) error
type Vmxnet3Delete ¶
type Vmxnet3Delete struct {
SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
Vmxnet3Delete defines message 'vmxnet3_delete'.
func (*Vmxnet3Delete) GetCrcString ¶
func (*Vmxnet3Delete) GetCrcString() string
func (*Vmxnet3Delete) GetMessageName ¶
func (*Vmxnet3Delete) GetMessageName() string
func (*Vmxnet3Delete) GetMessageType ¶
func (*Vmxnet3Delete) GetMessageType() api.MessageType
func (*Vmxnet3Delete) Reset ¶
func (m *Vmxnet3Delete) Reset()
func (*Vmxnet3Delete) Size ¶
func (m *Vmxnet3Delete) Size() (size int)
func (*Vmxnet3Delete) Unmarshal ¶
func (m *Vmxnet3Delete) Unmarshal(b []byte) error
type Vmxnet3DeleteReply ¶
type Vmxnet3DeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
Vmxnet3DeleteReply defines message 'vmxnet3_delete_reply'.
func (*Vmxnet3DeleteReply) GetCrcString ¶
func (*Vmxnet3DeleteReply) GetCrcString() string
func (*Vmxnet3DeleteReply) GetMessageName ¶
func (*Vmxnet3DeleteReply) GetMessageName() string
func (*Vmxnet3DeleteReply) GetMessageType ¶
func (*Vmxnet3DeleteReply) GetMessageType() api.MessageType
func (*Vmxnet3DeleteReply) Reset ¶
func (m *Vmxnet3DeleteReply) Reset()
func (*Vmxnet3DeleteReply) Size ¶
func (m *Vmxnet3DeleteReply) Size() (size int)
func (*Vmxnet3DeleteReply) Unmarshal ¶
func (m *Vmxnet3DeleteReply) Unmarshal(b []byte) error
type Vmxnet3Details ¶
type Vmxnet3Details struct { SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IfName string `binapi:"string[64],name=if_name" json:"if_name,omitempty"` HwAddr MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` PciAddr uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"` Version uint8 `binapi:"u8,name=version" json:"version,omitempty"` AdminUpDown bool `binapi:"bool,name=admin_up_down" json:"admin_up_down,omitempty"` RxCount uint8 `binapi:"u8,name=rx_count" json:"rx_count,omitempty"` RxList [16]Vmxnet3RxList `binapi:"vmxnet3_rx_list[16],name=rx_list" json:"rx_list,omitempty"` TxCount uint8 `binapi:"u8,name=tx_count" json:"tx_count,omitempty"` TxList [8]Vmxnet3TxList `binapi:"vmxnet3_tx_list[8],name=tx_list" json:"tx_list,omitempty"` }
Vmxnet3Details defines message 'vmxnet3_details'.
func (*Vmxnet3Details) GetCrcString ¶
func (*Vmxnet3Details) GetCrcString() string
func (*Vmxnet3Details) GetMessageName ¶
func (*Vmxnet3Details) GetMessageName() string
func (*Vmxnet3Details) GetMessageType ¶
func (*Vmxnet3Details) GetMessageType() api.MessageType
func (*Vmxnet3Details) Reset ¶
func (m *Vmxnet3Details) Reset()
func (*Vmxnet3Details) Size ¶
func (m *Vmxnet3Details) Size() (size int)
func (*Vmxnet3Details) Unmarshal ¶
func (m *Vmxnet3Details) Unmarshal(b []byte) error
type Vmxnet3Dump ¶
type Vmxnet3Dump struct{}
Vmxnet3Dump defines message 'vmxnet3_dump'.
func (*Vmxnet3Dump) GetCrcString ¶
func (*Vmxnet3Dump) GetCrcString() string
func (*Vmxnet3Dump) GetMessageName ¶
func (*Vmxnet3Dump) GetMessageName() string
func (*Vmxnet3Dump) GetMessageType ¶
func (*Vmxnet3Dump) GetMessageType() api.MessageType
func (*Vmxnet3Dump) Reset ¶
func (m *Vmxnet3Dump) Reset()
func (*Vmxnet3Dump) Size ¶
func (m *Vmxnet3Dump) Size() (size int)
func (*Vmxnet3Dump) Unmarshal ¶
func (m *Vmxnet3Dump) Unmarshal(b []byte) error
type Vmxnet3RxList ¶
type Vmxnet3RxList struct { RxQsize uint16 `binapi:"u16,name=rx_qsize" json:"rx_qsize,omitempty"` RxFill []uint16 `binapi:"u16[2],name=rx_fill" json:"rx_fill,omitempty"` RxNext uint16 `binapi:"u16,name=rx_next" json:"rx_next,omitempty"` RxProduce []uint16 `binapi:"u16[2],name=rx_produce" json:"rx_produce,omitempty"` RxConsume []uint16 `binapi:"u16[2],name=rx_consume" json:"rx_consume,omitempty"` }
Vmxnet3RxList defines type 'vmxnet3_rx_list'.
type Vmxnet3TxList ¶
type Vmxnet3TxList struct { TxQsize uint16 `binapi:"u16,name=tx_qsize" json:"tx_qsize,omitempty"` TxNext uint16 `binapi:"u16,name=tx_next" json:"tx_next,omitempty"` TxProduce uint16 `binapi:"u16,name=tx_produce" json:"tx_produce,omitempty"` TxConsume uint16 `binapi:"u16,name=tx_consume" json:"tx_consume,omitempty"` }
Vmxnet3TxList defines type 'vmxnet3_tx_list'.