qos

package
v0.0.0-...-f91f7f2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package qos is a generated VPP binary API for 'qos' module.

It consists of:

1 enum
1 type
8 messages
4 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "qos"
	// APIVersion is the API version of this module.
	APIVersion = "1.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0xa23036b4
)

Variables

View Source
var QosSource_name = map[uint32]string{
	0: "QOS_API_SOURCE_EXT",
	1: "QOS_API_SOURCE_VLAN",
	2: "QOS_API_SOURCE_MPLS",
	3: "QOS_API_SOURCE_IP",
}
View Source
var QosSource_value = map[string]uint32{
	"QOS_API_SOURCE_EXT":  0,
	"QOS_API_SOURCE_VLAN": 1,
	"QOS_API_SOURCE_MPLS": 2,
	"QOS_API_SOURCE_IP":   3,
}

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type QosEgressMapDelete

type QosEgressMapDelete struct {
	MapID uint32
}

QosEgressMapDelete represents VPP binary API message 'qos_egress_map_delete'.

func (*QosEgressMapDelete) GetCrcString

func (*QosEgressMapDelete) GetCrcString() string

func (*QosEgressMapDelete) GetMessageName

func (*QosEgressMapDelete) GetMessageName() string

func (*QosEgressMapDelete) GetMessageType

func (*QosEgressMapDelete) GetMessageType() api.MessageType

func (*QosEgressMapDelete) Reset

func (m *QosEgressMapDelete) Reset()

type QosEgressMapDeleteReply

type QosEgressMapDeleteReply struct {
	Retval int32
}

QosEgressMapDeleteReply represents VPP binary API message 'qos_egress_map_delete_reply'.

func (*QosEgressMapDeleteReply) GetCrcString

func (*QosEgressMapDeleteReply) GetCrcString() string

func (*QosEgressMapDeleteReply) GetMessageName

func (*QosEgressMapDeleteReply) GetMessageName() string

func (*QosEgressMapDeleteReply) GetMessageType

func (*QosEgressMapDeleteReply) GetMessageType() api.MessageType

func (*QosEgressMapDeleteReply) Reset

func (m *QosEgressMapDeleteReply) Reset()

type QosEgressMapRow

type QosEgressMapRow struct {
	Outputs []byte `struc:"[256]byte"`
}

QosEgressMapRow represents VPP binary API type 'qos_egress_map_row'.

func (*QosEgressMapRow) GetCrcString

func (*QosEgressMapRow) GetCrcString() string

func (*QosEgressMapRow) GetTypeName

func (*QosEgressMapRow) GetTypeName() string

type QosEgressMapUpdate

type QosEgressMapUpdate struct {
	MapID uint32
	Rows  []QosEgressMapRow `struc:"[4]QosEgressMapRow"`
}

QosEgressMapUpdate represents VPP binary API message 'qos_egress_map_update'.

func (*QosEgressMapUpdate) GetCrcString

func (*QosEgressMapUpdate) GetCrcString() string

func (*QosEgressMapUpdate) GetMessageName

func (*QosEgressMapUpdate) GetMessageName() string

func (*QosEgressMapUpdate) GetMessageType

func (*QosEgressMapUpdate) GetMessageType() api.MessageType

func (*QosEgressMapUpdate) Reset

func (m *QosEgressMapUpdate) Reset()

type QosEgressMapUpdateReply

type QosEgressMapUpdateReply struct {
	Retval int32
}

QosEgressMapUpdateReply represents VPP binary API message 'qos_egress_map_update_reply'.

func (*QosEgressMapUpdateReply) GetCrcString

func (*QosEgressMapUpdateReply) GetCrcString() string

func (*QosEgressMapUpdateReply) GetMessageName

func (*QosEgressMapUpdateReply) GetMessageName() string

func (*QosEgressMapUpdateReply) GetMessageType

func (*QosEgressMapUpdateReply) GetMessageType() api.MessageType

func (*QosEgressMapUpdateReply) Reset

