session

package
v3.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package session contains generated bindings for API file session.api.

Contents: - 3 enums - 1 struct - 32 messages

Index

Constants

View Source
const (
	APIFile    = "session"
	APIVersion = "4.0.1"
	VersionCrc = 0xd5122da9
)

Variables

View Source
var (
	RtBackendEngine_name = map[uint8]string{
		0: "RT_BACKEND_ENGINE_API_DISABLE",
		1: "RT_BACKEND_ENGINE_API_RULE_TABLE",
		2: "RT_BACKEND_ENGINE_API_NONE",
		3: "RT_BACKEND_ENGINE_API_SDL",
	}
	RtBackendEngine_value = map[string]uint8{
		"RT_BACKEND_ENGINE_API_DISABLE":    0,
		"RT_BACKEND_ENGINE_API_RULE_TABLE": 1,
		"RT_BACKEND_ENGINE_API_NONE":       2,
		"RT_BACKEND_ENGINE_API_SDL":        3,
	}
)
View Source
var (
	SessionRuleScope_name = map[uint32]string{
		0: "SESSION_RULE_SCOPE_API_GLOBAL",
		1: "SESSION_RULE_SCOPE_API_LOCAL",
		2: "SESSION_RULE_SCOPE_API_BOTH",
	}
	SessionRuleScope_value = map[string]uint32{
		"SESSION_RULE_SCOPE_API_GLOBAL": 0,
		"SESSION_RULE_SCOPE_API_LOCAL":  1,
		"SESSION_RULE_SCOPE_API_BOTH":   2,
	}
)
View Source
var (
	TransportProto_name = map[uint8]string{
		0: "TRANSPORT_PROTO_API_TCP",
		1: "TRANSPORT_PROTO_API_UDP",
		2: "TRANSPORT_PROTO_API_NONE",
		3: "TRANSPORT_PROTO_API_TLS",
		4: "TRANSPORT_PROTO_API_QUIC",
	}
	TransportProto_value = map[string]uint8{
		"TRANSPORT_PROTO_API_TCP":  0,
		"TRANSPORT_PROTO_API_UDP":  1,
		"TRANSPORT_PROTO_API_NONE": 2,
		"TRANSPORT_PROTO_API_TLS":  3,
		"TRANSPORT_PROTO_API_QUIC": 4,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type AppAddCertKeyPair

type AppAddCertKeyPair struct {
	CertLen    uint16 `binapi:"u16,name=cert_len" json:"cert_len,omitempty"`
	CertkeyLen uint16 `binapi:"u16,name=certkey_len" json:"-"`
	Certkey    []byte `binapi:"u8[certkey_len],name=certkey" json:"certkey,omitempty"`
}

Add certificate and key

  • engine - crypto engine
  • cert_len - cert length (comes first)
  • certkey_len - cert and key length
  • certkey - cert & key data (due to API limitation)

AppAddCertKeyPair defines message 'app_add_cert_key_pair'.

func (*AppAddCertKeyPair) GetCrcString

func (*AppAddCertKeyPair) GetCrcString() string

func (*AppAddCertKeyPair) GetMessageName

func (*AppAddCertKeyPair) GetMessageName() string

func (*AppAddCertKeyPair) GetMessageType

func (*AppAddCertKeyPair) GetMessageType() api.MessageType

func (*AppAddCertKeyPair) Marshal

func (m *AppAddCertKeyPair) Marshal(b []byte) ([]byte, error)

func (*AppAddCertKeyPair) Reset

func (m *AppAddCertKeyPair) Reset()

func (*AppAddCertKeyPair) Size

func (m *AppAddCertKeyPair) Size() (size int)

func (*AppAddCertKeyPair) Unmarshal

func (m *AppAddCertKeyPair) Unmarshal(b []byte) error

type AppAddCertKeyPairReply

type AppAddCertKeyPairReply struct {
	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	Index  uint32 `binapi:"u32,name=index" json:"index,omitempty"`
}

Add certificate and key

  • retval - return code for the request
  • index - index in certificate store

AppAddCertKeyPairReply defines message 'app_add_cert_key_pair_reply'.

func (*AppAddCertKeyPairReply) GetCrcString

func (*AppAddCertKeyPairReply) GetCrcString() string

func (*AppAddCertKeyPairReply) GetMessageName

func (*AppAddCertKeyPairReply) GetMessageName() string

func (*AppAddCertKeyPairReply) GetMessageType

func (*AppAddCertKeyPairReply) GetMessageType() api.MessageType

func (*AppAddCertKeyPairReply) Marshal

func (m *AppAddCertKeyPairReply) Marshal(b []byte) ([]byte, error)

func (*AppAddCertKeyPairReply) Reset

func (m *AppAddCertKeyPairReply) Reset()

func (*AppAddCertKeyPairReply) Size

func (m *AppAddCertKeyPairReply) Size() (size int)

func (*AppAddCertKeyPairReply) Unmarshal

func (m *AppAddCertKeyPairReply) Unmarshal(b []byte) error

type AppAttach

type AppAttach struct {
	Options     []uint64 `binapi:"u64[18],name=options" json:"options,omitempty"`
	NamespaceID string   `binapi:"string[],name=namespace_id" json:"namespace_id,omitempty"`
}

Application attach to session layer

  • options - segment size, fifo sizes, etc.
  • namespace_id - string

AppAttach defines message 'app_attach'.

func (*AppAttach) GetCrcString

func (*AppAttach) GetCrcString() string

func (*AppAttach) GetMessageName

func (*AppAttach) GetMessageName() string

func (*AppAttach) GetMessageType

func (*AppAttach) GetMessageType() api.MessageType

func (*AppAttach) Marshal

func (m *AppAttach) Marshal(b []byte) ([]byte, error)

func (*AppAttach) Reset

func (m *AppAttach) Reset()

func (*AppAttach) Size

func (m *AppAttach) Size() (size int)

func (*AppAttach) Unmarshal

func (m *AppAttach) Unmarshal(b []byte) error

type AppAttachReply

type AppAttachReply struct {
	Retval          int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	AppMq           uint64 `binapi:"u64,name=app_mq" json:"app_mq,omitempty"`
	VppCtrlMq       uint64 `binapi:"u64,name=vpp_ctrl_mq" json:"vpp_ctrl_mq,omitempty"`
	VppCtrlMqThread uint8  `binapi:"u8,name=vpp_ctrl_mq_thread" json:"vpp_ctrl_mq_thread,omitempty"`
	AppIndex        uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
	NFds            uint8  `binapi:"u8,name=n_fds" json:"n_fds,omitempty"`
	FdFlags         uint8  `binapi:"u8,name=fd_flags" json:"fd_flags,omitempty"`
	SegmentSize     uint32 `binapi:"u32,name=segment_size" json:"segment_size,omitempty"`
	SegmentHandle   uint64 `binapi:"u64,name=segment_handle" json:"segment_handle,omitempty"`
	SegmentName     string `binapi:"string[],name=segment_name" json:"segment_name,omitempty"`
}

Application attach reply

  • retval - return code for the request
  • app_mq - app message queue
  • vpp_ctrl_mq - vpp message queue for control events that should be handled in main thread, i.e., bind/connect
  • vpp_ctrl_mq_thread_index - thread index of the ctrl mq
  • app_index - index of the newly created app
  • n_fds - number of fds exchanged
  • fd_flags - set of flags that indicate which fds are to be expected over the socket (set only if socket transport available)
  • segment_size - size of first shm segment
  • segment_handle - handle for segment
  • segment_name - name of segment client needs to attach to

AppAttachReply defines message 'app_attach_reply'.

func (*AppAttachReply) GetCrcString

func (*AppAttachReply) GetCrcString() string

func (*AppAttachReply) GetMessageName

func (*AppAttachReply) GetMessageName() string

func (*AppAttachReply) GetMessageType

func (*AppAttachReply) GetMessageType() api.MessageType

func (*AppAttachReply) Marshal

func (m *AppAttachReply) Marshal(b []byte) ([]byte, error)

func (*AppAttachReply) Reset

func (m *AppAttachReply) Reset()

func (*AppAttachReply) Size

func (m *AppAttachReply) Size() (size int)

func (*AppAttachReply) Unmarshal

func (m *AppAttachReply) Unmarshal(b []byte) error

type AppDelCertKeyPair

type AppDelCertKeyPair struct {
	Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
}

Delete certificate and key

  • index - index in certificate store

AppDelCertKeyPair defines message 'app_del_cert_key_pair'.

func (*AppDelCertKeyPair) GetCrcString

func (*AppDelCertKeyPair) GetCrcString() string

func (*AppDelCertKeyPair) GetMessageName

func (*AppDelCertKeyPair) GetMessageName() string

func (*AppDelCertKeyPair) GetMessageType

func (*AppDelCertKeyPair) GetMessageType() api.MessageType

func (*AppDelCertKeyPair) Marshal

func (m *AppDelCertKeyPair) Marshal(b []byte) ([]byte, error)

func (*AppDelCertKeyPair) Reset

func (m *AppDelCertKeyPair) Reset()

func (*AppDelCertKeyPair) Size

func (m *AppDelCertKeyPair) Size() (size int)

func (*AppDelCertKeyPair) Unmarshal

func (m *AppDelCertKeyPair) Unmarshal(b []byte) error

type AppDelCertKeyPairReply

type AppDelCertKeyPairReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

AppDelCertKeyPairReply defines message 'app_del_cert_key_pair_reply'.

func (*AppDelCertKeyPairReply) GetCrcString

func (*AppDelCertKeyPairReply) GetCrcString() string

func (*AppDelCertKeyPairReply) GetMessageName

func (*AppDelCertKeyPairReply) GetMessageName() string

func (*AppDelCertKeyPairReply) GetMessageType

func (*AppDelCertKeyPairReply) GetMessageType() api.MessageType

func (*AppDelCertKeyPairReply) Marshal

func (m *AppDelCertKeyPairReply) Marshal(b []byte) ([]byte, error)

func (*AppDelCertKeyPairReply) Reset

func (m *AppDelCertKeyPairReply) Reset()

func (*AppDelCertKeyPairReply) Size

func (m *AppDelCertKeyPairReply) Size() (size int)

func (*AppDelCertKeyPairReply) Unmarshal

func (m *AppDelCertKeyPairReply) Unmarshal(b []byte) error

type AppNamespaceAddDel

type AppNamespaceAddDel struct {
	Secret      uint64                         `binapi:"u64,name=secret" json:"secret,omitempty"`
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
	IP4FibID    uint32                         `binapi:"u32,name=ip4_fib_id" json:"ip4_fib_id,omitempty"`
	IP6FibID    uint32                         `binapi:"u32,name=ip6_fib_id" json:"ip6_fib_id,omitempty"`
	NamespaceID string                         `binapi:"string[],name=namespace_id" json:"namespace_id,omitempty"`
}

add/del application namespace

                      client to vpp direction only
- secret - secret shared between app and vpp
- sw_if_index - local interface that "supports" namespace. Set to
                     ~0 if no preference
- ip4_fib_id - id of ip4 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- ip6_fib_id - id of ip6 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- namespace_id - namespace id

AppNamespaceAddDel defines message 'app_namespace_add_del'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDel) GetCrcString

func (*AppNamespaceAddDel) GetCrcString() string

func (*AppNamespaceAddDel) GetMessageName

func (*AppNamespaceAddDel) GetMessageName() string

func (*AppNamespaceAddDel) GetMessageType

func (*AppNamespaceAddDel) GetMessageType() api.MessageType

func (*AppNamespaceAddDel) Marshal

func (m *AppNamespaceAddDel) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDel) Reset

