Documentation ¶
Overview ¶
Package cnat contains generated bindings for API file cnat.api.
Contents:
5 enums 4 structs 20 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type CnatEndpoint
- type CnatEndpointTuple
- type CnatEndpointTupleFlags
- 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 CnatLbType
- 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 CnatSetSnatPolicy
- func (*CnatSetSnatPolicy) GetCrcString() string
- func (*CnatSetSnatPolicy) GetMessageName() string
- func (*CnatSetSnatPolicy) GetMessageType() api.MessageType
- func (m *CnatSetSnatPolicy) Marshal(b []byte) ([]byte, error)
- func (m *CnatSetSnatPolicy) Reset()
- func (m *CnatSetSnatPolicy) Size() (size int)
- func (m *CnatSetSnatPolicy) Unmarshal(b []byte) error
- type CnatSetSnatPolicyReply
- func (*CnatSetSnatPolicyReply) GetCrcString() string
- func (*CnatSetSnatPolicyReply) GetMessageName() string
- func (*CnatSetSnatPolicyReply) GetMessageType() api.MessageType
- func (m *CnatSetSnatPolicyReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatSetSnatPolicyReply) Reset()
- func (m *CnatSetSnatPolicyReply) Size() (size int)
- func (m *CnatSetSnatPolicyReply) Unmarshal(b []byte) error
- type CnatSnatPolicies
- type CnatSnatPolicyAddDelExcludePfx
- func (*CnatSnatPolicyAddDelExcludePfx) GetCrcString() string
- func (*CnatSnatPolicyAddDelExcludePfx) GetMessageName() string
- func (*CnatSnatPolicyAddDelExcludePfx) GetMessageType() api.MessageType
- func (m *CnatSnatPolicyAddDelExcludePfx) Marshal(b []byte) ([]byte, error)
- func (m *CnatSnatPolicyAddDelExcludePfx) Reset()
- func (m *CnatSnatPolicyAddDelExcludePfx) Size() (size int)
- func (m *CnatSnatPolicyAddDelExcludePfx) Unmarshal(b []byte) error
- type CnatSnatPolicyAddDelExcludePfxReply
- func (*CnatSnatPolicyAddDelExcludePfxReply) GetCrcString() string
- func (*CnatSnatPolicyAddDelExcludePfxReply) GetMessageName() string
- func (*CnatSnatPolicyAddDelExcludePfxReply) GetMessageType() api.MessageType
- func (m *CnatSnatPolicyAddDelExcludePfxReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatSnatPolicyAddDelExcludePfxReply) Reset()
- func (m *CnatSnatPolicyAddDelExcludePfxReply) Size() (size int)
- func (m *CnatSnatPolicyAddDelExcludePfxReply) Unmarshal(b []byte) error
- type CnatSnatPolicyAddDelIf
- func (*CnatSnatPolicyAddDelIf) GetCrcString() string
- func (*CnatSnatPolicyAddDelIf) GetMessageName() string
- func (*CnatSnatPolicyAddDelIf) GetMessageType() api.MessageType
- func (m *CnatSnatPolicyAddDelIf) Marshal(b []byte) ([]byte, error)
- func (m *CnatSnatPolicyAddDelIf) Reset()
- func (m *CnatSnatPolicyAddDelIf) Size() (size int)
- func (m *CnatSnatPolicyAddDelIf) Unmarshal(b []byte) error
- type CnatSnatPolicyAddDelIfReply
- func (*CnatSnatPolicyAddDelIfReply) GetCrcString() string
- func (*CnatSnatPolicyAddDelIfReply) GetMessageName() string
- func (*CnatSnatPolicyAddDelIfReply) GetMessageType() api.MessageType
- func (m *CnatSnatPolicyAddDelIfReply) Marshal(b []byte) ([]byte, error)
- func (m *CnatSnatPolicyAddDelIfReply) Reset()
- func (m *CnatSnatPolicyAddDelIfReply) Size() (size int)
- func (m *CnatSnatPolicyAddDelIfReply) Unmarshal(b []byte) error
- type CnatSnatPolicyTable
- 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.2.0" VersionCrc = 0xfd05573b )
Variables ¶
var ( CnatEndpointTupleFlags_name = map[uint8]string{ 1: "CNAT_EPT_NO_NAT", } CnatEndpointTupleFlags_value = map[string]uint8{ "CNAT_EPT_NO_NAT": 1, } )
var ( CnatLbType_name = map[uint8]string{ 0: "CNAT_LB_TYPE_DEFAULT", 1: "CNAT_LB_TYPE_MAGLEV", } CnatLbType_value = map[string]uint8{ "CNAT_LB_TYPE_DEFAULT": 0, "CNAT_LB_TYPE_MAGLEV": 1, } )
var ( CnatSnatPolicies_name = map[uint8]string{ 0: "CNAT_POLICY_NONE", 1: "CNAT_POLICY_IF_PFX", 2: "CNAT_POLICY_K8S", } CnatSnatPolicies_value = map[string]uint8{ "CNAT_POLICY_NONE": 0, "CNAT_POLICY_IF_PFX": 1, "CNAT_POLICY_K8S": 2, } )
var ( CnatSnatPolicyTable_name = map[uint8]string{ 0: "CNAT_POLICY_INCLUDE_V4", 1: "CNAT_POLICY_INCLUDE_V6", 2: "CNAT_POLICY_POD", } CnatSnatPolicyTable_value = map[string]uint8{ "CNAT_POLICY_INCLUDE_V4": 0, "CNAT_POLICY_INCLUDE_V6": 1, "CNAT_POLICY_POD": 2, } )
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 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"` Flags uint8 `binapi:"u8,name=flags" json:"flags,omitempty"` }
CnatEndpointTuple defines type 'cnat_endpoint_tuple'.
type CnatEndpointTupleFlags ¶
type CnatEndpointTupleFlags uint8
CnatEndpointTupleFlags defines enum 'cnat_endpoint_tuple_flags'.
const (
CNAT_EPT_NO_NAT CnatEndpointTupleFlags = 1
)
func (CnatEndpointTupleFlags) String ¶
func (x CnatEndpointTupleFlags) String() string
type CnatGetSnatAddresses ¶
type CnatGetSnatAddresses struct{}
CnatGetSnatAddresses defines message 'cnat_get_snat_addresses'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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 CnatLbType ¶
type CnatLbType uint8
CnatLbType defines enum 'cnat_lb_type'.
const ( CNAT_LB_TYPE_DEFAULT CnatLbType = 0 CNAT_LB_TYPE_MAGLEV CnatLbType = 1 )
func (CnatLbType) String ¶
func (x CnatLbType) String() string
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"` Location uint8 `binapi:"u8,name=location" json:"location,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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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 CnatSetSnatPolicy ¶
type CnatSetSnatPolicy struct {
Policy CnatSnatPolicies `binapi:"cnat_snat_policies,name=policy" json:"policy,omitempty"`
}
CnatSetSnatPolicy defines message 'cnat_set_snat_policy'. InProgress: the message form may change in the future versions
func (*CnatSetSnatPolicy) GetCrcString ¶
func (*CnatSetSnatPolicy) GetCrcString() string
func (*CnatSetSnatPolicy) GetMessageName ¶
func (*CnatSetSnatPolicy) GetMessageName() string
func (*CnatSetSnatPolicy) GetMessageType ¶
func (*CnatSetSnatPolicy) GetMessageType() api.MessageType
func (*CnatSetSnatPolicy) Reset ¶
func (m *CnatSetSnatPolicy) Reset()
func (*CnatSetSnatPolicy) Size ¶
func (m *CnatSetSnatPolicy) Size() (size int)
func (*CnatSetSnatPolicy) Unmarshal ¶
func (m *CnatSetSnatPolicy) Unmarshal(b []byte) error
type CnatSetSnatPolicyReply ¶
type CnatSetSnatPolicyReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatSetSnatPolicyReply defines message 'cnat_set_snat_policy_reply'. InProgress: the message form may change in the future versions
func (*CnatSetSnatPolicyReply) GetCrcString ¶
func (*CnatSetSnatPolicyReply) GetCrcString() string
func (*CnatSetSnatPolicyReply) GetMessageName ¶
func (*CnatSetSnatPolicyReply) GetMessageName() string
func (*CnatSetSnatPolicyReply) GetMessageType ¶
func (*CnatSetSnatPolicyReply) GetMessageType() api.MessageType
func (*CnatSetSnatPolicyReply) Marshal ¶
func (m *CnatSetSnatPolicyReply) Marshal(b []byte) ([]byte, error)
func (*CnatSetSnatPolicyReply) Reset ¶
func (m *CnatSetSnatPolicyReply) Reset()
func (*CnatSetSnatPolicyReply) Size ¶
func (m *CnatSetSnatPolicyReply) Size() (size int)
func (*CnatSetSnatPolicyReply) Unmarshal ¶
func (m *CnatSetSnatPolicyReply) Unmarshal(b []byte) error
type CnatSnatPolicies ¶
type CnatSnatPolicies uint8
CnatSnatPolicies defines enum 'cnat_snat_policies'.
const ( CNAT_POLICY_NONE CnatSnatPolicies = 0 CNAT_POLICY_IF_PFX CnatSnatPolicies = 1 CNAT_POLICY_K8S CnatSnatPolicies = 2 )
func (CnatSnatPolicies) String ¶
func (x CnatSnatPolicies) String() string
type CnatSnatPolicyAddDelExcludePfx ¶
type CnatSnatPolicyAddDelExcludePfx struct { IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"` Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"` }
CnatSnatPolicyAddDelExcludePfx defines message 'cnat_snat_policy_add_del_exclude_pfx'. InProgress: the message form may change in the future versions
func (*CnatSnatPolicyAddDelExcludePfx) GetCrcString ¶
func (*CnatSnatPolicyAddDelExcludePfx) GetCrcString() string
func (*CnatSnatPolicyAddDelExcludePfx) GetMessageName ¶
func (*CnatSnatPolicyAddDelExcludePfx) GetMessageName() string
func (*CnatSnatPolicyAddDelExcludePfx) GetMessageType ¶
func (*CnatSnatPolicyAddDelExcludePfx) GetMessageType() api.MessageType
func (*CnatSnatPolicyAddDelExcludePfx) Marshal ¶
func (m *CnatSnatPolicyAddDelExcludePfx) Marshal(b []byte) ([]byte, error)
func (*CnatSnatPolicyAddDelExcludePfx) Reset ¶
func (m *CnatSnatPolicyAddDelExcludePfx) Reset()
func (*CnatSnatPolicyAddDelExcludePfx) Size ¶
func (m *CnatSnatPolicyAddDelExcludePfx) Size() (size int)
func (*CnatSnatPolicyAddDelExcludePfx) Unmarshal ¶
func (m *CnatSnatPolicyAddDelExcludePfx) Unmarshal(b []byte) error
type CnatSnatPolicyAddDelExcludePfxReply ¶
type CnatSnatPolicyAddDelExcludePfxReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatSnatPolicyAddDelExcludePfxReply defines message 'cnat_snat_policy_add_del_exclude_pfx_reply'. InProgress: the message form may change in the future versions
func (*CnatSnatPolicyAddDelExcludePfxReply) GetCrcString ¶
func (*CnatSnatPolicyAddDelExcludePfxReply) GetCrcString() string
func (*CnatSnatPolicyAddDelExcludePfxReply) GetMessageName ¶
func (*CnatSnatPolicyAddDelExcludePfxReply) GetMessageName() string
func (*CnatSnatPolicyAddDelExcludePfxReply) GetMessageType ¶
func (*CnatSnatPolicyAddDelExcludePfxReply) GetMessageType() api.MessageType
func (*CnatSnatPolicyAddDelExcludePfxReply) Marshal ¶
func (m *CnatSnatPolicyAddDelExcludePfxReply) Marshal(b []byte) ([]byte, error)
func (*CnatSnatPolicyAddDelExcludePfxReply) Reset ¶
func (m *CnatSnatPolicyAddDelExcludePfxReply) Reset()
func (*CnatSnatPolicyAddDelExcludePfxReply) Size ¶
func (m *CnatSnatPolicyAddDelExcludePfxReply) Size() (size int)
func (*CnatSnatPolicyAddDelExcludePfxReply) Unmarshal ¶
func (m *CnatSnatPolicyAddDelExcludePfxReply) Unmarshal(b []byte) error
type CnatSnatPolicyAddDelIf ¶
type CnatSnatPolicyAddDelIf struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"` Table CnatSnatPolicyTable `binapi:"cnat_snat_policy_table,name=table" json:"table,omitempty"` }
CnatSnatPolicyAddDelIf defines message 'cnat_snat_policy_add_del_if'. InProgress: the message form may change in the future versions
func (*CnatSnatPolicyAddDelIf) GetCrcString ¶
func (*CnatSnatPolicyAddDelIf) GetCrcString() string
func (*CnatSnatPolicyAddDelIf) GetMessageName ¶
func (*CnatSnatPolicyAddDelIf) GetMessageName() string
func (*CnatSnatPolicyAddDelIf) GetMessageType ¶
func (*CnatSnatPolicyAddDelIf) GetMessageType() api.MessageType
func (*CnatSnatPolicyAddDelIf) Marshal ¶
func (m *CnatSnatPolicyAddDelIf) Marshal(b []byte) ([]byte, error)
func (*CnatSnatPolicyAddDelIf) Reset ¶
func (m *CnatSnatPolicyAddDelIf) Reset()
func (*CnatSnatPolicyAddDelIf) Size ¶
func (m *CnatSnatPolicyAddDelIf) Size() (size int)
func (*CnatSnatPolicyAddDelIf) Unmarshal ¶
func (m *CnatSnatPolicyAddDelIf) Unmarshal(b []byte) error
type CnatSnatPolicyAddDelIfReply ¶
type CnatSnatPolicyAddDelIfReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CnatSnatPolicyAddDelIfReply defines message 'cnat_snat_policy_add_del_if_reply'. InProgress: the message form may change in the future versions
func (*CnatSnatPolicyAddDelIfReply) GetCrcString ¶
func (*CnatSnatPolicyAddDelIfReply) GetCrcString() string
func (*CnatSnatPolicyAddDelIfReply) GetMessageName ¶
func (*CnatSnatPolicyAddDelIfReply) GetMessageName() string
func (*CnatSnatPolicyAddDelIfReply) GetMessageType ¶
func (*CnatSnatPolicyAddDelIfReply) GetMessageType() api.MessageType
func (*CnatSnatPolicyAddDelIfReply) Marshal ¶
func (m *CnatSnatPolicyAddDelIfReply) Marshal(b []byte) ([]byte, error)
func (*CnatSnatPolicyAddDelIfReply) Reset ¶
func (m *CnatSnatPolicyAddDelIfReply) Reset()
func (*CnatSnatPolicyAddDelIfReply) Size ¶
func (m *CnatSnatPolicyAddDelIfReply) Size() (size int)
func (*CnatSnatPolicyAddDelIfReply) Unmarshal ¶
func (m *CnatSnatPolicyAddDelIfReply) Unmarshal(b []byte) error
type CnatSnatPolicyTable ¶
type CnatSnatPolicyTable uint8
CnatSnatPolicyTable defines enum 'cnat_snat_policy_table'.
const ( CNAT_POLICY_INCLUDE_V4 CnatSnatPolicyTable = 0 CNAT_POLICY_INCLUDE_V6 CnatSnatPolicyTable = 1 CNAT_POLICY_POD CnatSnatPolicyTable = 2 )
func (CnatSnatPolicyTable) String ¶
func (x CnatSnatPolicyTable) String() string
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"` LbType CnatLbType `binapi:"cnat_lb_type,name=lb_type" json:"lb_type,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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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'. InProgress: the message form may change in the future versions
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 { 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) CnatSetSnatPolicy(ctx context.Context, in *CnatSetSnatPolicy) (*CnatSetSnatPolicyReply, error) CnatSnatPolicyAddDelExcludePfx(ctx context.Context, in *CnatSnatPolicyAddDelExcludePfx) (*CnatSnatPolicyAddDelExcludePfxReply, error) CnatSnatPolicyAddDelIf(ctx context.Context, in *CnatSnatPolicyAddDelIf) (*CnatSnatPolicyAddDelIfReply, 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 }