Documentation ¶
Overview ¶
Package pbl contains generated bindings for API file pbl.api.
Contents: - 1 enum - 2 structs - 6 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type PblClient
- type PblClientDel
- func (*PblClientDel) GetCrcString() string
- func (*PblClientDel) GetMessageName() string
- func (*PblClientDel) GetMessageType() api.MessageType
- func (m *PblClientDel) Marshal(b []byte) ([]byte, error)
- func (m *PblClientDel) Reset()
- func (m *PblClientDel) Size() (size int)
- func (m *PblClientDel) Unmarshal(b []byte) error
- type PblClientDelReply
- func (*PblClientDelReply) GetCrcString() string
- func (*PblClientDelReply) GetMessageName() string
- func (*PblClientDelReply) GetMessageType() api.MessageType
- func (m *PblClientDelReply) Marshal(b []byte) ([]byte, error)
- func (m *PblClientDelReply) Reset()
- func (m *PblClientDelReply) Size() (size int)
- func (m *PblClientDelReply) Unmarshal(b []byte) error
- type PblClientDetails
- func (*PblClientDetails) GetCrcString() string
- func (*PblClientDetails) GetMessageName() string
- func (*PblClientDetails) GetMessageType() api.MessageType
- func (m *PblClientDetails) Marshal(b []byte) ([]byte, error)
- func (m *PblClientDetails) Reset()
- func (m *PblClientDetails) Size() (size int)
- func (m *PblClientDetails) Unmarshal(b []byte) error
- type PblClientDump
- func (*PblClientDump) GetCrcString() string
- func (*PblClientDump) GetMessageName() string
- func (*PblClientDump) GetMessageType() api.MessageType
- func (m *PblClientDump) Marshal(b []byte) ([]byte, error)
- func (m *PblClientDump) Reset()
- func (m *PblClientDump) Size() (size int)
- func (m *PblClientDump) Unmarshal(b []byte) error
- type PblClientFlags
- type PblClientUpdate
- func (*PblClientUpdate) GetCrcString() string
- func (*PblClientUpdate) GetMessageName() string
- func (*PblClientUpdate) GetMessageType() api.MessageType
- func (m *PblClientUpdate) Marshal(b []byte) ([]byte, error)
- func (m *PblClientUpdate) Reset()
- func (m *PblClientUpdate) Size() (size int)
- func (m *PblClientUpdate) Unmarshal(b []byte) error
- type PblClientUpdateReply
- func (*PblClientUpdateReply) GetCrcString() string
- func (*PblClientUpdateReply) GetMessageName() string
- func (*PblClientUpdateReply) GetMessageType() api.MessageType
- func (m *PblClientUpdateReply) Marshal(b []byte) ([]byte, error)
- func (m *PblClientUpdateReply) Reset()
- func (m *PblClientUpdateReply) Size() (size int)
- func (m *PblClientUpdateReply) Unmarshal(b []byte) error
- type PblPortRange
- type RPCService
- type RPCService_PblClientDumpClient
Constants ¶
View Source
const ( APIFile = "pbl" APIVersion = "0.1.0" VersionCrc = 0x87fa66f8 )
Variables ¶
View Source
var ( PblClientFlags_name = map[uint32]string{ 1: "PBL_API_FLAG_EXCLUSIVE", } PblClientFlags_value = map[string]uint32{ "PBL_API_FLAG_EXCLUSIVE": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type PblClient ¶
type PblClient struct { ID uint32 `binapi:"u32,name=id,default=4294967295" json:"id,omitempty"` Addr ip_types.Address `binapi:"address,name=addr" json:"addr,omitempty"` Paths fib_types.FibPath `binapi:"fib_path,name=paths" json:"paths,omitempty"` Flags uint8 `binapi:"u8,name=flags" json:"flags,omitempty"` TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` NPorts uint32 `binapi:"u32,name=n_ports" json:"-"` PortRanges []PblPortRange `binapi:"pbl_port_range[n_ports],name=port_ranges" json:"port_ranges,omitempty"` }
PblClient defines type 'pbl_client'.
type PblClientDel ¶
type PblClientDel struct {
ID uint32 `binapi:"u32,name=id" json:"id,omitempty"`
}
PblClientDel defines message 'pbl_client_del'.
func (*PblClientDel) GetCrcString ¶
func (*PblClientDel) GetCrcString() string
func (*PblClientDel) GetMessageName ¶
func (*PblClientDel) GetMessageName() string
func (*PblClientDel) GetMessageType ¶
func (*PblClientDel) GetMessageType() api.MessageType
func (*PblClientDel) Reset ¶
func (m *PblClientDel) Reset()
func (*PblClientDel) Size ¶
func (m *PblClientDel) Size() (size int)
func (*PblClientDel) Unmarshal ¶
func (m *PblClientDel) Unmarshal(b []byte) error
type PblClientDelReply ¶
type PblClientDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PblClientDelReply defines message 'pbl_client_del_reply'.
func (*PblClientDelReply) GetCrcString ¶
func (*PblClientDelReply) GetCrcString() string
func (*PblClientDelReply) GetMessageName ¶
func (*PblClientDelReply) GetMessageName() string
func (*PblClientDelReply) GetMessageType ¶
func (*PblClientDelReply) GetMessageType() api.MessageType
func (*PblClientDelReply) Reset ¶
func (m *PblClientDelReply) Reset()
func (*PblClientDelReply) Size ¶
func (m *PblClientDelReply) Size() (size int)
func (*PblClientDelReply) Unmarshal ¶
func (m *PblClientDelReply) Unmarshal(b []byte) error
type PblClientDetails ¶
type PblClientDetails struct {
Client PblClient `binapi:"pbl_client,name=client" json:"client,omitempty"`
}
PblClientDetails defines message 'pbl_client_details'.
func (*PblClientDetails) GetCrcString ¶
func (*PblClientDetails) GetCrcString() string
func (*PblClientDetails) GetMessageName ¶
func (*PblClientDetails) GetMessageName() string
func (*PblClientDetails) GetMessageType ¶
func (*PblClientDetails) GetMessageType() api.MessageType
func (*PblClientDetails) Reset ¶
func (m *PblClientDetails) Reset()
func (*PblClientDetails) Size ¶
func (m *PblClientDetails) Size() (size int)
func (*PblClientDetails) Unmarshal ¶
func (m *PblClientDetails) Unmarshal(b []byte) error
type PblClientDump ¶
type PblClientDump struct{}
PblClientDump defines message 'pbl_client_dump'.
func (*PblClientDump) GetCrcString ¶
func (*PblClientDump) GetCrcString() string
func (*PblClientDump) GetMessageName ¶
func (*PblClientDump) GetMessageName() string
func (*PblClientDump) GetMessageType ¶
func (*PblClientDump) GetMessageType() api.MessageType
func (*PblClientDump) Reset ¶
func (m *PblClientDump) Reset()
func (*PblClientDump) Size ¶
func (m *PblClientDump) Size() (size int)
func (*PblClientDump) Unmarshal ¶
func (m *PblClientDump) Unmarshal(b []byte) error
type PblClientFlags ¶
type PblClientFlags uint32
PblClientFlags defines enum 'pbl_client_flags'.
const (
PBL_API_FLAG_EXCLUSIVE PblClientFlags = 1
)
func (PblClientFlags) String ¶
func (x PblClientFlags) String() string
type PblClientUpdate ¶
type PblClientUpdate struct {
Client PblClient `binapi:"pbl_client,name=client" json:"client,omitempty"`
}
\file
This file defines the vpp control-plane API messages used to control the PBL plugin
PblClientUpdate defines message 'pbl_client_update'.
func (*PblClientUpdate) GetCrcString ¶
func (*PblClientUpdate) GetCrcString() string
func (*PblClientUpdate) GetMessageName ¶
func (*PblClientUpdate) GetMessageName() string
func (*PblClientUpdate) GetMessageType ¶
func (*PblClientUpdate) GetMessageType() api.MessageType
func (*PblClientUpdate) Reset ¶
func (m *PblClientUpdate) Reset()
func (*PblClientUpdate) Size ¶
func (m *PblClientUpdate) Size() (size int)
func (*PblClientUpdate) Unmarshal ¶
func (m *PblClientUpdate) Unmarshal(b []byte) error
type PblClientUpdateReply ¶
type PblClientUpdateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` }
PblClientUpdateReply defines message 'pbl_client_update_reply'.
func (*PblClientUpdateReply) GetCrcString ¶
func (*PblClientUpdateReply) GetCrcString() string
func (*PblClientUpdateReply) GetMessageName ¶
func (*PblClientUpdateReply) GetMessageName() string
func (*PblClientUpdateReply) GetMessageType ¶
func (*PblClientUpdateReply) GetMessageType() api.MessageType
func (*PblClientUpdateReply) Marshal ¶
func (m *PblClientUpdateReply) Marshal(b []byte) ([]byte, error)
func (*PblClientUpdateReply) Reset ¶
func (m *PblClientUpdateReply) Reset()
func (*PblClientUpdateReply) Size ¶
func (m *PblClientUpdateReply) Size() (size int)
func (*PblClientUpdateReply) Unmarshal ¶
func (m *PblClientUpdateReply) Unmarshal(b []byte) error
type PblPortRange ¶
type PblPortRange struct { Start uint16 `binapi:"u16,name=start" json:"start,omitempty"` End uint16 `binapi:"u16,name=end" json:"end,omitempty"` Iproto ip_types.IPProto `binapi:"ip_proto,name=iproto" json:"iproto,omitempty"` }
PblPortRange defines type 'pbl_port_range'.
type RPCService ¶
type RPCService interface { PblClientDel(ctx context.Context, in *PblClientDel) (*PblClientDelReply, error) PblClientDump(ctx context.Context, in *PblClientDump) (RPCService_PblClientDumpClient, error) PblClientUpdate(ctx context.Context, in *PblClientUpdate) (*PblClientUpdateReply, error) }
RPCService defines RPC service pbl.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_PblClientDumpClient ¶
type RPCService_PblClientDumpClient interface { Recv() (*PblClientDetails, error) api.Stream }
Click to show internal directories.
Click to hide internal directories.