func (m *AppNamespaceAddDel) Reset()

func (*AppNamespaceAddDel) Size

func (m *AppNamespaceAddDel) Size() (size int)

func (*AppNamespaceAddDel) Unmarshal

func (m *AppNamespaceAddDel) Unmarshal(b []byte) error

type AppNamespaceAddDelReply

type AppNamespaceAddDelReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	AppnsIndex uint32 `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
}

Reply for app namespace add/del

  • retval - return code
  • appns_index - app namespace index

AppNamespaceAddDelReply defines message 'app_namespace_add_del_reply'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDelReply) GetCrcString

func (*AppNamespaceAddDelReply) GetCrcString() string

func (*AppNamespaceAddDelReply) GetMessageName

func (*AppNamespaceAddDelReply) GetMessageName() string

func (*AppNamespaceAddDelReply) GetMessageType

func (*AppNamespaceAddDelReply) GetMessageType() api.MessageType

func (*AppNamespaceAddDelReply) Marshal

func (m *AppNamespaceAddDelReply) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelReply) Reset

func (m *AppNamespaceAddDelReply) Reset()

func (*AppNamespaceAddDelReply) Size

func (m *AppNamespaceAddDelReply) Size() (size int)

func (*AppNamespaceAddDelReply) Unmarshal

func (m *AppNamespaceAddDelReply) Unmarshal(b []byte) error

type AppNamespaceAddDelV2

type AppNamespaceAddDelV2 struct {
	Secret      uint64                         `binapi:"u64,name=secret" json:"secret,omitempty"`
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
	IP4FibID    uint32                         `binapi:"u32,name=ip4_fib_id" json:"ip4_fib_id,omitempty"`
	IP6FibID    uint32                         `binapi:"u32,name=ip6_fib_id" json:"ip6_fib_id,omitempty"`
	NamespaceID string                         `binapi:"string[64],name=namespace_id" json:"namespace_id,omitempty"`
	Netns       string                         `binapi:"string[64],name=netns" json:"netns,omitempty"`
}

add/del application namespace

                      client to vpp direction only
- secret - secret shared between app and vpp
- sw_if_index - local interface that "supports" namespace. Set to
                     ~0 if no preference
- ip4_fib_id - id of ip4 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- ip6_fib_id - id of ip6 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- namespace_id - namespace id
- netns - linux net namespace

AppNamespaceAddDelV2 defines message 'app_namespace_add_del_v2'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDelV2) GetCrcString

func (*AppNamespaceAddDelV2) GetCrcString() string

func (*AppNamespaceAddDelV2) GetMessageName

func (*AppNamespaceAddDelV2) GetMessageName() string

func (*AppNamespaceAddDelV2) GetMessageType

func (*AppNamespaceAddDelV2) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV2) Marshal

func (m *AppNamespaceAddDelV2) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelV2) Reset

func (m *AppNamespaceAddDelV2) Reset()

func (*AppNamespaceAddDelV2) Size

func (m *AppNamespaceAddDelV2) Size() (size int)

func (*AppNamespaceAddDelV2) Unmarshal

func (m *AppNamespaceAddDelV2) Unmarshal(b []byte) error

type AppNamespaceAddDelV2Reply

type AppNamespaceAddDelV2Reply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	AppnsIndex uint32 `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
}

