Documentation
¶
Overview ¶
Package cnat contains generated bindings for API file cnat.api.
Contents:
1 enum 4 structs 16 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type CnatAddDelSnatPrefix
- func (*CnatAddDelSnatPrefix) GetCrcString() string
- func (*CnatAddDelSnatPrefix) GetMessageName() string
- func (*CnatAddDelSnatPrefix) GetMessageType() api.MessageType
- func (m *CnatAddDelSnatPrefix) Marshal(b []byte) ([]byte, error)
- func (m *CnatAddDelSnatPrefix) Reset()
- func (m *CnatAddDelSnatPrefix) Size() (size int)
- func (m *CnatAddDelSnatPrefix) Unmarshal(b []byte) error
- type CnatAddDelSnatPrefixReply
- func (*CnatAddDelSnatPrefixReply) GetCrcString() string
- func (*CnatAddDelSnatPrefixReply) GetMessageName() string
- func (*CnatAddDelSnatPrefixReply) GetMessageType() api.MessageType
- func (m *CnatAddDelSnatPrefixReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatAddDelSnatPrefixReply) Reset()
- func (m *CnatAddDelSnatPrefixReply) Size() (size int)
- func (m *CnatAddDelSnatPrefixReply) Unmarshal(b []byte) error
- type CnatEndpoint
- type CnatEndpointTuple
- type CnatGetSnatAddresses
- func (*CnatGetSnatAddresses) GetCrcString() string
- func (*CnatGetSnatAddresses) GetMessageName() string
- func (*CnatGetSnatAddresses) GetMessageType() api.MessageType
- func (m *CnatGetSnatAddresses) Marshal(b []byte) ([]byte, error)
- func (m *CnatGetSnatAddresses) Reset()
- func (m *CnatGetSnatAddresses) Size() (size int)
- func (m *CnatGetSnatAddresses) Unmarshal(b []byte) error
- type CnatGetSnatAddressesReply
- func (*CnatGetSnatAddressesReply) GetCrcString() string
- func (*CnatGetSnatAddressesReply) GetMessageName() string
- func (*CnatGetSnatAddressesReply) GetMessageType() api.MessageType
- func (m *CnatGetSnatAddressesReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatGetSnatAddressesReply) Reset()
- func (m *CnatGetSnatAddressesReply) Size() (size int)
- func (m *CnatGetSnatAddressesReply) Unmarshal(b []byte) error
- type CnatSession
- type CnatSessionDetails
- func (*CnatSessionDetails) GetCrcString() string
- func (*CnatSessionDetails) GetMessageName() string
- func (*CnatSessionDetails) GetMessageType() api.MessageType
- func (m *CnatSessionDetails) Marshal(b []byte) ([]byte, error)
- func (m *CnatSessionDetails) Reset()
- func (m *CnatSessionDetails) Size() (size int)
- func (m *CnatSessionDetails) Unmarshal(b []byte) error
- type CnatSessionDump
- func (*CnatSessionDump) GetCrcString() string
- func (*CnatSessionDump) GetMessageName() string
- func (*CnatSessionDump) GetMessageType() api.MessageType
- func (m *CnatSessionDump) Marshal(b []byte) ([]byte, error)
- func (m *CnatSessionDump) Reset()
- func (m *CnatSessionDump) Size() (size int)
- func (m *CnatSessionDump) Unmarshal(b []byte) error
- type CnatSessionPurge
- func (*CnatSessionPurge) GetCrcString() string
- func (*CnatSessionPurge) GetMessageName() string
- func (*CnatSessionPurge) GetMessageType() api.MessageType
- func (m *CnatSessionPurge) Marshal(b []byte) ([]byte, error)
- func (m *CnatSessionPurge) Reset()
- func (m *CnatSessionPurge) Size() (size int)
- func (m *CnatSessionPurge) Unmarshal(b []byte) error
- type CnatSessionPurgeReply
- func (*CnatSessionPurgeReply) GetCrcString() string
- func (*CnatSessionPurgeReply) GetMessageName() string
- func (*CnatSessionPurgeReply) GetMessageType() api.MessageType
- func (m *CnatSessionPurgeReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatSessionPurgeReply) Reset()
- func (m *CnatSessionPurgeReply) Size() (size int)
- func (m *CnatSessionPurgeReply) Unmarshal(b []byte) error
- type CnatSetSnatAddresses
- func (*CnatSetSnatAddresses) GetCrcString() string
- func (*CnatSetSnatAddresses) GetMessageName() string
- func (*CnatSetSnatAddresses) GetMessageType() api.MessageType
- func (m *CnatSetSnatAddresses) Marshal(b []byte) ([]byte, error)
- func (m *CnatSetSnatAddresses) Reset()
- func (m *CnatSetSnatAddresses) Size() (size int)
- func (m *CnatSetSnatAddresses) Unmarshal(b []byte) error
- type CnatSetSnatAddressesReply
- func (*CnatSetSnatAddressesReply) GetCrcString() string
- func (*CnatSetSnatAddressesReply) GetMessageName() string
- func (*CnatSetSnatAddressesReply) GetMessageType() api.MessageType
- func (m *CnatSetSnatAddressesReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatSetSnatAddressesReply) Reset()
- func (m *CnatSetSnatAddressesReply) Size() (size int)
- func (m *CnatSetSnatAddressesReply) Unmarshal(b []byte) error
- type CnatTranslation
- type CnatTranslationDel
- func (*CnatTranslationDel) GetCrcString() string
- func (*CnatTranslationDel) GetMessageName() string
- func (*CnatTranslationDel) GetMessageType() api.MessageType
- func (m *CnatTranslationDel) Marshal(b []byte) ([]byte, error)
- func (m *CnatTranslationDel) Reset()
- func (m *CnatTranslationDel) Size() (size int)
- func (m *CnatTranslationDel) Unmarshal(b []byte) error
- type CnatTranslationDelReply
- func (*CnatTranslationDelReply) GetCrcString() string
- func (*CnatTranslationDelReply) GetMessageName() string
- func (*CnatTranslationDelReply) GetMessageType() api.MessageType
- func (m *CnatTranslationDelReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatTranslationDelReply) Reset()
- func (m *CnatTranslationDelReply) Size() (size int)
- func (m *CnatTranslationDelReply) Unmarshal(b []byte) error
- type CnatTranslationDetails
- func (*CnatTranslationDetails) GetCrcString() string
- func (*CnatTranslationDetails) GetMessageName() string
- func (*CnatTranslationDetails) GetMessageType() api.MessageType
- func (m *CnatTranslationDetails) Marshal(b []byte) ([]byte, error)
- func (m *CnatTranslationDetails) Reset()
- func (m *CnatTranslationDetails) Size() (size int)
- func (m *CnatTranslationDetails) Unmarshal(b []byte) error
- type CnatTranslationDump
- func (*CnatTranslationDump) GetCrcString() string
- func (*CnatTranslationDump) GetMessageName() string
- func (*CnatTranslationDump) GetMessageType() api.MessageType
- func (m *CnatTranslationDump) Marshal(b []byte) ([]byte, error)
- func (m *CnatTranslationDump) Reset()
- func (m *CnatTranslationDump) Size() (size int)
- func (m *CnatTranslationDump) Unmarshal(b []byte) error
- type CnatTranslationFlags
- type CnatTranslationUpdate
- func (*CnatTranslationUpdate) GetCrcString() string
- func (*CnatTranslationUpdate) GetMessageName() string
- func (*CnatTranslationUpdate) GetMessageType() api.MessageType
- func (m *CnatTranslationUpdate) Marshal(b []byte) ([]byte, error)
- func (m *CnatTranslationUpdate) Reset()
- func (m *CnatTranslationUpdate) Size() (size int)
- func (m *CnatTranslationUpdate) Unmarshal(b []byte) error
- type CnatTranslationUpdateReply
- func (*CnatTranslationUpdateReply) GetCrcString() string
- func (*CnatTranslationUpdateReply) GetMessageName() string
- func (*CnatTranslationUpdateReply) GetMessageType() api.MessageType
- func (m *CnatTranslationUpdateReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatTranslationUpdateReply) Reset()
- func (m *CnatTranslationUpdateReply) Size() (size int)
- func (m *CnatTranslationUpdateReply) Unmarshal(b []byte) error
- type RPCService
- type RPCService_CnatSessionDumpClient
- type RPCService_CnatTranslationDumpClient
Constants ¶
const ( APIFile = "cnat" APIVersion = "0.1.0" VersionCrc = 0xaa485140 )
Variables ¶
var ( CnatTranslationFlags_name = map[uint8]string{ 1: "CNAT_TRANSLATION_ALLOC_PORT", } CnatTranslationFlags_value = map[string]uint8{ "CNAT_TRANSLATION_ALLOC_PORT": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type CnatAddDelSnatPrefix ¶
type CnatAddDelSnatPrefix struct { IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"` Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"` }
CnatAddDelSnatPrefix defines message 'cnat_add_del_snat_prefix'.
func (*CnatAddDelSnatPrefix) GetCrcString ¶
func (*CnatAddDelSnatPrefix) GetCrcString() string
func (*CnatAddDelSnatPrefix) GetMessageName ¶
func (*CnatAddDelSnatPrefix) GetMessageName() string
func (*CnatAddDelSnatPrefix) GetMessageType ¶
func (*CnatAddDelSnatPrefix) GetMessageType() api.MessageType
func (*CnatAddDelSnatPrefix) Marshal ¶
func (m *CnatAddDelSnatPrefix) Marshal(b []byte) ([]byte, error)
func (*CnatAddDelSnatPrefix) Reset ¶
func (m *CnatAddDelSnatPrefix) Reset()
func (*CnatAddDelSnatPrefix) Size ¶
func (m *CnatAddDelSnatPrefix) Size() (size int)
func (*CnatAddDelSnatPrefix) Unmarshal ¶
func (m *CnatAddDelSnatPrefix) Unmarshal(b []byte) error
type CnatAddDelSnatPrefixReply ¶
type CnatAddDelSnatPrefixReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatAddDelSnatPrefixReply defines message 'cnat_add_del_snat_prefix_reply'.
func (*CnatAddDelSnatPrefixReply) GetCrcString ¶
func (*CnatAddDelSnatPrefixReply) GetCrcString() string
func (*CnatAddDelSnatPrefixReply) GetMessageName ¶
func (*CnatAddDelSnatPrefixReply) GetMessageName() string
func (*CnatAddDelSnatPrefixReply) GetMessageType ¶
func (*CnatAddDelSnatPrefixReply) GetMessageType() api.MessageType
func (*CnatAddDelSnatPrefixReply) Marshal ¶
func (m *CnatAddDelSnatPrefixReply) Marshal(b []byte) ([]byte, error)
func (*CnatAddDelSnatPrefixReply) Reset ¶
func (m *CnatAddDelSnatPrefixReply) Reset()
func (*CnatAddDelSnatPrefixReply) Size ¶
func (m *CnatAddDelSnatPrefixReply) Size() (size int)
func (*CnatAddDelSnatPrefixReply) Unmarshal ¶
func (m *CnatAddDelSnatPrefixReply) Unmarshal(b []byte) error
type CnatEndpoint ¶
type CnatEndpoint struct { Addr ip_types.Address `binapi:"address,name=addr" json:"addr,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IfAf ip_types.AddressFamily `binapi:"address_family,name=if_af" json:"if_af,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` }
CnatEndpoint defines type 'cnat_endpoint'.
type CnatEndpointTuple ¶
type CnatEndpointTuple struct { DstEp CnatEndpoint `binapi:"cnat_endpoint,name=dst_ep" json:"dst_ep,omitempty"` SrcEp CnatEndpoint `binapi:"cnat_endpoint,name=src_ep" json:"src_ep,omitempty"` }
CnatEndpointTuple defines type 'cnat_endpoint_tuple'.
type CnatGetSnatAddresses ¶
type CnatGetSnatAddresses struct{}
CnatGetSnatAddresses defines message 'cnat_get_snat_addresses'.
func (*CnatGetSnatAddresses) GetCrcString ¶
func (*CnatGetSnatAddresses) GetCrcString() string
func (*CnatGetSnatAddresses) GetMessageName ¶
func (*CnatGetSnatAddresses) GetMessageName() string
func (*CnatGetSnatAddresses) GetMessageType ¶
func (*CnatGetSnatAddresses) GetMessageType() api.MessageType
func (*CnatGetSnatAddresses) Marshal ¶
func (m *CnatGetSnatAddresses) Marshal(b []byte) ([]byte, error)
func (*CnatGetSnatAddresses) Reset ¶
func (m *CnatGetSnatAddresses) Reset()
func (*CnatGetSnatAddresses) Size ¶
func (m *CnatGetSnatAddresses) Size() (size int)
func (*CnatGetSnatAddresses) Unmarshal ¶
func (m *CnatGetSnatAddresses) Unmarshal(b []byte) error
type CnatGetSnatAddressesReply ¶
type CnatGetSnatAddressesReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` SnatIP4 ip_types.IP4Address `binapi:"ip4_address,name=snat_ip4" json:"snat_ip4,omitempty"` SnatIP6 ip_types.IP6Address `binapi:"ip6_address,name=snat_ip6" json:"snat_ip6,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
CnatGetSnatAddressesReply defines message 'cnat_get_snat_addresses_reply'.
func (*CnatGetSnatAddressesReply) GetCrcString ¶
func (*CnatGetSnatAddressesReply) GetCrcString() string
func (*CnatGetSnatAddressesReply) GetMessageName ¶
func (*CnatGetSnatAddressesReply) GetMessageName() string
func (*CnatGetSnatAddressesReply) GetMessageType ¶
func (*CnatGetSnatAddressesReply) GetMessageType() api.MessageType
func (*CnatGetSnatAddressesReply) Marshal ¶
func (m *CnatGetSnatAddressesReply) Marshal(b []byte) ([]byte, error)
func (*CnatGetSnatAddressesReply) Reset ¶
func (m *CnatGetSnatAddressesReply) Reset()
func (*CnatGetSnatAddressesReply) Size ¶
func (m *CnatGetSnatAddressesReply) Size() (size int)
func (*CnatGetSnatAddressesReply) Unmarshal ¶
func (m *CnatGetSnatAddressesReply) Unmarshal(b []byte) error
type CnatSession ¶
type CnatSession struct { Src CnatEndpoint `binapi:"cnat_endpoint,name=src" json:"src,omitempty"` Dst CnatEndpoint `binapi:"cnat_endpoint,name=dst" json:"dst,omitempty"` New CnatEndpoint `binapi:"cnat_endpoint,name=new" json:"new,omitempty"` IPProto ip_types.IPProto `binapi:"ip_proto,name=ip_proto" json:"ip_proto,omitempty"` Timestamp float64 `binapi:"f64,name=timestamp" json:"timestamp,omitempty"` }
CnatSession defines type 'cnat_session'.
type CnatSessionDetails ¶
type CnatSessionDetails struct {
Session CnatSession `binapi:"cnat_session,name=session" json:"session,omitempty"`
}
CnatSessionDetails defines message 'cnat_session_details'.
func (*CnatSessionDetails) GetCrcString ¶
func (*CnatSessionDetails) GetCrcString() string
func (*CnatSessionDetails) GetMessageName ¶
func (*CnatSessionDetails) GetMessageName() string
func (*CnatSessionDetails) GetMessageType ¶
func (*CnatSessionDetails) GetMessageType() api.MessageType
func (*CnatSessionDetails) Reset ¶
func (m *CnatSessionDetails) Reset()
func (*CnatSessionDetails) Size ¶
func (m *CnatSessionDetails) Size() (size int)
func (*CnatSessionDetails) Unmarshal ¶
func (m *CnatSessionDetails) Unmarshal(b []byte) error
type CnatSessionDump ¶
type CnatSessionDump struct{}
CnatSessionDump defines message 'cnat_session_dump'.
func (*CnatSessionDump) GetCrcString ¶
func (*CnatSessionDump) GetCrcString() string
func (*CnatSessionDump) GetMessageName ¶
func (*CnatSessionDump) GetMessageName() string
func (*CnatSessionDump) GetMessageType ¶
func (*CnatSessionDump) GetMessageType() api.MessageType
func (*CnatSessionDump) Reset ¶
func (m *CnatSessionDump) Reset()
func (*CnatSessionDump) Size ¶
func (m *CnatSessionDump) Size() (size int)
func (*CnatSessionDump) Unmarshal ¶
func (m *CnatSessionDump) Unmarshal(b []byte) error
type CnatSessionPurge ¶
type CnatSessionPurge struct{}
CnatSessionPurge defines message 'cnat_session_purge'.
func (*CnatSessionPurge) GetCrcString ¶
func (*CnatSessionPurge) GetCrcString() string
func (*CnatSessionPurge) GetMessageName ¶
func (*CnatSessionPurge) GetMessageName() string
func (*CnatSessionPurge) GetMessageType ¶
func (*CnatSessionPurge) GetMessageType() api.MessageType
func (*CnatSessionPurge) Reset ¶
func (m *CnatSessionPurge) Reset()
func (*CnatSessionPurge) Size ¶
func (m *CnatSessionPurge) Size() (size int)
func (*CnatSessionPurge) Unmarshal ¶
func (m *CnatSessionPurge) Unmarshal(b []byte) error
type CnatSessionPurgeReply ¶
type CnatSessionPurgeReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatSessionPurgeReply defines message 'cnat_session_purge_reply'.
func (*CnatSessionPurgeReply) GetCrcString ¶
func (*CnatSessionPurgeReply) GetCrcString() string
func (*CnatSessionPurgeReply) GetMessageName ¶
func (*CnatSessionPurgeReply) GetMessageName() string
func (*CnatSessionPurgeReply) GetMessageType ¶
func (*CnatSessionPurgeReply) GetMessageType() api.MessageType
func (*CnatSessionPurgeReply) Marshal ¶
func (m *CnatSessionPurgeReply) Marshal(b []byte) ([]byte, error)
func (*CnatSessionPurgeReply) Reset ¶
func (m *CnatSessionPurgeReply) Reset()
func (*CnatSessionPurgeReply) Size ¶
func (m *CnatSessionPurgeReply) Size() (size int)
func (*CnatSessionPurgeReply) Unmarshal ¶
func (m *CnatSessionPurgeReply) Unmarshal(b []byte) error
type CnatSetSnatAddresses ¶
type CnatSetSnatAddresses struct { SnatIP4 ip_types.IP4Address `binapi:"ip4_address,name=snat_ip4" json:"snat_ip4,omitempty"` SnatIP6 ip_types.IP6Address `binapi:"ip6_address,name=snat_ip6" json:"snat_ip6,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
CnatSetSnatAddresses defines message 'cnat_set_snat_addresses'.
func (*CnatSetSnatAddresses) GetCrcString ¶
func (*CnatSetSnatAddresses) GetCrcString() string
func (*CnatSetSnatAddresses) GetMessageName ¶
func (*CnatSetSnatAddresses) GetMessageName() string
func (*CnatSetSnatAddresses) GetMessageType ¶
func (*CnatSetSnatAddresses) GetMessageType() api.MessageType
func (*CnatSetSnatAddresses) Marshal ¶
func (m *CnatSetSnatAddresses) Marshal(b []byte) ([]byte, error)
func (*CnatSetSnatAddresses) Reset ¶
func (m *CnatSetSnatAddresses) Reset()
func (*CnatSetSnatAddresses) Size ¶
func (m *CnatSetSnatAddresses) Size() (size int)
func (*CnatSetSnatAddresses) Unmarshal ¶
func (m *CnatSetSnatAddresses) Unmarshal(b []byte) error
type CnatSetSnatAddressesReply ¶
type CnatSetSnatAddressesReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatSetSnatAddressesReply defines message 'cnat_set_snat_addresses_reply'.
func (*CnatSetSnatAddressesReply) GetCrcString ¶
func (*CnatSetSnatAddressesReply) GetCrcString() string
func (*CnatSetSnatAddressesReply) GetMessageName ¶
func (*CnatSetSnatAddressesReply) GetMessageName() string
func (*CnatSetSnatAddressesReply) GetMessageType ¶
func (*CnatSetSnatAddressesReply) GetMessageType() api.MessageType
func (*CnatSetSnatAddressesReply) Marshal ¶
func (m *CnatSetSnatAddressesReply) Marshal(b []byte) ([]byte, error)
func (*CnatSetSnatAddressesReply) Reset ¶
func (m *CnatSetSnatAddressesReply) Reset()
func (*CnatSetSnatAddressesReply) Size ¶
func (m *CnatSetSnatAddressesReply) Size() (size int)
func (*CnatSetSnatAddressesReply) Unmarshal ¶
func (m *CnatSetSnatAddressesReply) Unmarshal(b []byte) error
type CnatTranslation ¶
type CnatTranslation struct { Vip CnatEndpoint `binapi:"cnat_endpoint,name=vip" json:"vip,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` IPProto ip_types.IPProto `binapi:"ip_proto,name=ip_proto" json:"ip_proto,omitempty"` IsRealIP uint8 `binapi:"u8,name=is_real_ip" json:"is_real_ip,omitempty"` Flags uint8 `binapi:"u8,name=flags" json:"flags,omitempty"` NPaths uint32 `binapi:"u32,name=n_paths" json:"-"` Paths []CnatEndpointTuple `binapi:"cnat_endpoint_tuple[n_paths],name=paths" json:"paths,omitempty"` }
CnatTranslation defines type 'cnat_translation'.
type CnatTranslationDel ¶
type CnatTranslationDel struct {
ID uint32 `binapi:"u32,name=id" json:"id,omitempty"`
}
CnatTranslationDel defines message 'cnat_translation_del'.
func (*CnatTranslationDel) GetCrcString ¶
func (*CnatTranslationDel) GetCrcString() string
func (*CnatTranslationDel) GetMessageName ¶
func (*CnatTranslationDel) GetMessageName() string
func (*CnatTranslationDel) GetMessageType ¶
func (*CnatTranslationDel) GetMessageType() api.MessageType
func (*CnatTranslationDel) Reset ¶
func (m *CnatTranslationDel) Reset()
func (*CnatTranslationDel) Size ¶
func (m *CnatTranslationDel) Size() (size int)
func (*CnatTranslationDel) Unmarshal ¶
func (m *CnatTranslationDel) Unmarshal(b []byte) error
type CnatTranslationDelReply ¶
type CnatTranslationDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatTranslationDelReply defines message 'cnat_translation_del_reply'.
func (*CnatTranslationDelReply) GetCrcString ¶
func (*CnatTranslationDelReply) GetCrcString() string
func (*CnatTranslationDelReply) GetMessageName ¶
func (*CnatTranslationDelReply) GetMessageName() string
func (*CnatTranslationDelReply) GetMessageType ¶
func (*CnatTranslationDelReply) GetMessageType() api.MessageType
func (*CnatTranslationDelReply) Marshal ¶
func (m *CnatTranslationDelReply) Marshal(b []byte) ([]byte, error)
func (*CnatTranslationDelReply) Reset ¶
func (m *CnatTranslationDelReply) Reset()
func (*CnatTranslationDelReply) Size ¶
func (m *CnatTranslationDelReply) Size() (size int)
func (*CnatTranslationDelReply) Unmarshal ¶
func (m *CnatTranslationDelReply) Unmarshal(b []byte) error
type CnatTranslationDetails ¶
type CnatTranslationDetails struct {
Translation CnatTranslation `binapi:"cnat_translation,name=translation" json:"translation,omitempty"`
}
CnatTranslationDetails defines message 'cnat_translation_details'.
func (*CnatTranslationDetails) GetCrcString ¶
func (*CnatTranslationDetails) GetCrcString() string
func (*CnatTranslationDetails) GetMessageName ¶
func (*CnatTranslationDetails) GetMessageName() string
func (*CnatTranslationDetails) GetMessageType ¶
func (*CnatTranslationDetails) GetMessageType() api.MessageType
func (*CnatTranslationDetails) Marshal ¶
func (m *CnatTranslationDetails) Marshal(b []byte) ([]byte, error)
func (*CnatTranslationDetails) Reset ¶
func (m *CnatTranslationDetails) Reset()
func (*CnatTranslationDetails) Size ¶
func (m *CnatTranslationDetails) Size() (size int)
func (*CnatTranslationDetails) Unmarshal ¶
func (m *CnatTranslationDetails) Unmarshal(b []byte) error
type CnatTranslationDump ¶
type CnatTranslationDump struct{}
CnatTranslationDump defines message 'cnat_translation_dump'.
func (*CnatTranslationDump) GetCrcString ¶
func (*CnatTranslationDump) GetCrcString() string
func (*CnatTranslationDump) GetMessageName ¶
func (*CnatTranslationDump) GetMessageName() string
func (*CnatTranslationDump) GetMessageType ¶
func (*CnatTranslationDump) GetMessageType() api.MessageType
func (*CnatTranslationDump) Marshal ¶
func (m *CnatTranslationDump) Marshal(b []byte) ([]byte, error)
func (*CnatTranslationDump) Reset ¶
func (m *CnatTranslationDump) Reset()
func (*CnatTranslationDump) Size ¶
func (m *CnatTranslationDump) Size() (size int)
func (*CnatTranslationDump) Unmarshal ¶
func (m *CnatTranslationDump) Unmarshal(b []byte) error
type CnatTranslationFlags ¶
type CnatTranslationFlags uint8
CnatTranslationFlags defines enum 'cnat_translation_flags'.
const (
CNAT_TRANSLATION_ALLOC_PORT CnatTranslationFlags = 1
)
func (CnatTranslationFlags) String ¶
func (x CnatTranslationFlags) String() string
type CnatTranslationUpdate ¶
type CnatTranslationUpdate struct {
Translation CnatTranslation `binapi:"cnat_translation,name=translation" json:"translation,omitempty"`
}
CnatTranslationUpdate defines message 'cnat_translation_update'.
func (*CnatTranslationUpdate) GetCrcString ¶
func (*CnatTranslationUpdate) GetCrcString() string
func (*CnatTranslationUpdate) GetMessageName ¶
func (*CnatTranslationUpdate) GetMessageName() string
func (*CnatTranslationUpdate) GetMessageType ¶
func (*CnatTranslationUpdate) GetMessageType() api.MessageType
func (*CnatTranslationUpdate) Marshal ¶
func (m *CnatTranslationUpdate) Marshal(b []byte) ([]byte, error)
func (*CnatTranslationUpdate) Reset ¶
func (m *CnatTranslationUpdate) Reset()
func (*CnatTranslationUpdate) Size ¶
func (m *CnatTranslationUpdate) Size() (size int)
func (*CnatTranslationUpdate) Unmarshal ¶
func (m *CnatTranslationUpdate) Unmarshal(b []byte) error
type CnatTranslationUpdateReply ¶
type CnatTranslationUpdateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` }
CnatTranslationUpdateReply defines message 'cnat_translation_update_reply'.
func (*CnatTranslationUpdateReply) GetCrcString ¶
func (*CnatTranslationUpdateReply) GetCrcString() string
func (*CnatTranslationUpdateReply) GetMessageName ¶
func (*CnatTranslationUpdateReply) GetMessageName() string
func (*CnatTranslationUpdateReply) GetMessageType ¶
func (*CnatTranslationUpdateReply) GetMessageType() api.MessageType
func (*CnatTranslationUpdateReply) Marshal ¶
func (m *CnatTranslationUpdateReply) Marshal(b []byte) ([]byte, error)
func (*CnatTranslationUpdateReply) Reset ¶
func (m *CnatTranslationUpdateReply) Reset()
func (*CnatTranslationUpdateReply) Size ¶
func (m *CnatTranslationUpdateReply) Size() (size int)
func (*CnatTranslationUpdateReply) Unmarshal ¶
func (m *CnatTranslationUpdateReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { CnatAddDelSnatPrefix(ctx context.Context, in *CnatAddDelSnatPrefix) (*CnatAddDelSnatPrefixReply, error) CnatGetSnatAddresses(ctx context.Context, in *CnatGetSnatAddresses) (*CnatGetSnatAddressesReply, error) CnatSessionDump(ctx context.Context, in *CnatSessionDump) (RPCService_CnatSessionDumpClient, error) CnatSessionPurge(ctx context.Context, in *CnatSessionPurge) (*CnatSessionPurgeReply, error) CnatSetSnatAddresses(ctx context.Context, in *CnatSetSnatAddresses) (*CnatSetSnatAddressesReply, error) CnatTranslationDel(ctx context.Context, in *CnatTranslationDel) (*CnatTranslationDelReply, error) CnatTranslationDump(ctx context.Context, in *CnatTranslationDump) (RPCService_CnatTranslationDumpClient, error) CnatTranslationUpdate(ctx context.Context, in *CnatTranslationUpdate) (*CnatTranslationUpdateReply, error) }
RPCService defines RPC service cnat.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_CnatSessionDumpClient ¶
type RPCService_CnatSessionDumpClient interface { Recv() (*CnatSessionDetails, error) api.Stream }
type RPCService_CnatTranslationDumpClient ¶
type RPCService_CnatTranslationDumpClient interface { Recv() (*CnatTranslationDetails, error) api.Stream }