Documentation ¶
Overview ¶
Package urpf contains generated bindings for API file urpf.api.
Contents:
1 enum 4 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type UrpfMode
- type UrpfUpdate
- func (*UrpfUpdate) GetCrcString() string
- func (*UrpfUpdate) GetMessageName() string
- func (*UrpfUpdate) GetMessageType() api.MessageType
- func (m *UrpfUpdate) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdate) Reset()
- func (m *UrpfUpdate) Size() (size int)
- func (m *UrpfUpdate) Unmarshal(b []byte) error
- type UrpfUpdateReply
- func (*UrpfUpdateReply) GetCrcString() string
- func (*UrpfUpdateReply) GetMessageName() string
- func (*UrpfUpdateReply) GetMessageType() api.MessageType
- func (m *UrpfUpdateReply) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdateReply) Reset()
- func (m *UrpfUpdateReply) Size() (size int)
- func (m *UrpfUpdateReply) Unmarshal(b []byte) error
- type UrpfUpdateV2
- func (*UrpfUpdateV2) GetCrcString() string
- func (*UrpfUpdateV2) GetMessageName() string
- func (*UrpfUpdateV2) GetMessageType() api.MessageType
- func (m *UrpfUpdateV2) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdateV2) Reset()
- func (m *UrpfUpdateV2) Size() (size int)
- func (m *UrpfUpdateV2) Unmarshal(b []byte) error
- type UrpfUpdateV2Reply
- func (*UrpfUpdateV2Reply) GetCrcString() string
- func (*UrpfUpdateV2Reply) GetMessageName() string
- func (*UrpfUpdateV2Reply) GetMessageType() api.MessageType
- func (m *UrpfUpdateV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *UrpfUpdateV2Reply) Reset()
- func (m *UrpfUpdateV2Reply) Size() (size int)
- func (m *UrpfUpdateV2Reply) Unmarshal(b []byte) error
Constants ¶
View Source
const ( APIFile = "urpf" APIVersion = "1.0.0" VersionCrc = 0xd0c7b3c9 )
Variables ¶
View Source
var ( UrpfMode_name = map[uint8]string{ 0: "URPF_API_MODE_OFF", 1: "URPF_API_MODE_LOOSE", 2: "URPF_API_MODE_STRICT", } UrpfMode_value = map[string]uint8{ "URPF_API_MODE_OFF": 0, "URPF_API_MODE_LOOSE": 1, "URPF_API_MODE_STRICT": 2, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { UrpfUpdate(ctx context.Context, in *UrpfUpdate) (*UrpfUpdateReply, error) UrpfUpdateV2(ctx context.Context, in *UrpfUpdateV2) (*UrpfUpdateV2Reply, error) }
RPCService defines RPC service urpf.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type UrpfUpdate ¶
type UrpfUpdate struct { IsInput bool `binapi:"bool,name=is_input,default=true" json:"is_input,omitempty"` Mode UrpfMode `binapi:"urpf_mode,name=mode" json:"mode,omitempty"` Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
UrpfUpdate defines message 'urpf_update'.
func (*UrpfUpdate) GetCrcString ¶
func (*UrpfUpdate) GetCrcString() string
func (*UrpfUpdate) GetMessageName ¶
func (*UrpfUpdate) GetMessageName() string
func (*UrpfUpdate) GetMessageType ¶
func (*UrpfUpdate) GetMessageType() api.MessageType
func (*UrpfUpdate) Reset ¶
func (m *UrpfUpdate) Reset()
func (*UrpfUpdate) Size ¶
func (m *UrpfUpdate) Size() (size int)
func (*UrpfUpdate) Unmarshal ¶
func (m *UrpfUpdate) Unmarshal(b []byte) error
type UrpfUpdateReply ¶
type UrpfUpdateReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
UrpfUpdateReply defines message 'urpf_update_reply'.
func (*UrpfUpdateReply) GetCrcString ¶
func (*UrpfUpdateReply) GetCrcString() string
func (*UrpfUpdateReply) GetMessageName ¶
func (*UrpfUpdateReply) GetMessageName() string
func (*UrpfUpdateReply) GetMessageType ¶
func (*UrpfUpdateReply) GetMessageType() api.MessageType
func (*UrpfUpdateReply) Reset ¶
func (m *UrpfUpdateReply) Reset()
func (*UrpfUpdateReply) Size ¶
func (m *UrpfUpdateReply) Size() (size int)
func (*UrpfUpdateReply) Unmarshal ¶
func (m *UrpfUpdateReply) Unmarshal(b []byte) error
type UrpfUpdateV2 ¶
type UrpfUpdateV2 struct { IsInput bool `binapi:"bool,name=is_input,default=true" json:"is_input,omitempty"` Mode UrpfMode `binapi:"urpf_mode,name=mode" json:"mode,omitempty"` Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` TableID uint32 `binapi:"u32,name=table_id,default=4294967295" json:"table_id,omitempty"` }
UrpfUpdateV2 defines message 'urpf_update_v2'.
func (*UrpfUpdateV2) GetCrcString ¶
func (*UrpfUpdateV2) GetCrcString() string
func (*UrpfUpdateV2) GetMessageName ¶
func (*UrpfUpdateV2) GetMessageName() string
func (*UrpfUpdateV2) GetMessageType ¶
func (*UrpfUpdateV2) GetMessageType() api.MessageType
func (*UrpfUpdateV2) Reset ¶
func (m *UrpfUpdateV2) Reset()
func (*UrpfUpdateV2) Size ¶
func (m *UrpfUpdateV2) Size() (size int)
func (*UrpfUpdateV2) Unmarshal ¶
func (m *UrpfUpdateV2) Unmarshal(b []byte) error
type UrpfUpdateV2Reply ¶
type UrpfUpdateV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
UrpfUpdateV2Reply defines message 'urpf_update_v2_reply'.
func (*UrpfUpdateV2Reply) GetCrcString ¶
func (*UrpfUpdateV2Reply) GetCrcString() string
func (*UrpfUpdateV2Reply) GetMessageName ¶
func (*UrpfUpdateV2Reply) GetMessageName() string
func (*UrpfUpdateV2Reply) GetMessageType ¶
func (*UrpfUpdateV2Reply) GetMessageType() api.MessageType
func (*UrpfUpdateV2Reply) Reset ¶
func (m *UrpfUpdateV2Reply) Reset()
func (*UrpfUpdateV2Reply) Size ¶
func (m *UrpfUpdateV2Reply) Size() (size int)
func (*UrpfUpdateV2Reply) Unmarshal ¶
func (m *UrpfUpdateV2Reply) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.