Reply for app namespace add/del

  • retval - return code
  • appns_index - app namespace index

AppNamespaceAddDelV2Reply defines message 'app_namespace_add_del_v2_reply'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDelV2Reply) GetCrcString

func (*AppNamespaceAddDelV2Reply) GetCrcString() string

func (*AppNamespaceAddDelV2Reply) GetMessageName

func (*AppNamespaceAddDelV2Reply) GetMessageName() string

func (*AppNamespaceAddDelV2Reply) GetMessageType

func (*AppNamespaceAddDelV2Reply) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV2Reply) Marshal

func (m *AppNamespaceAddDelV2Reply) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelV2Reply) Reset

func (m *AppNamespaceAddDelV2Reply) Reset()

func (*AppNamespaceAddDelV2Reply) Size

func (m *AppNamespaceAddDelV2Reply) Size() (size int)

func (*AppNamespaceAddDelV2Reply) Unmarshal

func (m *AppNamespaceAddDelV2Reply) Unmarshal(b []byte) error

type AppNamespaceAddDelV3

type AppNamespaceAddDelV3 struct {
	Secret      uint64                         `binapi:"u64,name=secret" json:"secret,omitempty"`
	IsAdd       bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
	IP4FibID    uint32                         `binapi:"u32,name=ip4_fib_id" json:"ip4_fib_id,omitempty"`
	IP6FibID    uint32                         `binapi:"u32,name=ip6_fib_id" json:"ip6_fib_id,omitempty"`
	NamespaceID string                         `binapi:"string[64],name=namespace_id" json:"namespace_id,omitempty"`
	Netns       string                         `binapi:"string[64],name=netns" json:"netns,omitempty"`
	SockName    string                         `binapi:"string[],name=sock_name" json:"sock_name,omitempty"`
}

add/del application namespace

                      client to vpp direction only
- secret - secret shared between app and vpp
- sw_if_index - local interface that "supports" namespace. Set to
                     ~0 if no preference
- ip4_fib_id - id of ip4 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- ip6_fib_id - id of ip6 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- namespace_id - namespace id
- netns - linux net namespace
- sock_name - socket name (path, abstract socket name)

AppNamespaceAddDelV3 defines message 'app_namespace_add_del_v3'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDelV3) GetCrcString

func (*AppNamespaceAddDelV3) GetCrcString() string

func (*AppNamespaceAddDelV3) GetMessageName

func (*AppNamespaceAddDelV3) GetMessageName() string

func (*AppNamespaceAddDelV3) GetMessageType

func (*AppNamespaceAddDelV3) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV3) Marshal

func (m *AppNamespaceAddDelV3) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelV3) Reset

func (m *AppNamespaceAddDelV3) Reset()

func (*AppNamespaceAddDelV3) Size

func (m *AppNamespaceAddDelV3) Size() (size int)

func (*AppNamespaceAddDelV3) Unmarshal

func (m *AppNamespaceAddDelV3) Unmarshal(b []byte) error

type AppNamespaceAddDelV3Reply

