Documentation ¶
Overview ¶
Package policer contains generated bindings for API file policer.api.
Contents:
8 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type PolicerAddDel
- func (*PolicerAddDel) GetCrcString() string
- func (*PolicerAddDel) GetMessageName() string
- func (*PolicerAddDel) GetMessageType() api.MessageType
- func (m *PolicerAddDel) Marshal(b []byte) ([]byte, error)
- func (m *PolicerAddDel) Reset()
- func (m *PolicerAddDel) Size() (size int)
- func (m *PolicerAddDel) Unmarshal(b []byte) error
- type PolicerAddDelReply
- func (*PolicerAddDelReply) GetCrcString() string
- func (*PolicerAddDelReply) GetMessageName() string
- func (*PolicerAddDelReply) GetMessageType() api.MessageType
- func (m *PolicerAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *PolicerAddDelReply) Reset()
- func (m *PolicerAddDelReply) Size() (size int)
- func (m *PolicerAddDelReply) Unmarshal(b []byte) error
- type PolicerBind
- func (*PolicerBind) GetCrcString() string
- func (*PolicerBind) GetMessageName() string
- func (*PolicerBind) GetMessageType() api.MessageType
- func (m *PolicerBind) Marshal(b []byte) ([]byte, error)
- func (m *PolicerBind) Reset()
- func (m *PolicerBind) Size() (size int)
- func (m *PolicerBind) Unmarshal(b []byte) error
- type PolicerBindReply
- func (*PolicerBindReply) GetCrcString() string
- func (*PolicerBindReply) GetMessageName() string
- func (*PolicerBindReply) GetMessageType() api.MessageType
- func (m *PolicerBindReply) Marshal(b []byte) ([]byte, error)
- func (m *PolicerBindReply) Reset()
- func (m *PolicerBindReply) Size() (size int)
- func (m *PolicerBindReply) Unmarshal(b []byte) error
- type PolicerDetails
- func (*PolicerDetails) GetCrcString() string
- func (*PolicerDetails) GetMessageName() string
- func (*PolicerDetails) GetMessageType() api.MessageType
- func (m *PolicerDetails) Marshal(b []byte) ([]byte, error)
- func (m *PolicerDetails) Reset()
- func (m *PolicerDetails) Size() (size int)
- func (m *PolicerDetails) Unmarshal(b []byte) error
- type PolicerDump
- func (*PolicerDump) GetCrcString() string
- func (*PolicerDump) GetMessageName() string
- func (*PolicerDump) GetMessageType() api.MessageType
- func (m *PolicerDump) Marshal(b []byte) ([]byte, error)
- func (m *PolicerDump) Reset()
- func (m *PolicerDump) Size() (size int)
- func (m *PolicerDump) Unmarshal(b []byte) error
- type PolicerInput
- func (*PolicerInput) GetCrcString() string
- func (*PolicerInput) GetMessageName() string
- func (*PolicerInput) GetMessageType() api.MessageType
- func (m *PolicerInput) Marshal(b []byte) ([]byte, error)
- func (m *PolicerInput) Reset()
- func (m *PolicerInput) Size() (size int)
- func (m *PolicerInput) Unmarshal(b []byte) error
- type PolicerInputReply
- func (*PolicerInputReply) GetCrcString() string
- func (*PolicerInputReply) GetMessageName() string
- func (*PolicerInputReply) GetMessageType() api.MessageType
- func (m *PolicerInputReply) Marshal(b []byte) ([]byte, error)
- func (m *PolicerInputReply) Reset()
- func (m *PolicerInputReply) Size() (size int)
- func (m *PolicerInputReply) Unmarshal(b []byte) error
- type RPCService
- type RPCService_PolicerDumpClient
Constants ¶
View Source
const ( APIFile = "policer" APIVersion = "2.0.0" VersionCrc = 0xf14848c )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type PolicerAddDel ¶
type PolicerAddDel struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` Name string `binapi:"string[64],name=name" json:"name,omitempty"` Cir uint32 `binapi:"u32,name=cir" json:"cir,omitempty"` Eir uint32 `binapi:"u32,name=eir" json:"eir,omitempty"` Cb uint64 `binapi:"u64,name=cb" json:"cb,omitempty"` Eb uint64 `binapi:"u64,name=eb" json:"eb,omitempty"` RateType policer_types.Sse2QosRateType `binapi:"sse2_qos_rate_type,name=rate_type" json:"rate_type,omitempty"` RoundType policer_types.Sse2QosRoundType `binapi:"sse2_qos_round_type,name=round_type" json:"round_type,omitempty"` Type policer_types.Sse2QosPolicerType `binapi:"sse2_qos_policer_type,name=type" json:"type,omitempty"` ColorAware bool `binapi:"bool,name=color_aware" json:"color_aware,omitempty"` ConformAction policer_types.Sse2QosAction `binapi:"sse2_qos_action,name=conform_action" json:"conform_action,omitempty"` ExceedAction policer_types.Sse2QosAction `binapi:"sse2_qos_action,name=exceed_action" json:"exceed_action,omitempty"` ViolateAction policer_types.Sse2QosAction `binapi:"sse2_qos_action,name=violate_action" json:"violate_action,omitempty"` }
PolicerAddDel defines message 'policer_add_del'.
func (*PolicerAddDel) GetCrcString ¶
func (*PolicerAddDel) GetCrcString() string
func (*PolicerAddDel) GetMessageName ¶
func (*PolicerAddDel) GetMessageName() string
func (*PolicerAddDel) GetMessageType ¶
func (*PolicerAddDel) GetMessageType() api.MessageType
func (*PolicerAddDel) Reset ¶
func (m *PolicerAddDel) Reset()
func (*PolicerAddDel) Size ¶
func (m *PolicerAddDel) Size() (size int)
func (*PolicerAddDel) Unmarshal ¶
func (m *PolicerAddDel) Unmarshal(b []byte) error
type PolicerAddDelReply ¶
type PolicerAddDelReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"` }
PolicerAddDelReply defines message 'policer_add_del_reply'.
func (*PolicerAddDelReply) GetCrcString ¶
func (*PolicerAddDelReply) GetCrcString() string
func (*PolicerAddDelReply) GetMessageName ¶
func (*PolicerAddDelReply) GetMessageName() string
func (*PolicerAddDelReply) GetMessageType ¶
func (*PolicerAddDelReply) GetMessageType() api.MessageType
func (*PolicerAddDelReply) Reset ¶
func (m *PolicerAddDelReply) Reset()
func (*PolicerAddDelReply) Size ¶
func (m *PolicerAddDelReply) Size() (size int)
func (*PolicerAddDelReply) Unmarshal ¶
func (m *PolicerAddDelReply) Unmarshal(b []byte) error
type PolicerBind ¶
type PolicerBind struct { Name string `binapi:"string[64],name=name" json:"name,omitempty"` WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"` BindEnable bool `binapi:"bool,name=bind_enable" json:"bind_enable,omitempty"` }
PolicerBind defines message 'policer_bind'.
func (*PolicerBind) GetCrcString ¶
func (*PolicerBind) GetCrcString() string
func (*PolicerBind) GetMessageName ¶
func (*PolicerBind) GetMessageName() string
func (*PolicerBind) GetMessageType ¶
func (*PolicerBind) GetMessageType() api.MessageType
func (*PolicerBind) Reset ¶
func (m *PolicerBind) Reset()
func (*PolicerBind) Size ¶
func (m *PolicerBind) Size() (size int)
func (*PolicerBind) Unmarshal ¶
func (m *PolicerBind) Unmarshal(b []byte) error
type PolicerBindReply ¶
type PolicerBindReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PolicerBindReply defines message 'policer_bind_reply'.
func (*PolicerBindReply) GetCrcString ¶
func (*PolicerBindReply) GetCrcString() string
func (*PolicerBindReply) GetMessageName ¶
func (*PolicerBindReply) GetMessageName() string
func (*PolicerBindReply) GetMessageType ¶
func (*PolicerBindReply) GetMessageType() api.MessageType
func (*PolicerBindReply) Reset ¶
func (m *PolicerBindReply) Reset()
func (*PolicerBindReply) Size ¶
func (m *PolicerBindReply) Size() (size int)
func (*PolicerBindReply) Unmarshal ¶
func (m *PolicerBindReply) Unmarshal(b []byte) error
type PolicerDetails ¶
type PolicerDetails struct { Name string `binapi:"string[64],name=name" json:"name,omitempty"` Cir uint32 `binapi:"u32,name=cir" json:"cir,omitempty"` Eir uint32 `binapi:"u32,name=eir" json:"eir,omitempty"` Cb uint64 `binapi:"u64,name=cb" json:"cb,omitempty"` Eb uint64 `binapi:"u64,name=eb" json:"eb,omitempty"` RateType policer_types.Sse2QosRateType `binapi:"sse2_qos_rate_type,name=rate_type" json:"rate_type,omitempty"` RoundType policer_types.Sse2QosRoundType `binapi:"sse2_qos_round_type,name=round_type" json:"round_type,omitempty"` Type policer_types.Sse2QosPolicerType `binapi:"sse2_qos_policer_type,name=type" json:"type,omitempty"` ConformAction policer_types.Sse2QosAction `binapi:"sse2_qos_action,name=conform_action" json:"conform_action,omitempty"` ExceedAction policer_types.Sse2QosAction `binapi:"sse2_qos_action,name=exceed_action" json:"exceed_action,omitempty"` ViolateAction policer_types.Sse2QosAction `binapi:"sse2_qos_action,name=violate_action" json:"violate_action,omitempty"` SingleRate bool `binapi:"bool,name=single_rate" json:"single_rate,omitempty"` ColorAware bool `binapi:"bool,name=color_aware" json:"color_aware,omitempty"` Scale uint32 `binapi:"u32,name=scale" json:"scale,omitempty"` CirTokensPerPeriod uint32 `binapi:"u32,name=cir_tokens_per_period" json:"cir_tokens_per_period,omitempty"` PirTokensPerPeriod uint32 `binapi:"u32,name=pir_tokens_per_period" json:"pir_tokens_per_period,omitempty"` CurrentLimit uint32 `binapi:"u32,name=current_limit" json:"current_limit,omitempty"` CurrentBucket uint32 `binapi:"u32,name=current_bucket" json:"current_bucket,omitempty"` ExtendedLimit uint32 `binapi:"u32,name=extended_limit" json:"extended_limit,omitempty"` ExtendedBucket uint32 `binapi:"u32,name=extended_bucket" json:"extended_bucket,omitempty"` LastUpdateTime uint64 `binapi:"u64,name=last_update_time" json:"last_update_time,omitempty"` }
PolicerDetails defines message 'policer_details'.
func (*PolicerDetails) GetCrcString ¶
func (*PolicerDetails) GetCrcString() string
func (*PolicerDetails) GetMessageName ¶
func (*PolicerDetails) GetMessageName() string
func (*PolicerDetails) GetMessageType ¶
func (*PolicerDetails) GetMessageType() api.MessageType
func (*PolicerDetails) Reset ¶
func (m *PolicerDetails) Reset()
func (*PolicerDetails) Size ¶
func (m *PolicerDetails) Size() (size int)
func (*PolicerDetails) Unmarshal ¶
func (m *PolicerDetails) Unmarshal(b []byte) error
type PolicerDump ¶
type PolicerDump struct { MatchNameValid bool `binapi:"bool,name=match_name_valid" json:"match_name_valid,omitempty"` MatchName string `binapi:"string[64],name=match_name" json:"match_name,omitempty"` }
PolicerDump defines message 'policer_dump'.
func (*PolicerDump) GetCrcString ¶
func (*PolicerDump) GetCrcString() string
func (*PolicerDump) GetMessageName ¶
func (*PolicerDump) GetMessageName() string
func (*PolicerDump) GetMessageType ¶
func (*PolicerDump) GetMessageType() api.MessageType
func (*PolicerDump) Reset ¶
func (m *PolicerDump) Reset()
func (*PolicerDump) Size ¶
func (m *PolicerDump) Size() (size int)
func (*PolicerDump) Unmarshal ¶
func (m *PolicerDump) Unmarshal(b []byte) error
type PolicerInput ¶
type PolicerInput struct { Name string `binapi:"string[64],name=name" json:"name,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Apply bool `binapi:"bool,name=apply" json:"apply,omitempty"` }
PolicerInput defines message 'policer_input'.
func (*PolicerInput) GetCrcString ¶
func (*PolicerInput) GetCrcString() string
func (*PolicerInput) GetMessageName ¶
func (*PolicerInput) GetMessageName() string
func (*PolicerInput) GetMessageType ¶
func (*PolicerInput) GetMessageType() api.MessageType
func (*PolicerInput) Reset ¶
func (m *PolicerInput) Reset()
func (*PolicerInput) Size ¶
func (m *PolicerInput) Size() (size int)
func (*PolicerInput) Unmarshal ¶
func (m *PolicerInput) Unmarshal(b []byte) error
type PolicerInputReply ¶
type PolicerInputReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PolicerInputReply defines message 'policer_input_reply'.
func (*PolicerInputReply) GetCrcString ¶
func (*PolicerInputReply) GetCrcString() string
func (*PolicerInputReply) GetMessageName ¶
func (*PolicerInputReply) GetMessageName() string
func (*PolicerInputReply) GetMessageType ¶
func (*PolicerInputReply) GetMessageType() api.MessageType
func (*PolicerInputReply) Reset ¶
func (m *PolicerInputReply) Reset()
func (*PolicerInputReply) Size ¶
func (m *PolicerInputReply) Size() (size int)
func (*PolicerInputReply) Unmarshal ¶
func (m *PolicerInputReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { PolicerAddDel(ctx context.Context, in *PolicerAddDel) (*PolicerAddDelReply, error) PolicerBind(ctx context.Context, in *PolicerBind) (*PolicerBindReply, error) PolicerDump(ctx context.Context, in *PolicerDump) (RPCService_PolicerDumpClient, error) PolicerInput(ctx context.Context, in *PolicerInput) (*PolicerInputReply, error) }
RPCService defines RPC service policer.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_PolicerDumpClient ¶
type RPCService_PolicerDumpClient interface { Recv() (*PolicerDetails, error) api.Stream }
Click to show internal directories.
Click to hide internal directories.