pbl

package
v0.18.1-calicov3.21.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Contents:

1 enum
2 structs
6 messages

Index

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

func AllMessages() []api.Message

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'. InProgress: the message form may change in the future versions

func (*PblClientDel) GetCrcString

func (*PblClientDel) GetCrcString() string

func (*PblClientDel) GetMessageName

func (*PblClientDel) GetMessageName() string

func (*PblClientDel) GetMessageType

func (*PblClientDel) GetMessageType() api.MessageType

func (*PblClientDel) Marshal

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

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'. InProgress: the message form may change in the future versions

func (*PblClientDelReply) GetCrcString

func (*PblClientDelReply) GetCrcString() string

func (*PblClientDelReply) GetMessageName

func (*PblClientDelReply) GetMessageName() string

func (*PblClientDelReply) GetMessageType

func (*PblClientDelReply) GetMessageType() api.MessageType

func (*PblClientDelReply) Marshal

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

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'. InProgress: the message form may change in the future versions

func (*PblClientDetails) GetCrcString

func (*PblClientDetails) GetCrcString() string

func (*PblClientDetails) GetMessageName

func (*PblClientDetails) GetMessageName() string

func (*PblClientDetails) GetMessageType

func (*PblClientDetails) GetMessageType() api.MessageType

func (*PblClientDetails) Marshal

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

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'. InProgress: the message form may change in the future versions

func (*PblClientDump) GetCrcString

func (*PblClientDump) GetCrcString() string

func (*PblClientDump) GetMessageName

func (*PblClientDump) GetMessageName() string

func (*PblClientDump) GetMessageType

func (*PblClientDump) GetMessageType() api.MessageType

func (*PblClientDump) Marshal

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

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"`
}

PblClientUpdate defines message 'pbl_client_update'. InProgress: the message form may change in the future versions

func (*PblClientUpdate) GetCrcString

func (*PblClientUpdate) GetCrcString() string

func (*PblClientUpdate) GetMessageName

func (*PblClientUpdate) GetMessageName() string

func (*PblClientUpdate) GetMessageType

func (*PblClientUpdate) GetMessageType() api.MessageType

func (*PblClientUpdate) Marshal

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

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'. InProgress: the message form may change in the future versions

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
}

Jump to

Keyboard shortcuts

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