func (m *QosEgressMapUpdateReply) Reset()

type QosMarkEnableDisable

type QosMarkEnableDisable struct {
	MapID        uint32
	SwIfIndex    uint32
	OutputSource QosSource
	Enable       uint8
}

QosMarkEnableDisable represents VPP binary API message 'qos_mark_enable_disable'.

func (*QosMarkEnableDisable) GetCrcString

func (*QosMarkEnableDisable) GetCrcString() string

func (*QosMarkEnableDisable) GetMessageName

func (*QosMarkEnableDisable) GetMessageName() string

func (*QosMarkEnableDisable) GetMessageType

func (*QosMarkEnableDisable) GetMessageType() api.MessageType

func (*QosMarkEnableDisable) Reset

func (m *QosMarkEnableDisable) Reset()

type QosMarkEnableDisableReply

type QosMarkEnableDisableReply struct {
	Retval int32
}

QosMarkEnableDisableReply represents VPP binary API message 'qos_mark_enable_disable_reply'.

func (*QosMarkEnableDisableReply) GetCrcString

func (*QosMarkEnableDisableReply) GetCrcString() string

func (*QosMarkEnableDisableReply) GetMessageName

func (*QosMarkEnableDisableReply) GetMessageName() string

func (*QosMarkEnableDisableReply) GetMessageType

func (*QosMarkEnableDisableReply) GetMessageType() api.MessageType

func (*QosMarkEnableDisableReply) Reset

func (m *QosMarkEnableDisableReply) Reset()

type QosRecordEnableDisable

type QosRecordEnableDisable struct {
	SwIfIndex   uint32
	InputSource QosSource
	Enable      uint8
}

QosRecordEnableDisable represents VPP binary API message 'qos_record_enable_disable'.

func (*QosRecordEnableDisable) GetCrcString

func (*QosRecordEnableDisable) GetCrcString() string

func (*QosRecordEnableDisable) GetMessageName

func (*QosRecordEnableDisable) GetMessageName() string

func (*QosRecordEnableDisable) GetMessageType

func (*QosRecordEnableDisable) GetMessageType() api.MessageType

func (*QosRecordEnableDisable) Reset

func (m *QosRecordEnableDisable) Reset()

type QosRecordEnableDisableReply

type QosRecordEnableDisableReply struct {
	Retval int32
}

QosRecordEnableDisableReply represents VPP binary API message 'qos_record_enable_disable_reply'.

func (*QosRecordEnableDisableReply) GetCrcString

func (*QosRecordEnableDisableReply) GetCrcString() string

func (*QosRecordEnableDisableReply) GetMessageName

func (*QosRecordEnableDisableReply) GetMessageName() string

func (*QosRecordEnableDisableReply) GetMessageType

func (*QosRecordEnableDisableReply) GetMessageType() api.MessageType

func (*QosRecordEnableDisableReply) Reset

func (m *QosRecordEnableDisableReply) Reset()

type QosSource

type QosSource uint32

QosSource represents VPP binary API enum 'qos_source'.

const (
	QOS_API_SOURCE_EXT  QosSource = 0
	QOS_API_SOURCE_VLAN QosSource = 1
	QOS_API_SOURCE_MPLS QosSource = 2
	QOS_API_SOURCE_IP   QosSource = 3
)

func (QosSource) String

func (x QosSource) String() string

type RPCService

type RPCService interface {
	QosEgressMapDelete(ctx context.Context, in *QosEgressMapDelete) (*QosEgressMapDeleteReply, error)
	QosEgressMapUpdate(ctx context.Context, in *QosEgressMapUpdate) (*QosEgressMapUpdateReply, error)
	QosMarkEnableDisable(ctx context.Context, in *QosMarkEnableDisable) (*QosMarkEnableDisableReply, error)
	QosRecordEnableDisable(ctx context.Context, in *QosRecordEnableDisable) (*QosRecordEnableDisableReply, error)
}

RPCService represents RPC service API for qos module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

Jump to

Keyboard shortcuts

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