type AppNamespaceAddDelV3Reply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	AppnsIndex uint32 `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
}

AppNamespaceAddDelV3Reply defines message 'app_namespace_add_del_v3_reply'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDelV3Reply) GetCrcString

func (*AppNamespaceAddDelV3Reply) GetCrcString() string

func (*AppNamespaceAddDelV3Reply) GetMessageName

func (*AppNamespaceAddDelV3Reply) GetMessageName() string

func (*AppNamespaceAddDelV3Reply) GetMessageType

func (*AppNamespaceAddDelV3Reply) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV3Reply) Marshal

func (m *AppNamespaceAddDelV3Reply) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelV3Reply) Reset

func (m *AppNamespaceAddDelV3Reply) Reset()

func (*AppNamespaceAddDelV3Reply) Size

func (m *AppNamespaceAddDelV3Reply) Size() (size int)

func (*AppNamespaceAddDelV3Reply) Unmarshal

func (m *AppNamespaceAddDelV3Reply) Unmarshal(b []byte) error

type AppNamespaceAddDelV4

type AppNamespaceAddDelV4 struct {
	Secret      uint64                         `binapi:"u64,name=secret" json:"secret,omitempty"`
	IsAdd       bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
	IP4FibID    uint32                         `binapi:"u32,name=ip4_fib_id" json:"ip4_fib_id,omitempty"`
	IP6FibID    uint32                         `binapi:"u32,name=ip6_fib_id" json:"ip6_fib_id,omitempty"`
	NamespaceID string                         `binapi:"string[64],name=namespace_id" json:"namespace_id,omitempty"`
	SockName    string                         `binapi:"string[],name=sock_name" json:"sock_name,omitempty"`
}

add/del application namespace

                      client to vpp direction only
- secret - secret shared between app and vpp
- sw_if_index - local interface that "supports" namespace. Set to
                     ~0 if no preference
- ip4_fib_id - id of ip4 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- ip6_fib_id - id of ip6 fib that "supports" the namespace. Ignored
                    if sw_if_index set.
- namespace_id - namespace id
- sock_name - socket name (path, abstract socket name)

AppNamespaceAddDelV4 defines message 'app_namespace_add_del_v4'. Deprecated: the message will be removed in the future versions

func (*AppNamespaceAddDelV4) GetCrcString

func (*AppNamespaceAddDelV4) GetCrcString() string

func (*AppNamespaceAddDelV4) GetMessageName

func (*AppNamespaceAddDelV4) GetMessageName() string

func (*AppNamespaceAddDelV4) GetMessageType

func (*AppNamespaceAddDelV4) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV4) Marshal

func (m *AppNamespaceAddDelV4) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelV4) Reset

func (m *AppNamespaceAddDelV4) Reset()

func (*AppNamespaceAddDelV4) Size

func (m *AppNamespaceAddDelV4) Size() (size int)

func (*AppNamespaceAddDelV4) Unmarshal

func (m *AppNamespaceAddDelV4) Unmarshal(b []byte) error

type AppNamespaceAddDelV4Reply

type AppNamespaceAddDelV4Reply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	AppnsIndex uint32 `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
}

Reply for app namespace add/del

  • retval - return code
  • appns_index - app namespace index

AppNamespaceAddDelV4Reply defines message 'app_namespace_add_del_v4_reply'.

func (*AppNamespaceAddDelV4Reply) GetCrcString

func (*AppNamespaceAddDelV4Reply) GetCrcString() string

func (*AppNamespaceAddDelV4Reply) GetMessageName

func (*AppNamespaceAddDelV4Reply) GetMessageName() string

func (*AppNamespaceAddDelV4Reply) GetMessageType

func (*AppNamespaceAddDelV4Reply) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV4Reply) Marshal

func (m *AppNamespaceAddDelV4Reply) Marshal(b []byte) ([]byte, error)

func (*AppNamespaceAddDelV4Reply) Reset

func (m *AppNamespaceAddDelV4Reply) Reset()

func (*AppNamespaceAddDelV4Reply) Size

func (m *AppNamespaceAddDelV4Reply) Size() (size int)

func (*AppNamespaceAddDelV4Reply) Unmarshal

func (m *AppNamespaceAddDelV4Reply) Unmarshal(b []byte) error

type AppWorkerAddDel

type AppWorkerAddDel struct {
	AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
	WrkIndex uint32 `binapi:"u32,name=wrk_index" json:"wrk_index,omitempty"`
	IsAdd    bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
}

add/del application worker

                      client to vpp direction only
- app_index - application index
- wrk_index - worker index, if a delete
- is_add - set if an add

AppWorkerAddDel defines message 'app_worker_add_del'.

func (*AppWorkerAddDel) GetCrcString

func (*AppWorkerAddDel) GetCrcString() string

func (*AppWorkerAddDel) GetMessageName

func (*AppWorkerAddDel) GetMessageName() string

func (*AppWorkerAddDel) GetMessageType

func (*AppWorkerAddDel) GetMessageType() api.MessageType

func (*AppWorkerAddDel) Marshal

func (m *AppWorkerAddDel) Marshal(b []byte) ([]byte, error)

func (*AppWorkerAddDel) Reset

func (m *AppWorkerAddDel) Reset()

func (*AppWorkerAddDel) Size

func (m *AppWorkerAddDel) Size() (size int)

func (*AppWorkerAddDel) Unmarshal

func (m *AppWorkerAddDel) Unmarshal(b []byte) error

type AppWorkerAddDelReply

type AppWorkerAddDelReply struct {
	Retval               int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	WrkIndex             uint32 `binapi:"u32,name=wrk_index" json:"wrk_index,omitempty"`
	AppEventQueueAddress uint64 `binapi:"u64,name=app_event_queue_address" json:"app_event_queue_address,omitempty"`
	NFds                 uint8  `binapi:"u8,name=n_fds" json:"n_fds,omitempty"`
	FdFlags              uint8  `binapi:"u8,name=fd_flags" json:"fd_flags,omitempty"`
	SegmentHandle        uint64 `binapi:"u64,name=segment_handle" json:"segment_handle,omitempty"`
	IsAdd                bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
	SegmentName          string `binapi:"string[],name=segment_name" json:"segment_name,omitempty"`
}

Reply for app worker add/del

  • retval - return code
  • wrk_index - worker index, if add
  • app_event_queue_address - vpp event queue address of new worker
  • n_fds - number of fds exchanged
  • fd_flags - set of flags that indicate which fds are to be expected over the socket (set only if socket transport available)
  • segment_handle - handle for segment
  • is_add - add if non zero, else delete
  • segment_name - name of segment client needs to attach to

AppWorkerAddDelReply defines message 'app_worker_add_del_reply'.

func (*AppWorkerAddDelReply) GetCrcString

func (*AppWorkerAddDelReply) GetCrcString() string

func (*AppWorkerAddDelReply) GetMessageName

func (*AppWorkerAddDelReply) GetMessageName() string

func (*AppWorkerAddDelReply) GetMessageType

func (*AppWorkerAddDelReply) GetMessageType() api.MessageType

func (*AppWorkerAddDelReply) Marshal

