Documentation ¶
Overview ¶
Package capo contains generated bindings for API file capo.api.
Contents: - 4 enums - 8 structs - 2 unions - 24 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type CapoConfigurePolicies
- func (*CapoConfigurePolicies) GetCrcString() string
- func (*CapoConfigurePolicies) GetMessageName() string
- func (*CapoConfigurePolicies) GetMessageType() api.MessageType
- func (m *CapoConfigurePolicies) Marshal(b []byte) ([]byte, error)
- func (m *CapoConfigurePolicies) Reset()
- func (m *CapoConfigurePolicies) Size() (size int)
- func (m *CapoConfigurePolicies) Unmarshal(b []byte) error
- type CapoConfigurePoliciesReply
- func (*CapoConfigurePoliciesReply) GetCrcString() string
- func (*CapoConfigurePoliciesReply) GetMessageName() string
- func (*CapoConfigurePoliciesReply) GetMessageType() api.MessageType
- func (m *CapoConfigurePoliciesReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoConfigurePoliciesReply) Reset()
- func (m *CapoConfigurePoliciesReply) Size() (size int)
- func (m *CapoConfigurePoliciesReply) Unmarshal(b []byte) error
- type CapoControlPing
- func (*CapoControlPing) GetCrcString() string
- func (*CapoControlPing) GetMessageName() string
- func (*CapoControlPing) GetMessageType() api.MessageType
- func (m *CapoControlPing) Marshal(b []byte) ([]byte, error)
- func (m *CapoControlPing) Reset()
- func (m *CapoControlPing) Size() (size int)
- func (m *CapoControlPing) Unmarshal(b []byte) error
- type CapoControlPingReply
- func (*CapoControlPingReply) GetCrcString() string
- func (*CapoControlPingReply) GetMessageName() string
- func (*CapoControlPingReply) GetMessageType() api.MessageType
- func (m *CapoControlPingReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoControlPingReply) Reset()
- func (m *CapoControlPingReply) Size() (size int)
- func (m *CapoControlPingReply) Unmarshal(b []byte) error
- type CapoEntryDataUnion
- func (u *CapoEntryDataUnion) GetCidr() (a ip_types.Prefix)
- func (u *CapoEntryDataUnion) GetPortRange() (a CapoPortRange)
- func (u *CapoEntryDataUnion) GetSetID() (a CapoEntrySetID)
- func (u *CapoEntryDataUnion) SetCidr(a ip_types.Prefix)
- func (u *CapoEntryDataUnion) SetPortRange(a CapoPortRange)
- func (u *CapoEntryDataUnion) SetSetID(a CapoEntrySetID)
- type CapoEntrySetID
- type CapoEntryType
- type CapoGetVersion
- func (*CapoGetVersion) GetCrcString() string
- func (*CapoGetVersion) GetMessageName() string
- func (*CapoGetVersion) GetMessageType() api.MessageType
- func (m *CapoGetVersion) Marshal(b []byte) ([]byte, error)
- func (m *CapoGetVersion) Reset()
- func (m *CapoGetVersion) Size() (size int)
- func (m *CapoGetVersion) Unmarshal(b []byte) error
- type CapoGetVersionReply
- func (*CapoGetVersionReply) GetCrcString() string
- func (*CapoGetVersionReply) GetMessageName() string
- func (*CapoGetVersionReply) GetMessageType() api.MessageType
- func (m *CapoGetVersionReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoGetVersionReply) Reset()
- func (m *CapoGetVersionReply) Size() (size int)
- func (m *CapoGetVersionReply) Unmarshal(b []byte) error
- type CapoIpsetAddDelMembers
- func (*CapoIpsetAddDelMembers) GetCrcString() string
- func (*CapoIpsetAddDelMembers) GetMessageName() string
- func (*CapoIpsetAddDelMembers) GetMessageType() api.MessageType
- func (m *CapoIpsetAddDelMembers) Marshal(b []byte) ([]byte, error)
- func (m *CapoIpsetAddDelMembers) Reset()
- func (m *CapoIpsetAddDelMembers) Size() (size int)
- func (m *CapoIpsetAddDelMembers) Unmarshal(b []byte) error
- type CapoIpsetAddDelMembersReply
- func (*CapoIpsetAddDelMembersReply) GetCrcString() string
- func (*CapoIpsetAddDelMembersReply) GetMessageName() string
- func (*CapoIpsetAddDelMembersReply) GetMessageType() api.MessageType
- func (m *CapoIpsetAddDelMembersReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoIpsetAddDelMembersReply) Reset()
- func (m *CapoIpsetAddDelMembersReply) Size() (size int)
- func (m *CapoIpsetAddDelMembersReply) Unmarshal(b []byte) error
- type CapoIpsetCreate
- func (*CapoIpsetCreate) GetCrcString() string
- func (*CapoIpsetCreate) GetMessageName() string
- func (*CapoIpsetCreate) GetMessageType() api.MessageType
- func (m *CapoIpsetCreate) Marshal(b []byte) ([]byte, error)
- func (m *CapoIpsetCreate) Reset()
- func (m *CapoIpsetCreate) Size() (size int)
- func (m *CapoIpsetCreate) Unmarshal(b []byte) error
- type CapoIpsetCreateReply
- func (*CapoIpsetCreateReply) GetCrcString() string
- func (*CapoIpsetCreateReply) GetMessageName() string
- func (*CapoIpsetCreateReply) GetMessageType() api.MessageType
- func (m *CapoIpsetCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoIpsetCreateReply) Reset()
- func (m *CapoIpsetCreateReply) Size() (size int)
- func (m *CapoIpsetCreateReply) Unmarshal(b []byte) error
- type CapoIpsetDelete
- func (*CapoIpsetDelete) GetCrcString() string
- func (*CapoIpsetDelete) GetMessageName() string
- func (*CapoIpsetDelete) GetMessageType() api.MessageType
- func (m *CapoIpsetDelete) Marshal(b []byte) ([]byte, error)
- func (m *CapoIpsetDelete) Reset()
- func (m *CapoIpsetDelete) Size() (size int)
- func (m *CapoIpsetDelete) Unmarshal(b []byte) error
- type CapoIpsetDeleteReply
- func (*CapoIpsetDeleteReply) GetCrcString() string
- func (*CapoIpsetDeleteReply) GetMessageName() string
- func (*CapoIpsetDeleteReply) GetMessageType() api.MessageType
- func (m *CapoIpsetDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoIpsetDeleteReply) Reset()
- func (m *CapoIpsetDeleteReply) Size() (size int)
- func (m *CapoIpsetDeleteReply) Unmarshal(b []byte) error
- type CapoIpsetMember
- type CapoIpsetMemberValUnion
- func (u *CapoIpsetMemberValUnion) GetAddress() (a ip_types.Address)
- func (u *CapoIpsetMemberValUnion) GetPrefix() (a ip_types.Prefix)
- func (u *CapoIpsetMemberValUnion) GetTuple() (a CapoThreeTuple)
- func (u *CapoIpsetMemberValUnion) SetAddress(a ip_types.Address)
- func (u *CapoIpsetMemberValUnion) SetPrefix(a ip_types.Prefix)
- func (u *CapoIpsetMemberValUnion) SetTuple(a CapoThreeTuple)
- type CapoIpsetType
- type CapoPolicyCreate
- func (*CapoPolicyCreate) GetCrcString() string
- func (*CapoPolicyCreate) GetMessageName() string
- func (*CapoPolicyCreate) GetMessageType() api.MessageType
- func (m *CapoPolicyCreate) Marshal(b []byte) ([]byte, error)
- func (m *CapoPolicyCreate) Reset()
- func (m *CapoPolicyCreate) Size() (size int)
- func (m *CapoPolicyCreate) Unmarshal(b []byte) error
- type CapoPolicyCreateReply
- func (*CapoPolicyCreateReply) GetCrcString() string
- func (*CapoPolicyCreateReply) GetMessageName() string
- func (*CapoPolicyCreateReply) GetMessageType() api.MessageType
- func (m *CapoPolicyCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoPolicyCreateReply) Reset()
- func (m *CapoPolicyCreateReply) Size() (size int)
- func (m *CapoPolicyCreateReply) Unmarshal(b []byte) error
- type CapoPolicyDelete
- func (*CapoPolicyDelete) GetCrcString() string
- func (*CapoPolicyDelete) GetMessageName() string
- func (*CapoPolicyDelete) GetMessageType() api.MessageType
- func (m *CapoPolicyDelete) Marshal(b []byte) ([]byte, error)
- func (m *CapoPolicyDelete) Reset()
- func (m *CapoPolicyDelete) Size() (size int)
- func (m *CapoPolicyDelete) Unmarshal(b []byte) error
- type CapoPolicyDeleteReply
- func (*CapoPolicyDeleteReply) GetCrcString() string
- func (*CapoPolicyDeleteReply) GetMessageName() string
- func (*CapoPolicyDeleteReply) GetMessageType() api.MessageType
- func (m *CapoPolicyDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoPolicyDeleteReply) Reset()
- func (m *CapoPolicyDeleteReply) Size() (size int)
- func (m *CapoPolicyDeleteReply) Unmarshal(b []byte) error
- type CapoPolicyItem
- type CapoPolicyUpdate
- func (*CapoPolicyUpdate) GetCrcString() string
- func (*CapoPolicyUpdate) GetMessageName() string
- func (*CapoPolicyUpdate) GetMessageType() api.MessageType
- func (m *CapoPolicyUpdate) Marshal(b []byte) ([]byte, error)
- func (m *CapoPolicyUpdate) Reset()
- func (m *CapoPolicyUpdate) Size() (size int)
- func (m *CapoPolicyUpdate) Unmarshal(b []byte) error
- type CapoPolicyUpdateReply
- func (*CapoPolicyUpdateReply) GetCrcString() string
- func (*CapoPolicyUpdateReply) GetMessageName() string
- func (*CapoPolicyUpdateReply) GetMessageType() api.MessageType
- func (m *CapoPolicyUpdateReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoPolicyUpdateReply) Reset()
- func (m *CapoPolicyUpdateReply) Size() (size int)
- func (m *CapoPolicyUpdateReply) Unmarshal(b []byte) error
- type CapoPortRange
- type CapoRule
- type CapoRuleAction
- type CapoRuleCreate
- func (*CapoRuleCreate) GetCrcString() string
- func (*CapoRuleCreate) GetMessageName() string
- func (*CapoRuleCreate) GetMessageType() api.MessageType
- func (m *CapoRuleCreate) Marshal(b []byte) ([]byte, error)
- func (m *CapoRuleCreate) Reset()
- func (m *CapoRuleCreate) Size() (size int)
- func (m *CapoRuleCreate) Unmarshal(b []byte) error
- type CapoRuleCreateReply
- func (*CapoRuleCreateReply) GetCrcString() string
- func (*CapoRuleCreateReply) GetMessageName() string
- func (*CapoRuleCreateReply) GetMessageType() api.MessageType
- func (m *CapoRuleCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoRuleCreateReply) Reset()
- func (m *CapoRuleCreateReply) Size() (size int)
- func (m *CapoRuleCreateReply) Unmarshal(b []byte) error
- type CapoRuleDelete
- func (*CapoRuleDelete) GetCrcString() string
- func (*CapoRuleDelete) GetMessageName() string
- func (*CapoRuleDelete) GetMessageType() api.MessageType
- func (m *CapoRuleDelete) Marshal(b []byte) ([]byte, error)
- func (m *CapoRuleDelete) Reset()
- func (m *CapoRuleDelete) Size() (size int)
- func (m *CapoRuleDelete) Unmarshal(b []byte) error
- type CapoRuleDeleteReply
- func (*CapoRuleDeleteReply) GetCrcString() string
- func (*CapoRuleDeleteReply) GetMessageName() string
- func (*CapoRuleDeleteReply) GetMessageType() api.MessageType
- func (m *CapoRuleDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoRuleDeleteReply) Reset()
- func (m *CapoRuleDeleteReply) Size() (size int)
- func (m *CapoRuleDeleteReply) Unmarshal(b []byte) error
- type CapoRuleEntry
- type CapoRuleFilter
- type CapoRuleFilterType
- type CapoRuleUpdate
- func (*CapoRuleUpdate) GetCrcString() string
- func (*CapoRuleUpdate) GetMessageName() string
- func (*CapoRuleUpdate) GetMessageType() api.MessageType
- func (m *CapoRuleUpdate) Marshal(b []byte) ([]byte, error)
- func (m *CapoRuleUpdate) Reset()
- func (m *CapoRuleUpdate) Size() (size int)
- func (m *CapoRuleUpdate) Unmarshal(b []byte) error
- type CapoRuleUpdateReply
- func (*CapoRuleUpdateReply) GetCrcString() string
- func (*CapoRuleUpdateReply) GetMessageName() string
- func (*CapoRuleUpdateReply) GetMessageType() api.MessageType
- func (m *CapoRuleUpdateReply) Marshal(b []byte) ([]byte, error)
- func (m *CapoRuleUpdateReply) Reset()
- func (m *CapoRuleUpdateReply) Size() (size int)
- func (m *CapoRuleUpdateReply) Unmarshal(b []byte) error
- type CapoThreeTuple
- type RPCService
Constants ¶
const ( APIFile = "capo" APIVersion = "0.1.0" VersionCrc = 0x7ed1a7f5 )
Variables ¶
var ( CapoEntryType_name = map[uint8]string{ 0: "CAPO_CIDR", 1: "CAPO_PORT_RANGE", 2: "CAPO_PORT_IP_SET", 3: "CAPO_IP_SET", } CapoEntryType_value = map[string]uint8{ "CAPO_CIDR": 0, "CAPO_PORT_RANGE": 1, "CAPO_PORT_IP_SET": 2, "CAPO_IP_SET": 3, } )
var ( CapoIpsetType_name = map[uint8]string{ 0: "CAPO_IP", 1: "CAPO_IP_AND_PORT", 2: "CAPO_NET", } CapoIpsetType_value = map[string]uint8{ "CAPO_IP": 0, "CAPO_IP_AND_PORT": 1, "CAPO_NET": 2, } )
var ( CapoRuleAction_name = map[uint8]string{ 0: "CAPO_ALLOW", 1: "CAPO_DENY", 2: "CAPO_LOG", 3: "CAPO_PASS", } CapoRuleAction_value = map[string]uint8{ "CAPO_ALLOW": 0, "CAPO_DENY": 1, "CAPO_LOG": 2, "CAPO_PASS": 3, } )
var ( CapoRuleFilterType_name = map[uint8]string{ 0: "CAPO_RULE_FILTER_NONE_TYPE", 1: "CAPO_RULE_FILTER_ICMP_TYPE", 2: "CAPO_RULE_FILTER_ICMP_CODE", 3: "CAPO_RULE_FILTER_L4_PROTO", } CapoRuleFilterType_value = map[string]uint8{ "CAPO_RULE_FILTER_NONE_TYPE": 0, "CAPO_RULE_FILTER_ICMP_TYPE": 1, "CAPO_RULE_FILTER_ICMP_CODE": 2, "CAPO_RULE_FILTER_L4_PROTO": 3, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type CapoConfigurePolicies ¶
type CapoConfigurePolicies struct { SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"` NumRxPolicies uint32 `binapi:"u32,name=num_rx_policies" json:"num_rx_policies,omitempty"` NumTxPolicies uint32 `binapi:"u32,name=num_tx_policies" json:"num_tx_policies,omitempty"` TotalIds uint32 `binapi:"u32,name=total_ids" json:"-"` InvertRxTx uint8 `binapi:"u8,name=invert_rx_tx" json:"invert_rx_tx,omitempty"` PolicyIds []uint32 `binapi:"u32[total_ids],name=policy_ids" json:"policy_ids,omitempty"` }
CapoConfigurePolicies defines message 'capo_configure_policies'.
func (*CapoConfigurePolicies) GetCrcString ¶
func (*CapoConfigurePolicies) GetCrcString() string
func (*CapoConfigurePolicies) GetMessageName ¶
func (*CapoConfigurePolicies) GetMessageName() string
func (*CapoConfigurePolicies) GetMessageType ¶
func (*CapoConfigurePolicies) GetMessageType() api.MessageType
func (*CapoConfigurePolicies) Marshal ¶
func (m *CapoConfigurePolicies) Marshal(b []byte) ([]byte, error)
func (*CapoConfigurePolicies) Reset ¶
func (m *CapoConfigurePolicies) Reset()
func (*CapoConfigurePolicies) Size ¶
func (m *CapoConfigurePolicies) Size() (size int)
func (*CapoConfigurePolicies) Unmarshal ¶
func (m *CapoConfigurePolicies) Unmarshal(b []byte) error
type CapoConfigurePoliciesReply ¶
type CapoConfigurePoliciesReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoConfigurePoliciesReply defines message 'capo_configure_policies_reply'.
func (*CapoConfigurePoliciesReply) GetCrcString ¶
func (*CapoConfigurePoliciesReply) GetCrcString() string
func (*CapoConfigurePoliciesReply) GetMessageName ¶
func (*CapoConfigurePoliciesReply) GetMessageName() string
func (*CapoConfigurePoliciesReply) GetMessageType ¶
func (*CapoConfigurePoliciesReply) GetMessageType() api.MessageType
func (*CapoConfigurePoliciesReply) Marshal ¶
func (m *CapoConfigurePoliciesReply) Marshal(b []byte) ([]byte, error)
func (*CapoConfigurePoliciesReply) Reset ¶
func (m *CapoConfigurePoliciesReply) Reset()
func (*CapoConfigurePoliciesReply) Size ¶
func (m *CapoConfigurePoliciesReply) Size() (size int)
func (*CapoConfigurePoliciesReply) Unmarshal ¶
func (m *CapoConfigurePoliciesReply) Unmarshal(b []byte) error
type CapoControlPing ¶
type CapoControlPing struct{}
Control ping from client to api server request CapoControlPing defines message 'capo_control_ping'.
func (*CapoControlPing) GetCrcString ¶
func (*CapoControlPing) GetCrcString() string
func (*CapoControlPing) GetMessageName ¶
func (*CapoControlPing) GetMessageName() string
func (*CapoControlPing) GetMessageType ¶
func (*CapoControlPing) GetMessageType() api.MessageType
func (*CapoControlPing) Reset ¶
func (m *CapoControlPing) Reset()
func (*CapoControlPing) Size ¶
func (m *CapoControlPing) Size() (size int)
func (*CapoControlPing) Unmarshal ¶
func (m *CapoControlPing) Unmarshal(b []byte) error
type CapoControlPingReply ¶
type CapoControlPingReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"` VpePID uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"` }
Control ping from the client to the server response
- retval - return code for the request
- vpe_pid - the pid of the vpe, returned by the server
CapoControlPingReply defines message 'capo_control_ping_reply'.
func (*CapoControlPingReply) GetCrcString ¶
func (*CapoControlPingReply) GetCrcString() string
func (*CapoControlPingReply) GetMessageName ¶
func (*CapoControlPingReply) GetMessageName() string
func (*CapoControlPingReply) GetMessageType ¶
func (*CapoControlPingReply) GetMessageType() api.MessageType
func (*CapoControlPingReply) Marshal ¶
func (m *CapoControlPingReply) Marshal(b []byte) ([]byte, error)
func (*CapoControlPingReply) Reset ¶
func (m *CapoControlPingReply) Reset()
func (*CapoControlPingReply) Size ¶
func (m *CapoControlPingReply) Size() (size int)
func (*CapoControlPingReply) Unmarshal ¶
func (m *CapoControlPingReply) Unmarshal(b []byte) error
type CapoEntryDataUnion ¶
type CapoEntryDataUnion struct { // CapoEntryDataUnion can be one of: // - Cidr *ip_types.Prefix // - PortRange *CapoPortRange // - SetID *CapoEntrySetID XXX_UnionData [18]byte }
CapoEntryDataUnion defines union 'capo_entry_data'.
func CapoEntryDataUnionCidr ¶
func CapoEntryDataUnionCidr(a ip_types.Prefix) (u CapoEntryDataUnion)
func CapoEntryDataUnionPortRange ¶
func CapoEntryDataUnionPortRange(a CapoPortRange) (u CapoEntryDataUnion)
func CapoEntryDataUnionSetID ¶
func CapoEntryDataUnionSetID(a CapoEntrySetID) (u CapoEntryDataUnion)
func (*CapoEntryDataUnion) GetCidr ¶
func (u *CapoEntryDataUnion) GetCidr() (a ip_types.Prefix)
func (*CapoEntryDataUnion) GetPortRange ¶
func (u *CapoEntryDataUnion) GetPortRange() (a CapoPortRange)
func (*CapoEntryDataUnion) GetSetID ¶
func (u *CapoEntryDataUnion) GetSetID() (a CapoEntrySetID)
func (*CapoEntryDataUnion) SetCidr ¶
func (u *CapoEntryDataUnion) SetCidr(a ip_types.Prefix)
func (*CapoEntryDataUnion) SetPortRange ¶
func (u *CapoEntryDataUnion) SetPortRange(a CapoPortRange)
func (*CapoEntryDataUnion) SetSetID ¶
func (u *CapoEntryDataUnion) SetSetID(a CapoEntrySetID)
type CapoEntrySetID ¶
type CapoEntrySetID struct {
SetID uint32 `binapi:"u32,name=set_id" json:"set_id,omitempty"`
}
CapoEntrySetID defines type 'capo_entry_set_id'.
type CapoEntryType ¶
type CapoEntryType uint8
CapoEntryType defines enum 'capo_entry_type'.
const ( CAPO_CIDR CapoEntryType = 0 CAPO_PORT_RANGE CapoEntryType = 1 CAPO_PORT_IP_SET CapoEntryType = 2 CAPO_IP_SET CapoEntryType = 3 )
func (CapoEntryType) String ¶
func (x CapoEntryType) String() string
type CapoGetVersion ¶
type CapoGetVersion struct{}
Get the plugin version CapoGetVersion defines message 'capo_get_version'.
func (*CapoGetVersion) GetCrcString ¶
func (*CapoGetVersion) GetCrcString() string
func (*CapoGetVersion) GetMessageName ¶
func (*CapoGetVersion) GetMessageName() string
func (*CapoGetVersion) GetMessageType ¶
func (*CapoGetVersion) GetMessageType() api.MessageType
func (*CapoGetVersion) Reset ¶
func (m *CapoGetVersion) Reset()
func (*CapoGetVersion) Size ¶
func (m *CapoGetVersion) Size() (size int)
func (*CapoGetVersion) Unmarshal ¶
func (m *CapoGetVersion) Unmarshal(b []byte) error
type CapoGetVersionReply ¶
type CapoGetVersionReply struct { Major uint32 `binapi:"u32,name=major" json:"major,omitempty"` Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"` }
Reply to get the plugin version
- major - Incremented every time a known breaking behavior change is introduced
- minor - Incremented with small changes, may be used to avoid buggy versions
CapoGetVersionReply defines message 'capo_get_version_reply'.
func (*CapoGetVersionReply) GetCrcString ¶
func (*CapoGetVersionReply) GetCrcString() string
func (*CapoGetVersionReply) GetMessageName ¶
func (*CapoGetVersionReply) GetMessageName() string
func (*CapoGetVersionReply) GetMessageType ¶
func (*CapoGetVersionReply) GetMessageType() api.MessageType
func (*CapoGetVersionReply) Marshal ¶
func (m *CapoGetVersionReply) Marshal(b []byte) ([]byte, error)
func (*CapoGetVersionReply) Reset ¶
func (m *CapoGetVersionReply) Reset()
func (*CapoGetVersionReply) Size ¶
func (m *CapoGetVersionReply) Size() (size int)
func (*CapoGetVersionReply) Unmarshal ¶
func (m *CapoGetVersionReply) Unmarshal(b []byte) error
type CapoIpsetAddDelMembers ¶
type CapoIpsetAddDelMembers struct { SetID uint32 `binapi:"u32,name=set_id" json:"set_id,omitempty"` IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` Len uint32 `binapi:"u32,name=len" json:"-"` Members []CapoIpsetMember `binapi:"capo_ipset_member[len],name=members" json:"members,omitempty"` }
CapoIpsetAddDelMembers defines message 'capo_ipset_add_del_members'.
func (*CapoIpsetAddDelMembers) GetCrcString ¶
func (*CapoIpsetAddDelMembers) GetCrcString() string
func (*CapoIpsetAddDelMembers) GetMessageName ¶
func (*CapoIpsetAddDelMembers) GetMessageName() string
func (*CapoIpsetAddDelMembers) GetMessageType ¶
func (*CapoIpsetAddDelMembers) GetMessageType() api.MessageType
func (*CapoIpsetAddDelMembers) Marshal ¶
func (m *CapoIpsetAddDelMembers) Marshal(b []byte) ([]byte, error)
func (*CapoIpsetAddDelMembers) Reset ¶
func (m *CapoIpsetAddDelMembers) Reset()
func (*CapoIpsetAddDelMembers) Size ¶
func (m *CapoIpsetAddDelMembers) Size() (size int)
func (*CapoIpsetAddDelMembers) Unmarshal ¶
func (m *CapoIpsetAddDelMembers) Unmarshal(b []byte) error
type CapoIpsetAddDelMembersReply ¶
type CapoIpsetAddDelMembersReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoIpsetAddDelMembersReply defines message 'capo_ipset_add_del_members_reply'.
func (*CapoIpsetAddDelMembersReply) GetCrcString ¶
func (*CapoIpsetAddDelMembersReply) GetCrcString() string
func (*CapoIpsetAddDelMembersReply) GetMessageName ¶
func (*CapoIpsetAddDelMembersReply) GetMessageName() string
func (*CapoIpsetAddDelMembersReply) GetMessageType ¶
func (*CapoIpsetAddDelMembersReply) GetMessageType() api.MessageType
func (*CapoIpsetAddDelMembersReply) Marshal ¶
func (m *CapoIpsetAddDelMembersReply) Marshal(b []byte) ([]byte, error)
func (*CapoIpsetAddDelMembersReply) Reset ¶
func (m *CapoIpsetAddDelMembersReply) Reset()
func (*CapoIpsetAddDelMembersReply) Size ¶
func (m *CapoIpsetAddDelMembersReply) Size() (size int)
func (*CapoIpsetAddDelMembersReply) Unmarshal ¶
func (m *CapoIpsetAddDelMembersReply) Unmarshal(b []byte) error
type CapoIpsetCreate ¶
type CapoIpsetCreate struct {
Type CapoIpsetType `binapi:"capo_ipset_type,name=type" json:"type,omitempty"`
}
CapoIpsetCreate defines message 'capo_ipset_create'.
func (*CapoIpsetCreate) GetCrcString ¶
func (*CapoIpsetCreate) GetCrcString() string
func (*CapoIpsetCreate) GetMessageName ¶
func (*CapoIpsetCreate) GetMessageName() string
func (*CapoIpsetCreate) GetMessageType ¶
func (*CapoIpsetCreate) GetMessageType() api.MessageType
func (*CapoIpsetCreate) Reset ¶
func (m *CapoIpsetCreate) Reset()
func (*CapoIpsetCreate) Size ¶
func (m *CapoIpsetCreate) Size() (size int)
func (*CapoIpsetCreate) Unmarshal ¶
func (m *CapoIpsetCreate) Unmarshal(b []byte) error
type CapoIpsetCreateReply ¶
type CapoIpsetCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SetID uint32 `binapi:"u32,name=set_id" json:"set_id,omitempty"` }
CapoIpsetCreateReply defines message 'capo_ipset_create_reply'.
func (*CapoIpsetCreateReply) GetCrcString ¶
func (*CapoIpsetCreateReply) GetCrcString() string
func (*CapoIpsetCreateReply) GetMessageName ¶
func (*CapoIpsetCreateReply) GetMessageName() string
func (*CapoIpsetCreateReply) GetMessageType ¶
func (*CapoIpsetCreateReply) GetMessageType() api.MessageType
func (*CapoIpsetCreateReply) Marshal ¶
func (m *CapoIpsetCreateReply) Marshal(b []byte) ([]byte, error)
func (*CapoIpsetCreateReply) Reset ¶
func (m *CapoIpsetCreateReply) Reset()
func (*CapoIpsetCreateReply) Size ¶
func (m *CapoIpsetCreateReply) Size() (size int)
func (*CapoIpsetCreateReply) Unmarshal ¶
func (m *CapoIpsetCreateReply) Unmarshal(b []byte) error
type CapoIpsetDelete ¶
type CapoIpsetDelete struct {
SetID uint32 `binapi:"u32,name=set_id" json:"set_id,omitempty"`
}
CapoIpsetDelete defines message 'capo_ipset_delete'.
func (*CapoIpsetDelete) GetCrcString ¶
func (*CapoIpsetDelete) GetCrcString() string
func (*CapoIpsetDelete) GetMessageName ¶
func (*CapoIpsetDelete) GetMessageName() string
func (*CapoIpsetDelete) GetMessageType ¶
func (*CapoIpsetDelete) GetMessageType() api.MessageType
func (*CapoIpsetDelete) Reset ¶
func (m *CapoIpsetDelete) Reset()
func (*CapoIpsetDelete) Size ¶
func (m *CapoIpsetDelete) Size() (size int)
func (*CapoIpsetDelete) Unmarshal ¶
func (m *CapoIpsetDelete) Unmarshal(b []byte) error
type CapoIpsetDeleteReply ¶
type CapoIpsetDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoIpsetDeleteReply defines message 'capo_ipset_delete_reply'.
func (*CapoIpsetDeleteReply) GetCrcString ¶
func (*CapoIpsetDeleteReply) GetCrcString() string
func (*CapoIpsetDeleteReply) GetMessageName ¶
func (*CapoIpsetDeleteReply) GetMessageName() string
func (*CapoIpsetDeleteReply) GetMessageType ¶
func (*CapoIpsetDeleteReply) GetMessageType() api.MessageType
func (*CapoIpsetDeleteReply) Marshal ¶
func (m *CapoIpsetDeleteReply) Marshal(b []byte) ([]byte, error)
func (*CapoIpsetDeleteReply) Reset ¶
func (m *CapoIpsetDeleteReply) Reset()
func (*CapoIpsetDeleteReply) Size ¶
func (m *CapoIpsetDeleteReply) Size() (size int)
func (*CapoIpsetDeleteReply) Unmarshal ¶
func (m *CapoIpsetDeleteReply) Unmarshal(b []byte) error
type CapoIpsetMember ¶
type CapoIpsetMember struct {
Val CapoIpsetMemberValUnion `binapi:"capo_ipset_member_val,name=val" json:"val,omitempty"`
}
CapoIpsetMember defines type 'capo_ipset_member'.
type CapoIpsetMemberValUnion ¶
type CapoIpsetMemberValUnion struct { // CapoIpsetMemberValUnion can be one of: // - Address *ip_types.Address // - Prefix *ip_types.Prefix // - Tuple *CapoThreeTuple XXX_UnionData [20]byte }
CapoIpsetMemberValUnion defines union 'capo_ipset_member_val'.
func CapoIpsetMemberValUnionAddress ¶
func CapoIpsetMemberValUnionAddress(a ip_types.Address) (u CapoIpsetMemberValUnion)
func CapoIpsetMemberValUnionPrefix ¶
func CapoIpsetMemberValUnionPrefix(a ip_types.Prefix) (u CapoIpsetMemberValUnion)
func CapoIpsetMemberValUnionTuple ¶
func CapoIpsetMemberValUnionTuple(a CapoThreeTuple) (u CapoIpsetMemberValUnion)
func (*CapoIpsetMemberValUnion) GetAddress ¶
func (u *CapoIpsetMemberValUnion) GetAddress() (a ip_types.Address)
func (*CapoIpsetMemberValUnion) GetPrefix ¶
func (u *CapoIpsetMemberValUnion) GetPrefix() (a ip_types.Prefix)
func (*CapoIpsetMemberValUnion) GetTuple ¶
func (u *CapoIpsetMemberValUnion) GetTuple() (a CapoThreeTuple)
func (*CapoIpsetMemberValUnion) SetAddress ¶
func (u *CapoIpsetMemberValUnion) SetAddress(a ip_types.Address)
func (*CapoIpsetMemberValUnion) SetPrefix ¶
func (u *CapoIpsetMemberValUnion) SetPrefix(a ip_types.Prefix)
func (*CapoIpsetMemberValUnion) SetTuple ¶
func (u *CapoIpsetMemberValUnion) SetTuple(a CapoThreeTuple)
type CapoIpsetType ¶
type CapoIpsetType uint8
CapoIpsetType defines enum 'capo_ipset_type'.
const ( CAPO_IP CapoIpsetType = 0 CAPO_IP_AND_PORT CapoIpsetType = 1 CAPO_NET CapoIpsetType = 2 )
func (CapoIpsetType) String ¶
func (x CapoIpsetType) String() string
type CapoPolicyCreate ¶
type CapoPolicyCreate struct { NumItems uint32 `binapi:"u32,name=num_items" json:"-"` Rules []CapoPolicyItem `binapi:"capo_policy_item[num_items],name=rules" json:"rules,omitempty"` }
CapoPolicyCreate defines message 'capo_policy_create'.
func (*CapoPolicyCreate) GetCrcString ¶
func (*CapoPolicyCreate) GetCrcString() string
func (*CapoPolicyCreate) GetMessageName ¶
func (*CapoPolicyCreate) GetMessageName() string
func (*CapoPolicyCreate) GetMessageType ¶
func (*CapoPolicyCreate) GetMessageType() api.MessageType
func (*CapoPolicyCreate) Reset ¶
func (m *CapoPolicyCreate) Reset()
func (*CapoPolicyCreate) Size ¶
func (m *CapoPolicyCreate) Size() (size int)
func (*CapoPolicyCreate) Unmarshal ¶
func (m *CapoPolicyCreate) Unmarshal(b []byte) error
type CapoPolicyCreateReply ¶
type CapoPolicyCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` PolicyID uint32 `binapi:"u32,name=policy_id" json:"policy_id,omitempty"` }
CapoPolicyCreateReply defines message 'capo_policy_create_reply'.
func (*CapoPolicyCreateReply) GetCrcString ¶
func (*CapoPolicyCreateReply) GetCrcString() string
func (*CapoPolicyCreateReply) GetMessageName ¶
func (*CapoPolicyCreateReply) GetMessageName() string
func (*CapoPolicyCreateReply) GetMessageType ¶
func (*CapoPolicyCreateReply) GetMessageType() api.MessageType
func (*CapoPolicyCreateReply) Marshal ¶
func (m *CapoPolicyCreateReply) Marshal(b []byte) ([]byte, error)
func (*CapoPolicyCreateReply) Reset ¶
func (m *CapoPolicyCreateReply) Reset()
func (*CapoPolicyCreateReply) Size ¶
func (m *CapoPolicyCreateReply) Size() (size int)
func (*CapoPolicyCreateReply) Unmarshal ¶
func (m *CapoPolicyCreateReply) Unmarshal(b []byte) error
type CapoPolicyDelete ¶
type CapoPolicyDelete struct {
PolicyID uint32 `binapi:"u32,name=policy_id" json:"policy_id,omitempty"`
}
CapoPolicyDelete defines message 'capo_policy_delete'.
func (*CapoPolicyDelete) GetCrcString ¶
func (*CapoPolicyDelete) GetCrcString() string
func (*CapoPolicyDelete) GetMessageName ¶
func (*CapoPolicyDelete) GetMessageName() string
func (*CapoPolicyDelete) GetMessageType ¶
func (*CapoPolicyDelete) GetMessageType() api.MessageType
func (*CapoPolicyDelete) Reset ¶
func (m *CapoPolicyDelete) Reset()
func (*CapoPolicyDelete) Size ¶
func (m *CapoPolicyDelete) Size() (size int)
func (*CapoPolicyDelete) Unmarshal ¶
func (m *CapoPolicyDelete) Unmarshal(b []byte) error
type CapoPolicyDeleteReply ¶
type CapoPolicyDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoPolicyDeleteReply defines message 'capo_policy_delete_reply'.
func (*CapoPolicyDeleteReply) GetCrcString ¶
func (*CapoPolicyDeleteReply) GetCrcString() string
func (*CapoPolicyDeleteReply) GetMessageName ¶
func (*CapoPolicyDeleteReply) GetMessageName() string
func (*CapoPolicyDeleteReply) GetMessageType ¶
func (*CapoPolicyDeleteReply) GetMessageType() api.MessageType
func (*CapoPolicyDeleteReply) Marshal ¶
func (m *CapoPolicyDeleteReply) Marshal(b []byte) ([]byte, error)
func (*CapoPolicyDeleteReply) Reset ¶
func (m *CapoPolicyDeleteReply) Reset()
func (*CapoPolicyDeleteReply) Size ¶
func (m *CapoPolicyDeleteReply) Size() (size int)
func (*CapoPolicyDeleteReply) Unmarshal ¶
func (m *CapoPolicyDeleteReply) Unmarshal(b []byte) error
type CapoPolicyItem ¶
type CapoPolicyItem struct { IsInbound bool `binapi:"bool,name=is_inbound" json:"is_inbound,omitempty"` RuleID uint32 `binapi:"u32,name=rule_id" json:"rule_id,omitempty"` }
CapoPolicyItem defines type 'capo_policy_item'.
type CapoPolicyUpdate ¶
type CapoPolicyUpdate struct { PolicyID uint32 `binapi:"u32,name=policy_id" json:"policy_id,omitempty"` NumItems uint32 `binapi:"u32,name=num_items" json:"-"` Rules []CapoPolicyItem `binapi:"capo_policy_item[num_items],name=rules" json:"rules,omitempty"` }
CapoPolicyUpdate defines message 'capo_policy_update'.
func (*CapoPolicyUpdate) GetCrcString ¶
func (*CapoPolicyUpdate) GetCrcString() string
func (*CapoPolicyUpdate) GetMessageName ¶
func (*CapoPolicyUpdate) GetMessageName() string
func (*CapoPolicyUpdate) GetMessageType ¶
func (*CapoPolicyUpdate) GetMessageType() api.MessageType
func (*CapoPolicyUpdate) Reset ¶
func (m *CapoPolicyUpdate) Reset()
func (*CapoPolicyUpdate) Size ¶
func (m *CapoPolicyUpdate) Size() (size int)
func (*CapoPolicyUpdate) Unmarshal ¶
func (m *CapoPolicyUpdate) Unmarshal(b []byte) error
type CapoPolicyUpdateReply ¶
type CapoPolicyUpdateReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoPolicyUpdateReply defines message 'capo_policy_update_reply'.
func (*CapoPolicyUpdateReply) GetCrcString ¶
func (*CapoPolicyUpdateReply) GetCrcString() string
func (*CapoPolicyUpdateReply) GetMessageName ¶
func (*CapoPolicyUpdateReply) GetMessageName() string
func (*CapoPolicyUpdateReply) GetMessageType ¶
func (*CapoPolicyUpdateReply) GetMessageType() api.MessageType
func (*CapoPolicyUpdateReply) Marshal ¶
func (m *CapoPolicyUpdateReply) Marshal(b []byte) ([]byte, error)
func (*CapoPolicyUpdateReply) Reset ¶
func (m *CapoPolicyUpdateReply) Reset()
func (*CapoPolicyUpdateReply) Size ¶
func (m *CapoPolicyUpdateReply) Size() (size int)
func (*CapoPolicyUpdateReply) Unmarshal ¶
func (m *CapoPolicyUpdateReply) Unmarshal(b []byte) error
type CapoPortRange ¶
type CapoPortRange struct { Start uint16 `binapi:"u16,name=start" json:"start,omitempty"` End uint16 `binapi:"u16,name=end" json:"end,omitempty"` }
CapoPortRange defines type 'capo_port_range'.
type CapoRule ¶
type CapoRule struct { Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` Action CapoRuleAction `binapi:"capo_rule_action,name=action" json:"action,omitempty"` Filters [3]CapoRuleFilter `binapi:"capo_rule_filter[3],name=filters" json:"filters,omitempty"` NumEntries uint32 `binapi:"u32,name=num_entries" json:"-"` Matches []CapoRuleEntry `binapi:"capo_rule_entry[num_entries],name=matches" json:"matches,omitempty"` }
CapoRule defines type 'capo_rule'.
type CapoRuleAction ¶
type CapoRuleAction uint8
CapoRuleAction defines enum 'capo_rule_action'.
const ( CAPO_ALLOW CapoRuleAction = 0 CAPO_DENY CapoRuleAction = 1 CAPO_LOG CapoRuleAction = 2 CAPO_PASS CapoRuleAction = 3 )
func (CapoRuleAction) String ¶
func (x CapoRuleAction) String() string
type CapoRuleCreate ¶
type CapoRuleCreate struct {
Rule CapoRule `binapi:"capo_rule,name=rule" json:"rule,omitempty"`
}
// where the packet only needs to match one entry in either category CapoRuleCreate defines message 'capo_rule_create'.
func (*CapoRuleCreate) GetCrcString ¶
func (*CapoRuleCreate) GetCrcString() string
func (*CapoRuleCreate) GetMessageName ¶
func (*CapoRuleCreate) GetMessageName() string
func (*CapoRuleCreate) GetMessageType ¶
func (*CapoRuleCreate) GetMessageType() api.MessageType
func (*CapoRuleCreate) Reset ¶
func (m *CapoRuleCreate) Reset()
func (*CapoRuleCreate) Size ¶
func (m *CapoRuleCreate) Size() (size int)
func (*CapoRuleCreate) Unmarshal ¶
func (m *CapoRuleCreate) Unmarshal(b []byte) error
type CapoRuleCreateReply ¶
type CapoRuleCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` RuleID uint32 `binapi:"u32,name=rule_id" json:"rule_id,omitempty"` }
CapoRuleCreateReply defines message 'capo_rule_create_reply'.
func (*CapoRuleCreateReply) GetCrcString ¶
func (*CapoRuleCreateReply) GetCrcString() string
func (*CapoRuleCreateReply) GetMessageName ¶
func (*CapoRuleCreateReply) GetMessageName() string
func (*CapoRuleCreateReply) GetMessageType ¶
func (*CapoRuleCreateReply) GetMessageType() api.MessageType
func (*CapoRuleCreateReply) Marshal ¶
func (m *CapoRuleCreateReply) Marshal(b []byte) ([]byte, error)
func (*CapoRuleCreateReply) Reset ¶
func (m *CapoRuleCreateReply) Reset()
func (*CapoRuleCreateReply) Size ¶
func (m *CapoRuleCreateReply) Size() (size int)
func (*CapoRuleCreateReply) Unmarshal ¶
func (m *CapoRuleCreateReply) Unmarshal(b []byte) error
type CapoRuleDelete ¶
type CapoRuleDelete struct {
RuleID uint32 `binapi:"u32,name=rule_id" json:"rule_id,omitempty"`
}
CapoRuleDelete defines message 'capo_rule_delete'.
func (*CapoRuleDelete) GetCrcString ¶
func (*CapoRuleDelete) GetCrcString() string
func (*CapoRuleDelete) GetMessageName ¶
func (*CapoRuleDelete) GetMessageName() string
func (*CapoRuleDelete) GetMessageType ¶
func (*CapoRuleDelete) GetMessageType() api.MessageType
func (*CapoRuleDelete) Reset ¶
func (m *CapoRuleDelete) Reset()
func (*CapoRuleDelete) Size ¶
func (m *CapoRuleDelete) Size() (size int)
func (*CapoRuleDelete) Unmarshal ¶
func (m *CapoRuleDelete) Unmarshal(b []byte) error
type CapoRuleDeleteReply ¶
type CapoRuleDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoRuleDeleteReply defines message 'capo_rule_delete_reply'.
func (*CapoRuleDeleteReply) GetCrcString ¶
func (*CapoRuleDeleteReply) GetCrcString() string
func (*CapoRuleDeleteReply) GetMessageName ¶
func (*CapoRuleDeleteReply) GetMessageName() string
func (*CapoRuleDeleteReply) GetMessageType ¶
func (*CapoRuleDeleteReply) GetMessageType() api.MessageType
func (*CapoRuleDeleteReply) Marshal ¶
func (m *CapoRuleDeleteReply) Marshal(b []byte) ([]byte, error)
func (*CapoRuleDeleteReply) Reset ¶
func (m *CapoRuleDeleteReply) Reset()
func (*CapoRuleDeleteReply) Size ¶
func (m *CapoRuleDeleteReply) Size() (size int)
func (*CapoRuleDeleteReply) Unmarshal ¶
func (m *CapoRuleDeleteReply) Unmarshal(b []byte) error
type CapoRuleEntry ¶
type CapoRuleEntry struct { IsSrc bool `binapi:"bool,name=is_src" json:"is_src,omitempty"` IsNot bool `binapi:"bool,name=is_not" json:"is_not,omitempty"` Type CapoEntryType `binapi:"capo_entry_type,name=type" json:"type,omitempty"` Data CapoEntryDataUnion `binapi:"capo_entry_data,name=data" json:"data,omitempty"` }
CapoRuleEntry defines type 'capo_rule_entry'.
type CapoRuleFilter ¶
type CapoRuleFilter struct { Value uint32 `binapi:"u32,name=value" json:"value,omitempty"` Type CapoRuleFilterType `binapi:"capo_rule_filter_type,name=type" json:"type,omitempty"` ShouldMatch uint8 `binapi:"u8,name=should_match" json:"should_match,omitempty"` }
CapoRuleFilter defines type 'capo_rule_filter'.
type CapoRuleFilterType ¶
type CapoRuleFilterType uint8
CapoRuleFilterType defines enum 'capo_rule_filter_type'.
const ( CAPO_RULE_FILTER_NONE_TYPE CapoRuleFilterType = 0 CAPO_RULE_FILTER_ICMP_TYPE CapoRuleFilterType = 1 CAPO_RULE_FILTER_ICMP_CODE CapoRuleFilterType = 2 CAPO_RULE_FILTER_L4_PROTO CapoRuleFilterType = 3 )
func (CapoRuleFilterType) String ¶
func (x CapoRuleFilterType) String() string
type CapoRuleUpdate ¶
type CapoRuleUpdate struct { RuleID uint32 `binapi:"u32,name=rule_id" json:"rule_id,omitempty"` Rule CapoRule `binapi:"capo_rule,name=rule" json:"rule,omitempty"` }
CapoRuleUpdate defines message 'capo_rule_update'.
func (*CapoRuleUpdate) GetCrcString ¶
func (*CapoRuleUpdate) GetCrcString() string
func (*CapoRuleUpdate) GetMessageName ¶
func (*CapoRuleUpdate) GetMessageName() string
func (*CapoRuleUpdate) GetMessageType ¶
func (*CapoRuleUpdate) GetMessageType() api.MessageType
func (*CapoRuleUpdate) Reset ¶
func (m *CapoRuleUpdate) Reset()
func (*CapoRuleUpdate) Size ¶
func (m *CapoRuleUpdate) Size() (size int)
func (*CapoRuleUpdate) Unmarshal ¶
func (m *CapoRuleUpdate) Unmarshal(b []byte) error
type CapoRuleUpdateReply ¶
type CapoRuleUpdateReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CapoRuleUpdateReply defines message 'capo_rule_update_reply'.
func (*CapoRuleUpdateReply) GetCrcString ¶
func (*CapoRuleUpdateReply) GetCrcString() string
func (*CapoRuleUpdateReply) GetMessageName ¶
func (*CapoRuleUpdateReply) GetMessageName() string
func (*CapoRuleUpdateReply) GetMessageType ¶
func (*CapoRuleUpdateReply) GetMessageType() api.MessageType
func (*CapoRuleUpdateReply) Marshal ¶
func (m *CapoRuleUpdateReply) Marshal(b []byte) ([]byte, error)
func (*CapoRuleUpdateReply) Reset ¶
func (m *CapoRuleUpdateReply) Reset()
func (*CapoRuleUpdateReply) Size ¶
func (m *CapoRuleUpdateReply) Size() (size int)
func (*CapoRuleUpdateReply) Unmarshal ¶
func (m *CapoRuleUpdateReply) Unmarshal(b []byte) error
type CapoThreeTuple ¶
type CapoThreeTuple struct { Address ip_types.Address `binapi:"address,name=address" json:"address,omitempty"` L4Proto uint8 `binapi:"u8,name=l4_proto" json:"l4_proto,omitempty"` Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` }
CapoThreeTuple defines type 'capo_three_tuple'.
type RPCService ¶
type RPCService interface { CapoConfigurePolicies(ctx context.Context, in *CapoConfigurePolicies) (*CapoConfigurePoliciesReply, error) CapoControlPing(ctx context.Context, in *CapoControlPing) (*CapoControlPingReply, error) CapoGetVersion(ctx context.Context, in *CapoGetVersion) (*CapoGetVersionReply, error) CapoIpsetAddDelMembers(ctx context.Context, in *CapoIpsetAddDelMembers) (*CapoIpsetAddDelMembersReply, error) CapoIpsetCreate(ctx context.Context, in *CapoIpsetCreate) (*CapoIpsetCreateReply, error) CapoIpsetDelete(ctx context.Context, in *CapoIpsetDelete) (*CapoIpsetDeleteReply, error) CapoPolicyCreate(ctx context.Context, in *CapoPolicyCreate) (*CapoPolicyCreateReply, error) CapoPolicyDelete(ctx context.Context, in *CapoPolicyDelete) (*CapoPolicyDeleteReply, error) CapoPolicyUpdate(ctx context.Context, in *CapoPolicyUpdate) (*CapoPolicyUpdateReply, error) CapoRuleCreate(ctx context.Context, in *CapoRuleCreate) (*CapoRuleCreateReply, error) CapoRuleDelete(ctx context.Context, in *CapoRuleDelete) (*CapoRuleDeleteReply, error) CapoRuleUpdate(ctx context.Context, in *CapoRuleUpdate) (*CapoRuleUpdateReply, error) }
RPCService defines RPC service capo.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService