Documentation
¶
Overview ¶
Package pnat contains generated bindings for API file pnat.api.
Contents: - 2 enums - 2 structs - 18 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type PnatAttachmentPoint
- type PnatBindingAdd
- func (*PnatBindingAdd) GetCrcString() string
- func (*PnatBindingAdd) GetMessageName() string
- func (*PnatBindingAdd) GetMessageType() api.MessageType
- func (m *PnatBindingAdd) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingAdd) Reset()
- func (m *PnatBindingAdd) Size() (size int)
- func (m *PnatBindingAdd) Unmarshal(b []byte) error
- type PnatBindingAddReply
- func (*PnatBindingAddReply) GetCrcString() string
- func (*PnatBindingAddReply) GetMessageName() string
- func (*PnatBindingAddReply) GetMessageType() api.MessageType
- func (m *PnatBindingAddReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingAddReply) Reset()
- func (m *PnatBindingAddReply) Size() (size int)
- func (m *PnatBindingAddReply) Unmarshal(b []byte) error
- type PnatBindingAddV2
- func (*PnatBindingAddV2) GetCrcString() string
- func (*PnatBindingAddV2) GetMessageName() string
- func (*PnatBindingAddV2) GetMessageType() api.MessageType
- func (m *PnatBindingAddV2) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingAddV2) Reset()
- func (m *PnatBindingAddV2) Size() (size int)
- func (m *PnatBindingAddV2) Unmarshal(b []byte) error
- type PnatBindingAddV2Reply
- func (*PnatBindingAddV2Reply) GetCrcString() string
- func (*PnatBindingAddV2Reply) GetMessageName() string
- func (*PnatBindingAddV2Reply) GetMessageType() api.MessageType
- func (m *PnatBindingAddV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingAddV2Reply) Reset()
- func (m *PnatBindingAddV2Reply) Size() (size int)
- func (m *PnatBindingAddV2Reply) Unmarshal(b []byte) error
- type PnatBindingAttach
- func (*PnatBindingAttach) GetCrcString() string
- func (*PnatBindingAttach) GetMessageName() string
- func (*PnatBindingAttach) GetMessageType() api.MessageType
- func (m *PnatBindingAttach) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingAttach) Reset()
- func (m *PnatBindingAttach) Size() (size int)
- func (m *PnatBindingAttach) Unmarshal(b []byte) error
- type PnatBindingAttachReply
- func (*PnatBindingAttachReply) GetCrcString() string
- func (*PnatBindingAttachReply) GetMessageName() string
- func (*PnatBindingAttachReply) GetMessageType() api.MessageType
- func (m *PnatBindingAttachReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingAttachReply) Reset()
- func (m *PnatBindingAttachReply) Size() (size int)
- func (m *PnatBindingAttachReply) Unmarshal(b []byte) error
- type PnatBindingDel
- func (*PnatBindingDel) GetCrcString() string
- func (*PnatBindingDel) GetMessageName() string
- func (*PnatBindingDel) GetMessageType() api.MessageType
- func (m *PnatBindingDel) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingDel) Reset()
- func (m *PnatBindingDel) Size() (size int)
- func (m *PnatBindingDel) Unmarshal(b []byte) error
- type PnatBindingDelReply
- func (*PnatBindingDelReply) GetCrcString() string
- func (*PnatBindingDelReply) GetMessageName() string
- func (*PnatBindingDelReply) GetMessageType() api.MessageType
- func (m *PnatBindingDelReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingDelReply) Reset()
- func (m *PnatBindingDelReply) Size() (size int)
- func (m *PnatBindingDelReply) Unmarshal(b []byte) error
- type PnatBindingDetach
- func (*PnatBindingDetach) GetCrcString() string
- func (*PnatBindingDetach) GetMessageName() string
- func (*PnatBindingDetach) GetMessageType() api.MessageType
- func (m *PnatBindingDetach) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingDetach) Reset()
- func (m *PnatBindingDetach) Size() (size int)
- func (m *PnatBindingDetach) Unmarshal(b []byte) error
- type PnatBindingDetachReply
- func (*PnatBindingDetachReply) GetCrcString() string
- func (*PnatBindingDetachReply) GetMessageName() string
- func (*PnatBindingDetachReply) GetMessageType() api.MessageType
- func (m *PnatBindingDetachReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingDetachReply) Reset()
- func (m *PnatBindingDetachReply) Size() (size int)
- func (m *PnatBindingDetachReply) Unmarshal(b []byte) error
- type PnatBindingsDetails
- func (*PnatBindingsDetails) GetCrcString() string
- func (*PnatBindingsDetails) GetMessageName() string
- func (*PnatBindingsDetails) GetMessageType() api.MessageType
- func (m *PnatBindingsDetails) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingsDetails) Reset()
- func (m *PnatBindingsDetails) Size() (size int)
- func (m *PnatBindingsDetails) Unmarshal(b []byte) error
- type PnatBindingsGet
- func (*PnatBindingsGet) GetCrcString() string
- func (*PnatBindingsGet) GetMessageName() string
- func (*PnatBindingsGet) GetMessageType() api.MessageType
- func (m *PnatBindingsGet) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingsGet) Reset()
- func (m *PnatBindingsGet) Size() (size int)
- func (m *PnatBindingsGet) Unmarshal(b []byte) error
- type PnatBindingsGetReply
- func (*PnatBindingsGetReply) GetCrcString() string
- func (*PnatBindingsGetReply) GetMessageName() string
- func (*PnatBindingsGetReply) GetMessageType() api.MessageType
- func (m *PnatBindingsGetReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatBindingsGetReply) Reset()
- func (m *PnatBindingsGetReply) Size() (size int)
- func (m *PnatBindingsGetReply) Unmarshal(b []byte) error
- type PnatFlowLookup
- func (*PnatFlowLookup) GetCrcString() string
- func (*PnatFlowLookup) GetMessageName() string
- func (*PnatFlowLookup) GetMessageType() api.MessageType
- func (m *PnatFlowLookup) Marshal(b []byte) ([]byte, error)
- func (m *PnatFlowLookup) Reset()
- func (m *PnatFlowLookup) Size() (size int)
- func (m *PnatFlowLookup) Unmarshal(b []byte) error
- type PnatFlowLookupReply
- func (*PnatFlowLookupReply) GetCrcString() string
- func (*PnatFlowLookupReply) GetMessageName() string
- func (*PnatFlowLookupReply) GetMessageType() api.MessageType
- func (m *PnatFlowLookupReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatFlowLookupReply) Reset()
- func (m *PnatFlowLookupReply) Size() (size int)
- func (m *PnatFlowLookupReply) Unmarshal(b []byte) error
- type PnatInterfacesDetails
- func (*PnatInterfacesDetails) GetCrcString() string
- func (*PnatInterfacesDetails) GetMessageName() string
- func (*PnatInterfacesDetails) GetMessageType() api.MessageType
- func (m *PnatInterfacesDetails) Marshal(b []byte) ([]byte, error)
- func (m *PnatInterfacesDetails) Reset()
- func (m *PnatInterfacesDetails) Size() (size int)
- func (m *PnatInterfacesDetails) Unmarshal(b []byte) error
- type PnatInterfacesGet
- func (*PnatInterfacesGet) GetCrcString() string
- func (*PnatInterfacesGet) GetMessageName() string
- func (*PnatInterfacesGet) GetMessageType() api.MessageType
- func (m *PnatInterfacesGet) Marshal(b []byte) ([]byte, error)
- func (m *PnatInterfacesGet) Reset()
- func (m *PnatInterfacesGet) Size() (size int)
- func (m *PnatInterfacesGet) Unmarshal(b []byte) error
- type PnatInterfacesGetReply
- func (*PnatInterfacesGetReply) GetCrcString() string
- func (*PnatInterfacesGetReply) GetMessageName() string
- func (*PnatInterfacesGetReply) GetMessageType() api.MessageType
- func (m *PnatInterfacesGetReply) Marshal(b []byte) ([]byte, error)
- func (m *PnatInterfacesGetReply) Reset()
- func (m *PnatInterfacesGetReply) Size() (size int)
- func (m *PnatInterfacesGetReply) Unmarshal(b []byte) error
- type PnatMask
- type PnatMatchTuple
- type PnatRewriteTuple
- type RPCService
- type RPCService_PnatBindingsGetClient
- type RPCService_PnatInterfacesGetClient
Constants ¶
const ( APIFile = "pnat" APIVersion = "0.1.1" VersionCrc = 0x54bc8e17 )
Variables ¶
var ( PnatAttachmentPoint_name = map[uint32]string{ 0: "PNAT_IP4_INPUT", 1: "PNAT_IP4_OUTPUT", 2: "PNAT_ATTACHMENT_POINT_MAX", } PnatAttachmentPoint_value = map[string]uint32{ "PNAT_IP4_INPUT": 0, "PNAT_IP4_OUTPUT": 1, "PNAT_ATTACHMENT_POINT_MAX": 2, } )
var ( PnatMask_name = map[uint32]string{ 1: "PNAT_SA", 2: "PNAT_DA", 4: "PNAT_SPORT", 8: "PNAT_DPORT", 16: "PNAT_COPY_BYTE", 32: "PNAT_CLEAR_BYTE", 64: "PNAT_PROTO", } PnatMask_value = map[string]uint32{ "PNAT_SA": 1, "PNAT_DA": 2, "PNAT_SPORT": 4, "PNAT_DPORT": 8, "PNAT_COPY_BYTE": 16, "PNAT_CLEAR_BYTE": 32, "PNAT_PROTO": 64, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type PnatAttachmentPoint ¶
type PnatAttachmentPoint uint32
PnatAttachmentPoint defines enum 'pnat_attachment_point'.
const ( PNAT_IP4_INPUT PnatAttachmentPoint = 0 PNAT_IP4_OUTPUT PnatAttachmentPoint = 1 PNAT_ATTACHMENT_POINT_MAX PnatAttachmentPoint = 2 )
func (PnatAttachmentPoint) String ¶
func (x PnatAttachmentPoint) String() string
type PnatBindingAdd ¶
type PnatBindingAdd struct {
Match PnatMatchTuple `binapi:"pnat_match_tuple,name=match" json:"match,omitempty"`
Rewrite PnatRewriteTuple `binapi:"pnat_rewrite_tuple,name=rewrite" json:"rewrite,omitempty"`
}
/*
- Copyright (c) 2021 Cisco and/or its affiliates.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at: *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
PnatBindingAdd defines message 'pnat_binding_add'.
func (*PnatBindingAdd) GetCrcString ¶
func (*PnatBindingAdd) GetCrcString() string
func (*PnatBindingAdd) GetMessageName ¶
func (*PnatBindingAdd) GetMessageName() string
func (*PnatBindingAdd) GetMessageType ¶
func (*PnatBindingAdd) GetMessageType() api.MessageType
func (*PnatBindingAdd) Reset ¶
func (m *PnatBindingAdd) Reset()
func (*PnatBindingAdd) Size ¶
func (m *PnatBindingAdd) Size() (size int)
func (*PnatBindingAdd) Unmarshal ¶
func (m *PnatBindingAdd) Unmarshal(b []byte) error
type PnatBindingAddReply ¶
type PnatBindingAddReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatBindingAddReply defines message 'pnat_binding_add_reply'.
func (*PnatBindingAddReply) GetCrcString ¶
func (*PnatBindingAddReply) GetCrcString() string
func (*PnatBindingAddReply) GetMessageName ¶
func (*PnatBindingAddReply) GetMessageName() string
func (*PnatBindingAddReply) GetMessageType ¶
func (*PnatBindingAddReply) GetMessageType() api.MessageType
func (*PnatBindingAddReply) Marshal ¶
func (m *PnatBindingAddReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingAddReply) Reset ¶
func (m *PnatBindingAddReply) Reset()
func (*PnatBindingAddReply) Size ¶
func (m *PnatBindingAddReply) Size() (size int)
func (*PnatBindingAddReply) Unmarshal ¶
func (m *PnatBindingAddReply) Unmarshal(b []byte) error
type PnatBindingAddV2 ¶
type PnatBindingAddV2 struct {
Match PnatMatchTuple `binapi:"pnat_match_tuple,name=match" json:"match,omitempty"`
Rewrite PnatRewriteTuple `binapi:"pnat_rewrite_tuple,name=rewrite" json:"rewrite,omitempty"`
}
PnatBindingAddV2 defines message 'pnat_binding_add_v2'.
func (*PnatBindingAddV2) GetCrcString ¶
func (*PnatBindingAddV2) GetCrcString() string
func (*PnatBindingAddV2) GetMessageName ¶
func (*PnatBindingAddV2) GetMessageName() string
func (*PnatBindingAddV2) GetMessageType ¶
func (*PnatBindingAddV2) GetMessageType() api.MessageType
func (*PnatBindingAddV2) Reset ¶
func (m *PnatBindingAddV2) Reset()
func (*PnatBindingAddV2) Size ¶
func (m *PnatBindingAddV2) Size() (size int)
func (*PnatBindingAddV2) Unmarshal ¶
func (m *PnatBindingAddV2) Unmarshal(b []byte) error
type PnatBindingAddV2Reply ¶
type PnatBindingAddV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatBindingAddV2Reply defines message 'pnat_binding_add_v2_reply'.
func (*PnatBindingAddV2Reply) GetCrcString ¶
func (*PnatBindingAddV2Reply) GetCrcString() string
func (*PnatBindingAddV2Reply) GetMessageName ¶
func (*PnatBindingAddV2Reply) GetMessageName() string
func (*PnatBindingAddV2Reply) GetMessageType ¶
func (*PnatBindingAddV2Reply) GetMessageType() api.MessageType
func (*PnatBindingAddV2Reply) Marshal ¶
func (m *PnatBindingAddV2Reply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingAddV2Reply) Reset ¶
func (m *PnatBindingAddV2Reply) Reset()
func (*PnatBindingAddV2Reply) Size ¶
func (m *PnatBindingAddV2Reply) Size() (size int)
func (*PnatBindingAddV2Reply) Unmarshal ¶
func (m *PnatBindingAddV2Reply) Unmarshal(b []byte) error
type PnatBindingAttach ¶
type PnatBindingAttach struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
Attachment PnatAttachmentPoint `binapi:"pnat_attachment_point,name=attachment" json:"attachment,omitempty"`
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatBindingAttach defines message 'pnat_binding_attach'.
func (*PnatBindingAttach) GetCrcString ¶
func (*PnatBindingAttach) GetCrcString() string
func (*PnatBindingAttach) GetMessageName ¶
func (*PnatBindingAttach) GetMessageName() string
func (*PnatBindingAttach) GetMessageType ¶
func (*PnatBindingAttach) GetMessageType() api.MessageType
func (*PnatBindingAttach) Reset ¶
func (m *PnatBindingAttach) Reset()
func (*PnatBindingAttach) Size ¶
func (m *PnatBindingAttach) Size() (size int)
func (*PnatBindingAttach) Unmarshal ¶
func (m *PnatBindingAttach) Unmarshal(b []byte) error
type PnatBindingAttachReply ¶
type PnatBindingAttachReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PnatBindingAttachReply defines message 'pnat_binding_attach_reply'.
func (*PnatBindingAttachReply) GetCrcString ¶
func (*PnatBindingAttachReply) GetCrcString() string
func (*PnatBindingAttachReply) GetMessageName ¶
func (*PnatBindingAttachReply) GetMessageName() string
func (*PnatBindingAttachReply) GetMessageType ¶
func (*PnatBindingAttachReply) GetMessageType() api.MessageType
func (*PnatBindingAttachReply) Marshal ¶
func (m *PnatBindingAttachReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingAttachReply) Reset ¶
func (m *PnatBindingAttachReply) Reset()
func (*PnatBindingAttachReply) Size ¶
func (m *PnatBindingAttachReply) Size() (size int)
func (*PnatBindingAttachReply) Unmarshal ¶
func (m *PnatBindingAttachReply) Unmarshal(b []byte) error
type PnatBindingDel ¶
type PnatBindingDel struct {
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatBindingDel defines message 'pnat_binding_del'.
func (*PnatBindingDel) GetCrcString ¶
func (*PnatBindingDel) GetCrcString() string
func (*PnatBindingDel) GetMessageName ¶
func (*PnatBindingDel) GetMessageName() string
func (*PnatBindingDel) GetMessageType ¶
func (*PnatBindingDel) GetMessageType() api.MessageType
func (*PnatBindingDel) Reset ¶
func (m *PnatBindingDel) Reset()
func (*PnatBindingDel) Size ¶
func (m *PnatBindingDel) Size() (size int)
func (*PnatBindingDel) Unmarshal ¶
func (m *PnatBindingDel) Unmarshal(b []byte) error
type PnatBindingDelReply ¶
type PnatBindingDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PnatBindingDelReply defines message 'pnat_binding_del_reply'.
func (*PnatBindingDelReply) GetCrcString ¶
func (*PnatBindingDelReply) GetCrcString() string
func (*PnatBindingDelReply) GetMessageName ¶
func (*PnatBindingDelReply) GetMessageName() string
func (*PnatBindingDelReply) GetMessageType ¶
func (*PnatBindingDelReply) GetMessageType() api.MessageType
func (*PnatBindingDelReply) Marshal ¶
func (m *PnatBindingDelReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingDelReply) Reset ¶
func (m *PnatBindingDelReply) Reset()
func (*PnatBindingDelReply) Size ¶
func (m *PnatBindingDelReply) Size() (size int)
func (*PnatBindingDelReply) Unmarshal ¶
func (m *PnatBindingDelReply) Unmarshal(b []byte) error
type PnatBindingDetach ¶
type PnatBindingDetach struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
Attachment PnatAttachmentPoint `binapi:"pnat_attachment_point,name=attachment" json:"attachment,omitempty"`
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatBindingDetach defines message 'pnat_binding_detach'.
func (*PnatBindingDetach) GetCrcString ¶
func (*PnatBindingDetach) GetCrcString() string
func (*PnatBindingDetach) GetMessageName ¶
func (*PnatBindingDetach) GetMessageName() string
func (*PnatBindingDetach) GetMessageType ¶
func (*PnatBindingDetach) GetMessageType() api.MessageType
func (*PnatBindingDetach) Reset ¶
func (m *PnatBindingDetach) Reset()
func (*PnatBindingDetach) Size ¶
func (m *PnatBindingDetach) Size() (size int)
func (*PnatBindingDetach) Unmarshal ¶
func (m *PnatBindingDetach) Unmarshal(b []byte) error
type PnatBindingDetachReply ¶
type PnatBindingDetachReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PnatBindingDetachReply defines message 'pnat_binding_detach_reply'.
func (*PnatBindingDetachReply) GetCrcString ¶
func (*PnatBindingDetachReply) GetCrcString() string
func (*PnatBindingDetachReply) GetMessageName ¶
func (*PnatBindingDetachReply) GetMessageName() string
func (*PnatBindingDetachReply) GetMessageType ¶
func (*PnatBindingDetachReply) GetMessageType() api.MessageType
func (*PnatBindingDetachReply) Marshal ¶
func (m *PnatBindingDetachReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingDetachReply) Reset ¶
func (m *PnatBindingDetachReply) Reset()
func (*PnatBindingDetachReply) Size ¶
func (m *PnatBindingDetachReply) Size() (size int)
func (*PnatBindingDetachReply) Unmarshal ¶
func (m *PnatBindingDetachReply) Unmarshal(b []byte) error
type PnatBindingsDetails ¶
type PnatBindingsDetails struct {
Match PnatMatchTuple `binapi:"pnat_match_tuple,name=match" json:"match,omitempty"`
Rewrite PnatRewriteTuple `binapi:"pnat_rewrite_tuple,name=rewrite" json:"rewrite,omitempty"`
}
PnatBindingsDetails defines message 'pnat_bindings_details'.
func (*PnatBindingsDetails) GetCrcString ¶
func (*PnatBindingsDetails) GetCrcString() string
func (*PnatBindingsDetails) GetMessageName ¶
func (*PnatBindingsDetails) GetMessageName() string
func (*PnatBindingsDetails) GetMessageType ¶
func (*PnatBindingsDetails) GetMessageType() api.MessageType
func (*PnatBindingsDetails) Marshal ¶
func (m *PnatBindingsDetails) Marshal(b []byte) ([]byte, error)
func (*PnatBindingsDetails) Reset ¶
func (m *PnatBindingsDetails) Reset()
func (*PnatBindingsDetails) Size ¶
func (m *PnatBindingsDetails) Size() (size int)
func (*PnatBindingsDetails) Unmarshal ¶
func (m *PnatBindingsDetails) Unmarshal(b []byte) error
type PnatBindingsGet ¶
type PnatBindingsGet struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
PnatBindingsGet defines message 'pnat_bindings_get'.
func (*PnatBindingsGet) GetCrcString ¶
func (*PnatBindingsGet) GetCrcString() string
func (*PnatBindingsGet) GetMessageName ¶
func (*PnatBindingsGet) GetMessageName() string
func (*PnatBindingsGet) GetMessageType ¶
func (*PnatBindingsGet) GetMessageType() api.MessageType
func (*PnatBindingsGet) Reset ¶
func (m *PnatBindingsGet) Reset()
func (*PnatBindingsGet) Size ¶
func (m *PnatBindingsGet) Size() (size int)
func (*PnatBindingsGet) Unmarshal ¶
func (m *PnatBindingsGet) Unmarshal(b []byte) error
type PnatBindingsGetReply ¶
type PnatBindingsGetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
PnatBindingsGetReply defines message 'pnat_bindings_get_reply'.
func (*PnatBindingsGetReply) GetCrcString ¶
func (*PnatBindingsGetReply) GetCrcString() string
func (*PnatBindingsGetReply) GetMessageName ¶
func (*PnatBindingsGetReply) GetMessageName() string
func (*PnatBindingsGetReply) GetMessageType ¶
func (*PnatBindingsGetReply) GetMessageType() api.MessageType
func (*PnatBindingsGetReply) Marshal ¶
func (m *PnatBindingsGetReply) Marshal(b []byte) ([]byte, error)
func (*PnatBindingsGetReply) Reset ¶
func (m *PnatBindingsGetReply) Reset()
func (*PnatBindingsGetReply) Size ¶
func (m *PnatBindingsGetReply) Size() (size int)
func (*PnatBindingsGetReply) Unmarshal ¶
func (m *PnatBindingsGetReply) Unmarshal(b []byte) error
type PnatFlowLookup ¶ added in v0.9.0
type PnatFlowLookup struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
Attachment PnatAttachmentPoint `binapi:"pnat_attachment_point,name=attachment" json:"attachment,omitempty"`
Match PnatMatchTuple `binapi:"pnat_match_tuple,name=match" json:"match,omitempty"`
}
PnatFlowLookup defines message 'pnat_flow_lookup'.
func (*PnatFlowLookup) GetCrcString ¶ added in v0.9.0
func (*PnatFlowLookup) GetCrcString() string
func (*PnatFlowLookup) GetMessageName ¶ added in v0.9.0
func (*PnatFlowLookup) GetMessageName() string
func (*PnatFlowLookup) GetMessageType ¶ added in v0.9.0
func (*PnatFlowLookup) GetMessageType() api.MessageType
func (*PnatFlowLookup) Marshal ¶ added in v0.9.0
func (m *PnatFlowLookup) Marshal(b []byte) ([]byte, error)
func (*PnatFlowLookup) Reset ¶ added in v0.9.0
func (m *PnatFlowLookup) Reset()
func (*PnatFlowLookup) Size ¶ added in v0.9.0
func (m *PnatFlowLookup) Size() (size int)
func (*PnatFlowLookup) Unmarshal ¶ added in v0.9.0
func (m *PnatFlowLookup) Unmarshal(b []byte) error
type PnatFlowLookupReply ¶ added in v0.9.0
type PnatFlowLookupReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
BindingIndex uint32 `binapi:"u32,name=binding_index" json:"binding_index,omitempty"`
}
PnatFlowLookupReply defines message 'pnat_flow_lookup_reply'.
func (*PnatFlowLookupReply) GetCrcString ¶ added in v0.9.0
func (*PnatFlowLookupReply) GetCrcString() string
func (*PnatFlowLookupReply) GetMessageName ¶ added in v0.9.0
func (*PnatFlowLookupReply) GetMessageName() string
func (*PnatFlowLookupReply) GetMessageType ¶ added in v0.9.0
func (*PnatFlowLookupReply) GetMessageType() api.MessageType
func (*PnatFlowLookupReply) Marshal ¶ added in v0.9.0
func (m *PnatFlowLookupReply) Marshal(b []byte) ([]byte, error)
func (*PnatFlowLookupReply) Reset ¶ added in v0.9.0
func (m *PnatFlowLookupReply) Reset()
func (*PnatFlowLookupReply) Size ¶ added in v0.9.0
func (m *PnatFlowLookupReply) Size() (size int)
func (*PnatFlowLookupReply) Unmarshal ¶ added in v0.9.0
func (m *PnatFlowLookupReply) Unmarshal(b []byte) error
type PnatInterfacesDetails ¶
type PnatInterfacesDetails struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
Enabled []bool `binapi:"bool[2],name=enabled" json:"enabled,omitempty"`
LookupMask [2]PnatMask `binapi:"pnat_mask[2],name=lookup_mask" json:"lookup_mask,omitempty"`
}
PnatInterfacesDetails defines message 'pnat_interfaces_details'.
func (*PnatInterfacesDetails) GetCrcString ¶
func (*PnatInterfacesDetails) GetCrcString() string
func (*PnatInterfacesDetails) GetMessageName ¶
func (*PnatInterfacesDetails) GetMessageName() string
func (*PnatInterfacesDetails) GetMessageType ¶
func (*PnatInterfacesDetails) GetMessageType() api.MessageType
func (*PnatInterfacesDetails) Marshal ¶
func (m *PnatInterfacesDetails) Marshal(b []byte) ([]byte, error)
func (*PnatInterfacesDetails) Reset ¶
func (m *PnatInterfacesDetails) Reset()
func (*PnatInterfacesDetails) Size ¶
func (m *PnatInterfacesDetails) Size() (size int)
func (*PnatInterfacesDetails) Unmarshal ¶
func (m *PnatInterfacesDetails) Unmarshal(b []byte) error
type PnatInterfacesGet ¶
type PnatInterfacesGet struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
PnatInterfacesGet defines message 'pnat_interfaces_get'.
func (*PnatInterfacesGet) GetCrcString ¶
func (*PnatInterfacesGet) GetCrcString() string
func (*PnatInterfacesGet) GetMessageName ¶
func (*PnatInterfacesGet) GetMessageName() string
func (*PnatInterfacesGet) GetMessageType ¶
func (*PnatInterfacesGet) GetMessageType() api.MessageType
func (*PnatInterfacesGet) Reset ¶
func (m *PnatInterfacesGet) Reset()
func (*PnatInterfacesGet) Size ¶
func (m *PnatInterfacesGet) Size() (size int)
func (*PnatInterfacesGet) Unmarshal ¶
func (m *PnatInterfacesGet) Unmarshal(b []byte) error
type PnatInterfacesGetReply ¶
type PnatInterfacesGetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
PnatInterfacesGetReply defines message 'pnat_interfaces_get_reply'.
func (*PnatInterfacesGetReply) GetCrcString ¶
func (*PnatInterfacesGetReply) GetCrcString() string
func (*PnatInterfacesGetReply) GetMessageName ¶
func (*PnatInterfacesGetReply) GetMessageName() string
func (*PnatInterfacesGetReply) GetMessageType ¶
func (*PnatInterfacesGetReply) GetMessageType() api.MessageType
func (*PnatInterfacesGetReply) Marshal ¶
func (m *PnatInterfacesGetReply) Marshal(b []byte) ([]byte, error)
func (*PnatInterfacesGetReply) Reset ¶
func (m *PnatInterfacesGetReply) Reset()
func (*PnatInterfacesGetReply) Size ¶
func (m *PnatInterfacesGetReply) Size() (size int)
func (*PnatInterfacesGetReply) Unmarshal ¶
func (m *PnatInterfacesGetReply) Unmarshal(b []byte) error
type PnatMatchTuple ¶
type PnatMatchTuple struct {
Src ip_types.IP4Address `binapi:"ip4_address,name=src" json:"src,omitempty"`
Dst ip_types.IP4Address `binapi:"ip4_address,name=dst" json:"dst,omitempty"`
Proto ip_types.IPProto `binapi:"ip_proto,name=proto" json:"proto,omitempty"`
Sport uint16 `binapi:"u16,name=sport" json:"sport,omitempty"`
Dport uint16 `binapi:"u16,name=dport" json:"dport,omitempty"`
Mask PnatMask `binapi:"pnat_mask,name=mask" json:"mask,omitempty"`
}
PnatMatchTuple defines type 'pnat_match_tuple'.
type PnatRewriteTuple ¶
type PnatRewriteTuple struct {
Src ip_types.IP4Address `binapi:"ip4_address,name=src" json:"src,omitempty"`
Dst ip_types.IP4Address `binapi:"ip4_address,name=dst" json:"dst,omitempty"`
Sport uint16 `binapi:"u16,name=sport" json:"sport,omitempty"`
Dport uint16 `binapi:"u16,name=dport" json:"dport,omitempty"`
Mask PnatMask `binapi:"pnat_mask,name=mask" json:"mask,omitempty"`
FromOffset uint8 `binapi:"u8,name=from_offset" json:"from_offset,omitempty"`
ToOffset uint8 `binapi:"u8,name=to_offset" json:"to_offset,omitempty"`
ClearOffset uint8 `binapi:"u8,name=clear_offset" json:"clear_offset,omitempty"`
}
PnatRewriteTuple defines type 'pnat_rewrite_tuple'.
type RPCService ¶
type RPCService interface {
PnatBindingAdd(ctx context.Context, in *PnatBindingAdd) (*PnatBindingAddReply, error)
PnatBindingAddV2(ctx context.Context, in *PnatBindingAddV2) (*PnatBindingAddV2Reply, error)
PnatBindingAttach(ctx context.Context, in *PnatBindingAttach) (*PnatBindingAttachReply, error)
PnatBindingDel(ctx context.Context, in *PnatBindingDel) (*PnatBindingDelReply, error)
PnatBindingDetach(ctx context.Context, in *PnatBindingDetach) (*PnatBindingDetachReply, error)
PnatBindingsGet(ctx context.Context, in *PnatBindingsGet) (RPCService_PnatBindingsGetClient, error)
PnatFlowLookup(ctx context.Context, in *PnatFlowLookup) (*PnatFlowLookupReply, error)
PnatInterfacesGet(ctx context.Context, in *PnatInterfacesGet) (RPCService_PnatInterfacesGetClient, error)
}
RPCService defines RPC service pnat.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_PnatBindingsGetClient ¶
type RPCService_PnatBindingsGetClient interface {
Recv() (*PnatBindingsDetails, *PnatBindingsGetReply, error)
api.Stream
}
type RPCService_PnatInterfacesGetClient ¶
type RPCService_PnatInterfacesGetClient interface {
Recv() (*PnatInterfacesDetails, *PnatInterfacesGetReply, error)
api.Stream
}