func (m *AppWorkerAddDelReply) Marshal(b []byte) ([]byte, error)

func (*AppWorkerAddDelReply) Reset

func (m *AppWorkerAddDelReply) Reset()

func (*AppWorkerAddDelReply) Size

func (m *AppWorkerAddDelReply) Size() (size int)

func (*AppWorkerAddDelReply) Unmarshal

func (m *AppWorkerAddDelReply) Unmarshal(b []byte) error

type ApplicationDetach

type ApplicationDetach struct{}

Application detach from session layer ApplicationDetach defines message 'application_detach'.

func (*ApplicationDetach) GetCrcString

func (*ApplicationDetach) GetCrcString() string

func (*ApplicationDetach) GetMessageName

func (*ApplicationDetach) GetMessageName() string

func (*ApplicationDetach) GetMessageType

func (*ApplicationDetach) GetMessageType() api.MessageType

func (*ApplicationDetach) Marshal

func (m *ApplicationDetach) Marshal(b []byte) ([]byte, error)

func (*ApplicationDetach) Reset

func (m *ApplicationDetach) Reset()

func (*ApplicationDetach) Size

func (m *ApplicationDetach) Size() (size int)

func (*ApplicationDetach) Unmarshal

func (m *ApplicationDetach) Unmarshal(b []byte) error

type ApplicationDetachReply

type ApplicationDetachReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

ApplicationDetachReply defines message 'application_detach_reply'.

func (*ApplicationDetachReply) GetCrcString

func (*ApplicationDetachReply) GetCrcString() string

func (*ApplicationDetachReply) GetMessageName

func (*ApplicationDetachReply) GetMessageName() string

func (*ApplicationDetachReply) GetMessageType

func (*ApplicationDetachReply) GetMessageType() api.MessageType

func (*ApplicationDetachReply) Marshal

func (m *ApplicationDetachReply) Marshal(b []byte) ([]byte, error)

func (*ApplicationDetachReply) Reset

func (m *ApplicationDetachReply) Reset()

func (*ApplicationDetachReply) Size

func (m *ApplicationDetachReply) Size() (size int)

func (*ApplicationDetachReply) Unmarshal

func (m *ApplicationDetachReply) Unmarshal(b []byte) error

type RPCService

type RPCService interface {
	AppAddCertKeyPair(ctx context.Context, in *AppAddCertKeyPair) (*AppAddCertKeyPairReply, error)
	AppAttach(ctx context.Context, in *AppAttach) (*AppAttachReply, error)
	AppDelCertKeyPair(ctx context.Context, in *AppDelCertKeyPair) (*AppDelCertKeyPairReply, error)
	AppNamespaceAddDel(ctx context.Context, in *AppNamespaceAddDel) (*AppNamespaceAddDelReply, error)
	AppNamespaceAddDelV2(ctx context.Context, in *AppNamespaceAddDelV2) (*AppNamespaceAddDelV2Reply, error)
	AppNamespaceAddDelV3(ctx context.Context, in *AppNamespaceAddDelV3) (*AppNamespaceAddDelV3Reply, error)
	AppNamespaceAddDelV4(ctx context.Context, in *AppNamespaceAddDelV4) (*AppNamespaceAddDelV4Reply, error)
	AppWorkerAddDel(ctx context.Context, in *AppWorkerAddDel) (*AppWorkerAddDelReply, error)
	ApplicationDetach(ctx context.Context, in *ApplicationDetach) (*ApplicationDetachReply, error)
	SessionEnableDisable(ctx context.Context, in *SessionEnableDisable) (*SessionEnableDisableReply, error)
	SessionEnableDisableV2(ctx context.Context, in *SessionEnableDisableV2) (*SessionEnableDisableV2Reply, error)
	SessionRuleAddDel(ctx context.Context, in *SessionRuleAddDel) (*SessionRuleAddDelReply, error)
	SessionRulesDump(ctx context.Context, in *SessionRulesDump) (RPCService_SessionRulesDumpClient, error)
	SessionSapiEnableDisable(ctx context.Context, in *SessionSapiEnableDisable) (*SessionSapiEnableDisableReply, error)
	SessionSdlAddDel(ctx context.Context, in *SessionSdlAddDel) (*SessionSdlAddDelReply, error)
	SessionSdlDump(ctx context.Context, in *SessionSdlDump) (RPCService_SessionSdlDumpClient, error)
}

RPCService defines RPC service session.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SessionRulesDumpClient

type RPCService_SessionRulesDumpClient interface {
	Recv() (*SessionRulesDetails, error)
	api.Stream
}

type RPCService_SessionSdlDumpClient added in v3.29.0

type RPCService_SessionSdlDumpClient interface {
	Recv() (*SessionSdlDetails, error)
	api.Stream
}

type RtBackendEngine added in v3.29.0

type RtBackendEngine uint8

RtBackendEngine defines enum 'rt_backend_engine'.

const (
	RT_BACKEND_ENGINE_API_DISABLE    RtBackendEngine = 0
	RT_BACKEND_ENGINE_API_RULE_TABLE RtBackendEngine = 1
	RT_BACKEND_ENGINE_API_NONE       RtBackendEngine = 2
	RT_BACKEND_ENGINE_API_SDL        RtBackendEngine = 3
)

func (RtBackendEngine) String added in v3.29.0

func (x RtBackendEngine) String() string

type SdlRule added in v3.29.0

type SdlRule struct {
	Lcl         ip_types.Prefix `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
	ActionIndex uint32          `binapi:"u32,name=action_index" json:"action_index,omitempty"`
	Tag         string          `binapi:"string[64],name=tag" json:"tag,omitempty"`
}

SdlRule defines type 'sdl_rule'.

type SessionEnableDisable

type SessionEnableDisable struct {
	IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
}

enable/disable session layer

                      client to vpp direction only
- is_enable - disable session layer if 0, enable otherwise

SessionEnableDisable defines message 'session_enable_disable'. Deprecated: the message will be removed in the future versions

func (*SessionEnableDisable) GetCrcString

func (*SessionEnableDisable) GetCrcString() string

func (*SessionEnableDisable) GetMessageName

func (*SessionEnableDisable) GetMessageName() string

func (*SessionEnableDisable) GetMessageType

func (*SessionEnableDisable) GetMessageType() api.MessageType

func (*SessionEnableDisable) Marshal

func (m *SessionEnableDisable) Marshal(b []byte) ([]byte, error)

func (*SessionEnableDisable) Reset

func (m *SessionEnableDisable) Reset()

func (*SessionEnableDisable) Size

func (m *SessionEnableDisable) Size() (size int)

func (*SessionEnableDisable) Unmarshal

func (m *SessionEnableDisable) Unmarshal(b []byte) error

type SessionEnableDisableReply

type SessionEnableDisableReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SessionEnableDisableReply defines message 'session_enable_disable_reply'. Deprecated: the message will be removed in the future versions

func (*SessionEnableDisableReply) GetCrcString

func (*SessionEnableDisableReply) GetCrcString() string

func (*SessionEnableDisableReply) GetMessageName

func (*SessionEnableDisableReply) GetMessageName() string

func (*SessionEnableDisableReply) GetMessageType

func (*SessionEnableDisableReply) GetMessageType() api.MessageType

func (*SessionEnableDisableReply) Marshal

func (m *SessionEnableDisableReply) Marshal(b []byte) ([]byte, error)

func (*SessionEnableDisableReply) Reset

func (m *SessionEnableDisableReply) Reset()

func (*SessionEnableDisableReply) Size

func (m *SessionEnableDisableReply) Size() (size int)

func (*SessionEnableDisableReply) Unmarshal

func (m *SessionEnableDisableReply) Unmarshal(b []byte) error

type SessionEnableDisableV2 added in v3.29.0

type SessionEnableDisableV2 struct {
	RtEngineType RtBackendEngine `binapi:"rt_backend_engine,name=rt_engine_type" json:"rt_engine_type,omitempty"`
}

SessionEnableDisableV2 defines message 'session_enable_disable_v2'.

func (*SessionEnableDisableV2) GetCrcString added in v3.29.0

func (*SessionEnableDisableV2) GetCrcString() string

func (*SessionEnableDisableV2) GetMessageName added in v3.29.0

func (*SessionEnableDisableV2) GetMessageName() string

func (*SessionEnableDisableV2) GetMessageType added in v3.29.0

func (*SessionEnableDisableV2) GetMessageType() api.MessageType

func (*SessionEnableDisableV2) Marshal added in v3.29.0

func (m *SessionEnableDisableV2) Marshal(b []byte) ([]byte, error)

func (*SessionEnableDisableV2) Reset added in v3.29.0

func (m *SessionEnableDisableV2) Reset()

func (*SessionEnableDisableV2) Size added in v3.29.0

func (m *SessionEnableDisableV2) Size() (size int)

func (*SessionEnableDisableV2) Unmarshal added in v3.29.0

func (m *SessionEnableDisableV2) Unmarshal(b []byte) error

type SessionEnableDisableV2Reply added in v3.29.0

type SessionEnableDisableV2Reply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SessionEnableDisableV2Reply defines message 'session_enable_disable_v2_reply'.

func (*SessionEnableDisableV2Reply) GetCrcString added in v3.29.0

func (*SessionEnableDisableV2Reply) GetCrcString() string

func (*SessionEnableDisableV2Reply) GetMessageName added in v3.29.0

func (*SessionEnableDisableV2Reply) GetMessageName() string

func (*SessionEnableDisableV2Reply) GetMessageType added in v3.29.0

func (*SessionEnableDisableV2Reply) GetMessageType() api.MessageType

func (*SessionEnableDisableV2Reply) Marshal added in v3.29.0

func (m *SessionEnableDisableV2Reply) Marshal(b []byte) ([]byte, error)

func (*SessionEnableDisableV2Reply) Reset added in v3.29.0

func (m *SessionEnableDisableV2Reply) Reset()

func (*SessionEnableDisableV2Reply) Size added in v3.29.0

func (m *SessionEnableDisableV2Reply) Size() (size int)

func (*SessionEnableDisableV2Reply) Unmarshal added in v3.29.0

func (m *SessionEnableDisableV2Reply) Unmarshal(b []byte) error

type SessionRuleAddDel

type SessionRuleAddDel struct {
	TransportProto TransportProto   `binapi:"transport_proto,name=transport_proto" json:"transport_proto,omitempty"`
	Lcl            ip_types.Prefix  `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
	Rmt            ip_types.Prefix  `binapi:"prefix,name=rmt" json:"rmt,omitempty"`
	LclPort        uint16           `binapi:"u16,name=lcl_port" json:"lcl_port,omitempty"`
	RmtPort        uint16           `binapi:"u16,name=rmt_port" json:"rmt_port,omitempty"`
	ActionIndex    uint32           `binapi:"u32,name=action_index" json:"action_index,omitempty"`
	IsAdd          bool             `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
	AppnsIndex     uint32           `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
	Scope          SessionRuleScope `binapi:"session_rule_scope,name=scope" json:"scope,omitempty"`
	Tag            string           `binapi:"string[64],name=tag" json:"tag,omitempty"`
}

add/del session rule

                      client to vpp direction only
- transport_proto - transport protocol
- is_ip4 - flag to indicate if ip addresses are ip4 or 6
- lcl_ip - local ip
- lcl_plen - local prefix length
- rmt_ip - remote ip
- rmt_ple - remote prefix length
- lcl_port - local port
- rmt_port - remote port
- action_index - the only action defined now is forward to
                      application with index action_index
- is_add - flag to indicate if add or del
- appns_index - application namespace where rule is to be applied to
- scope - enum that indicates scope of the rule: global or local.
               If 0, default is global, 1 is global 2 is local, 3 is both
- tag - tag

SessionRuleAddDel defines message 'session_rule_add_del'.

func (*SessionRuleAddDel) GetCrcString

func (*SessionRuleAddDel) GetCrcString() string

func (*SessionRuleAddDel) GetMessageName

func (*SessionRuleAddDel) GetMessageName() string

func (*SessionRuleAddDel) GetMessageType

func (*SessionRuleAddDel) GetMessageType() api.MessageType

func (*SessionRuleAddDel) Marshal

func (m *SessionRuleAddDel) Marshal(b []byte) ([]byte, error)

func (*SessionRuleAddDel) Reset

func (m *SessionRuleAddDel) Reset()

func (*SessionRuleAddDel) Size

func (m *SessionRuleAddDel) Size() (size int)

func (*SessionRuleAddDel) Unmarshal

func (m *SessionRuleAddDel) Unmarshal(b []byte) error

type SessionRuleAddDelReply

type SessionRuleAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SessionRuleAddDelReply defines message 'session_rule_add_del_reply'.

func (*SessionRuleAddDelReply) GetCrcString

func (*SessionRuleAddDelReply) GetCrcString() string

func (*SessionRuleAddDelReply) GetMessageName

func (*SessionRuleAddDelReply) GetMessageName() string

func (*SessionRuleAddDelReply) GetMessageType

func (*SessionRuleAddDelReply) GetMessageType() api.MessageType

func (*SessionRuleAddDelReply) Marshal

func (m *SessionRuleAddDelReply) Marshal(b []byte) ([]byte, error)

func (*SessionRuleAddDelReply) Reset

func (m *SessionRuleAddDelReply) Reset()

func (*SessionRuleAddDelReply) Size

func (m *SessionRuleAddDelReply) Size() (size int)

func (*SessionRuleAddDelReply) Unmarshal

func (m *SessionRuleAddDelReply) Unmarshal(b []byte) error

type SessionRuleScope

type SessionRuleScope uint32

SessionRuleScope defines enum 'session_rule_scope'.

const (
	SESSION_RULE_SCOPE_API_GLOBAL SessionRuleScope = 0
	SESSION_RULE_SCOPE_API_LOCAL  SessionRuleScope = 1
	SESSION_RULE_SCOPE_API_BOTH   SessionRuleScope = 2
)

func (SessionRuleScope) String

func (x SessionRuleScope) String() string

type SessionRulesDetails

type SessionRulesDetails struct {
	TransportProto TransportProto   `binapi:"transport_proto,name=transport_proto" json:"transport_proto,omitempty"`
	Lcl            ip_types.Prefix  `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
	Rmt            ip_types.Prefix  `binapi:"prefix,name=rmt" json:"rmt,omitempty"`
	LclPort        uint16           `binapi:"u16,name=lcl_port" json:"lcl_port,omitempty"`
	RmtPort        uint16           `binapi:"u16,name=rmt_port" json:"rmt_port,omitempty"`
	ActionIndex    uint32           `binapi:"u32,name=action_index" json:"action_index,omitempty"`
	AppnsIndex     uint32           `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
	Scope          SessionRuleScope `binapi:"session_rule_scope,name=scope" json:"scope,omitempty"`
	Tag            string           `binapi:"string[64],name=tag" json:"tag,omitempty"`
}

Session rules details

  • transport_proto - transport protocol
  • is_ip4 - flag to indicate if ip addresses are ip4 or 6
  • lcl_ip - local ip
  • lcl_plen - local prefix length
  • rmt_ip - remote ip
  • rmt_ple - remote prefix length
  • lcl_port - local port
  • rmt_port - remote port
  • action_index - the only action defined now is forward to application with index action_index
  • appns_index - application namespace where rule is to be applied to
  • scope - enum that indicates scope of the rule: global or local. If 0, default is global, 1 is global 2 is local, 3 is both
  • tag - tag

SessionRulesDetails defines message 'session_rules_details'.

func (*SessionRulesDetails) GetCrcString

func (*SessionRulesDetails) GetCrcString() string

func (*SessionRulesDetails) GetMessageName

func (*SessionRulesDetails) GetMessageName() string

func (*SessionRulesDetails) GetMessageType

func (*SessionRulesDetails) GetMessageType() api.MessageType

func (*SessionRulesDetails) Marshal

func (m *SessionRulesDetails) Marshal(b []byte) ([]byte, error)

func (*SessionRulesDetails) Reset

func (m *SessionRulesDetails) Reset()

func (*SessionRulesDetails) Size

func (m *SessionRulesDetails) Size() (size int)

func (*SessionRulesDetails) Unmarshal

func (m *SessionRulesDetails) Unmarshal(b []byte) error

type SessionRulesDump

type SessionRulesDump struct{}

Dump session rules SessionRulesDump defines message 'session_rules_dump'.

func (*SessionRulesDump) GetCrcString

func (*SessionRulesDump) GetCrcString() string

func (*SessionRulesDump) GetMessageName

func (*SessionRulesDump) GetMessageName() string

func (*SessionRulesDump) GetMessageType

func (*SessionRulesDump) GetMessageType() api.MessageType

func (*SessionRulesDump) Marshal

func (m *SessionRulesDump) Marshal(b []byte) ([]byte, error)

func (*SessionRulesDump) Reset

func (m *SessionRulesDump) Reset()

func (*SessionRulesDump) Size

func (m *SessionRulesDump) Size() (size int)

func (*SessionRulesDump) Unmarshal

func (m *SessionRulesDump) Unmarshal(b []byte) error

type SessionSapiEnableDisable

type SessionSapiEnableDisable struct {
	IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
}

enable/disable session layer socket api

                      client to vpp direction only
- is_enable - disable session layer if 0, enable otherwise

SessionSapiEnableDisable defines message 'session_sapi_enable_disable'.

func (*SessionSapiEnableDisable) GetCrcString

func (*SessionSapiEnableDisable) GetCrcString() string

func (*SessionSapiEnableDisable) GetMessageName

func (*SessionSapiEnableDisable) GetMessageName() string

func (*SessionSapiEnableDisable) GetMessageType

func (*SessionSapiEnableDisable) GetMessageType() api.MessageType

func (*SessionSapiEnableDisable) Marshal

func (m *SessionSapiEnableDisable) Marshal(b []byte) ([]byte, error)

func (*SessionSapiEnableDisable) Reset

func (m *SessionSapiEnableDisable) Reset()

func (*SessionSapiEnableDisable) Size

func (m *SessionSapiEnableDisable) Size() (size int)

func (*SessionSapiEnableDisable) Unmarshal

func (m *SessionSapiEnableDisable) Unmarshal(b []byte) error

type SessionSapiEnableDisableReply

type SessionSapiEnableDisableReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SessionSapiEnableDisableReply defines message 'session_sapi_enable_disable_reply'.

func (*SessionSapiEnableDisableReply) GetCrcString

func (*SessionSapiEnableDisableReply) GetCrcString() string

func (*SessionSapiEnableDisableReply) GetMessageName

func (*SessionSapiEnableDisableReply) GetMessageName() string

func (*SessionSapiEnableDisableReply) GetMessageType

func (*SessionSapiEnableDisableReply) GetMessageType() api.MessageType

func (*SessionSapiEnableDisableReply) Marshal

func (m *SessionSapiEnableDisableReply) Marshal(b []byte) ([]byte, error)

func (*SessionSapiEnableDisableReply) Reset

func (m *SessionSapiEnableDisableReply) Reset()

func (*SessionSapiEnableDisableReply) Size

func (m *SessionSapiEnableDisableReply) Size() (size int)

func (*SessionSapiEnableDisableReply) Unmarshal

func (m *SessionSapiEnableDisableReply) Unmarshal(b []byte) error

type SessionSdlAddDel added in v3.29.0

type SessionSdlAddDel struct {
	AppnsIndex uint32    `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
	IsAdd      bool      `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Count      uint32    `binapi:"u32,name=count" json:"-"`
	R          []SdlRule `binapi:"sdl_rule[count],name=r" json:"r,omitempty"`
}

SessionSdlAddDel defines message 'session_sdl_add_del'.

func (*SessionSdlAddDel) GetCrcString added in v3.29.0

func (*SessionSdlAddDel) GetCrcString() string

func (*SessionSdlAddDel) GetMessageName added in v3.29.0

func (*SessionSdlAddDel) GetMessageName() string

func (*SessionSdlAddDel) GetMessageType added in v3.29.0

func (*SessionSdlAddDel) GetMessageType() api.MessageType

func (*SessionSdlAddDel) Marshal added in v3.29.0

func (m *SessionSdlAddDel) Marshal(b []byte) ([]byte, error)

func (*SessionSdlAddDel) Reset added in v3.29.0

func (m *SessionSdlAddDel) Reset()

func (*SessionSdlAddDel) Size added in v3.29.0

func (m *SessionSdlAddDel) Size() (size int)

func (*SessionSdlAddDel) Unmarshal added in v3.29.0

func (m *SessionSdlAddDel) Unmarshal(b []byte) error

type SessionSdlAddDelReply added in v3.29.0

type SessionSdlAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SessionSdlAddDelReply defines message 'session_sdl_add_del_reply'.

func (*SessionSdlAddDelReply) GetCrcString added in v3.29.0

func (*SessionSdlAddDelReply) GetCrcString() string

func (*SessionSdlAddDelReply) GetMessageName added in v3.29.0

func (*SessionSdlAddDelReply) GetMessageName() string

func (*SessionSdlAddDelReply) GetMessageType added in v3.29.0

func (*SessionSdlAddDelReply) GetMessageType() api.MessageType

func (*SessionSdlAddDelReply) Marshal added in v3.29.0

func (m *SessionSdlAddDelReply) Marshal(b []byte) ([]byte, error)

func (*SessionSdlAddDelReply) Reset added in v3.29.0

func (m *SessionSdlAddDelReply) Reset()

func (*SessionSdlAddDelReply) Size added in v3.29.0

func (m *SessionSdlAddDelReply) Size() (size int)

func (*SessionSdlAddDelReply) Unmarshal added in v3.29.0

func (m *SessionSdlAddDelReply) Unmarshal(b []byte) error

type SessionSdlDetails added in v3.29.0

type SessionSdlDetails struct {
	Lcl         ip_types.Prefix `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
	ActionIndex uint32          `binapi:"u32,name=action_index" json:"action_index,omitempty"`
	AppnsIndex  uint32          `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
	Tag         string          `binapi:"string[64],name=tag" json:"tag,omitempty"`
}

Session sdl details

  • lcl - local prefix
  • action_index - the only action defined now is forward to application with index action_index
  • appns_index - application namespace where rule is to be applied to
  • tag - tag

SessionSdlDetails defines message 'session_sdl_details'.

func (*SessionSdlDetails) GetCrcString added in v3.29.0

func (*SessionSdlDetails) GetCrcString() string

func (*SessionSdlDetails) GetMessageName added in v3.29.0

func (*SessionSdlDetails) GetMessageName() string

func (*SessionSdlDetails) GetMessageType added in v3.29.0

func (*SessionSdlDetails) GetMessageType() api.MessageType

func (*SessionSdlDetails) Marshal added in v3.29.0

func (m *SessionSdlDetails) Marshal(b []byte) ([]byte, error)

func (*SessionSdlDetails) Reset added in v3.29.0

func (m *SessionSdlDetails) Reset()

func (*SessionSdlDetails) Size added in v3.29.0

func (m *SessionSdlDetails) Size() (size int)

func (*SessionSdlDetails) Unmarshal added in v3.29.0

func (m *SessionSdlDetails) Unmarshal(b []byte) error

type SessionSdlDump added in v3.29.0

type SessionSdlDump struct{}

Dump session sdl SessionSdlDump defines message 'session_sdl_dump'.

func (*SessionSdlDump) GetCrcString added in v3.29.0

func (*SessionSdlDump) GetCrcString() string

func (*SessionSdlDump) GetMessageName added in v3.29.0

func (*SessionSdlDump) GetMessageName() string

func (*SessionSdlDump) GetMessageType added in v3.29.0

func (*SessionSdlDump) GetMessageType() api.MessageType

func (*SessionSdlDump) Marshal added in v3.29.0

func (m *SessionSdlDump) Marshal(b []byte) ([]byte, error)

func (*SessionSdlDump) Reset added in v3.29.0

func (m *SessionSdlDump) Reset()

func (*SessionSdlDump) Size added in v3.29.0

func (m *SessionSdlDump) Size() (size int)

func (*SessionSdlDump) Unmarshal added in v3.29.0

func (m *SessionSdlDump) Unmarshal(b []byte) error

type TransportProto

type TransportProto uint8

TransportProto defines enum 'transport_proto'.

const (
	TRANSPORT_PROTO_API_TCP  TransportProto = 0
	TRANSPORT_PROTO_API_UDP  TransportProto = 1
	TRANSPORT_PROTO_API_NONE TransportProto = 2
	TRANSPORT_PROTO_API_TLS  TransportProto = 3
	TRANSPORT_PROTO_API_QUIC TransportProto = 4
)

func (TransportProto) String

func (x TransportProto) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL