session

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Contents:

 2 enums
28 messages

Index

Constants

View Source
const (
	APIFile    = "session"
	APIVersion = "4.0.0"
	VersionCrc = 0x44a59e26
)

Variables

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{
		1: "TRANSPORT_PROTO_API_TCP",
		2: "TRANSPORT_PROTO_API_UDP",
		3: "TRANSPORT_PROTO_API_NONE",
		4: "TRANSPORT_PROTO_API_TLS",
		5: "TRANSPORT_PROTO_API_QUIC",
	}
	TransportProto_value = map[string]uint8{
		"TRANSPORT_PROTO_API_TCP":  1,
		"TRANSPORT_PROTO_API_UDP":  2,
		"TRANSPORT_PROTO_API_NONE": 3,
		"TRANSPORT_PROTO_API_TLS":  4,
		"TRANSPORT_PROTO_API_QUIC": 5,
	}
)

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"`
}

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"`
}

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"`
}

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"`
}

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"`
}

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"`
}

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"`
}

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 added in v0.5.0

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"`
}

AppNamespaceAddDelV2 defines message 'app_namespace_add_del_v2'.

func (*AppNamespaceAddDelV2) GetCrcString added in v0.5.0

func (*AppNamespaceAddDelV2) GetCrcString() string

func (*AppNamespaceAddDelV2) GetMessageName added in v0.5.0

func (*AppNamespaceAddDelV2) GetMessageName() string

func (*AppNamespaceAddDelV2) GetMessageType added in v0.5.0

func (*AppNamespaceAddDelV2) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV2) Marshal added in v0.5.0

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

func (*AppNamespaceAddDelV2) Reset added in v0.5.0

func (m *AppNamespaceAddDelV2) Reset()

func (*AppNamespaceAddDelV2) Size added in v0.5.0

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

func (*AppNamespaceAddDelV2) Unmarshal added in v0.5.0

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

type AppNamespaceAddDelV2Reply added in v0.5.0

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

AppNamespaceAddDelV2Reply defines message 'app_namespace_add_del_v2_reply'.

func (*AppNamespaceAddDelV2Reply) GetCrcString added in v0.5.0

func (*AppNamespaceAddDelV2Reply) GetCrcString() string

func (*AppNamespaceAddDelV2Reply) GetMessageName added in v0.5.0

func (*AppNamespaceAddDelV2Reply) GetMessageName() string

func (*AppNamespaceAddDelV2Reply) GetMessageType added in v0.5.0

func (*AppNamespaceAddDelV2Reply) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV2Reply) Marshal added in v0.5.0

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

func (*AppNamespaceAddDelV2Reply) Reset added in v0.5.0

func (m *AppNamespaceAddDelV2Reply) Reset()

func (*AppNamespaceAddDelV2Reply) Size added in v0.5.0

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

func (*AppNamespaceAddDelV2Reply) Unmarshal added in v0.5.0

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

type AppNamespaceAddDelV3 added in v0.5.0

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"`
}

AppNamespaceAddDelV3 defines message 'app_namespace_add_del_v3'.

func (*AppNamespaceAddDelV3) GetCrcString added in v0.5.0

func (*AppNamespaceAddDelV3) GetCrcString() string

func (*AppNamespaceAddDelV3) GetMessageName added in v0.5.0

func (*AppNamespaceAddDelV3) GetMessageName() string

func (*AppNamespaceAddDelV3) GetMessageType added in v0.5.0

func (*AppNamespaceAddDelV3) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV3) Marshal added in v0.5.0

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

func (*AppNamespaceAddDelV3) Reset added in v0.5.0

func (m *AppNamespaceAddDelV3) Reset()

func (*AppNamespaceAddDelV3) Size added in v0.5.0

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

func (*AppNamespaceAddDelV3) Unmarshal added in v0.5.0

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

type AppNamespaceAddDelV3Reply added in v0.5.0

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'.

func (*AppNamespaceAddDelV3Reply) GetCrcString added in v0.5.0

func (*AppNamespaceAddDelV3Reply) GetCrcString() string

func (*AppNamespaceAddDelV3Reply) GetMessageName added in v0.5.0

func (*AppNamespaceAddDelV3Reply) GetMessageName() string

func (*AppNamespaceAddDelV3Reply) GetMessageType added in v0.5.0

func (*AppNamespaceAddDelV3Reply) GetMessageType() api.MessageType

func (*AppNamespaceAddDelV3Reply) Marshal added in v0.5.0

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

func (*AppNamespaceAddDelV3Reply) Reset added in v0.5.0

func (m *AppNamespaceAddDelV3Reply) Reset()

func (*AppNamespaceAddDelV3Reply) Size added in v0.5.0

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

func (*AppNamespaceAddDelV3Reply) Unmarshal added in v0.5.0

func (m *AppNamespaceAddDelV3Reply) 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"`
}

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"`
}

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{}

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 ApplicationTLSCertAdd

type ApplicationTLSCertAdd struct {
	AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
	CertLen  uint16 `binapi:"u16,name=cert_len" json:"-"`
	Cert     []byte `binapi:"u8[cert_len],name=cert" json:"cert,omitempty"`
}

ApplicationTLSCertAdd defines message 'application_tls_cert_add'. Deprecated: to be removed post 21.06

func (*ApplicationTLSCertAdd) GetCrcString

func (*ApplicationTLSCertAdd) GetCrcString() string

func (*ApplicationTLSCertAdd) GetMessageName

func (*ApplicationTLSCertAdd) GetMessageName() string

func (*ApplicationTLSCertAdd) GetMessageType

func (*ApplicationTLSCertAdd) GetMessageType() api.MessageType

func (*ApplicationTLSCertAdd) Marshal

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

func (*ApplicationTLSCertAdd) Reset

func (m *ApplicationTLSCertAdd) Reset()

func (*ApplicationTLSCertAdd) Size

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

func (*ApplicationTLSCertAdd) Unmarshal

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

type ApplicationTLSCertAddReply

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

ApplicationTLSCertAddReply defines message 'application_tls_cert_add_reply'. Deprecated: to be removed post 21.06

func (*ApplicationTLSCertAddReply) GetCrcString

func (*ApplicationTLSCertAddReply) GetCrcString() string

func (*ApplicationTLSCertAddReply) GetMessageName

func (*ApplicationTLSCertAddReply) GetMessageName() string

func (*ApplicationTLSCertAddReply) GetMessageType

func (*ApplicationTLSCertAddReply) GetMessageType() api.MessageType

func (*ApplicationTLSCertAddReply) Marshal

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

func (*ApplicationTLSCertAddReply) Reset

func (m *ApplicationTLSCertAddReply) Reset()

func (*ApplicationTLSCertAddReply) Size

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

func (*ApplicationTLSCertAddReply) Unmarshal

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

type ApplicationTLSKeyAdd

type ApplicationTLSKeyAdd struct {
	AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
	KeyLen   uint16 `binapi:"u16,name=key_len" json:"-"`
	Key      []byte `binapi:"u8[key_len],name=key" json:"key,omitempty"`
}

ApplicationTLSKeyAdd defines message 'application_tls_key_add'. Deprecated: to be removed post 21.06

func (*ApplicationTLSKeyAdd) GetCrcString

func (*ApplicationTLSKeyAdd) GetCrcString() string

func (*ApplicationTLSKeyAdd) GetMessageName

func (*ApplicationTLSKeyAdd) GetMessageName() string

func (*ApplicationTLSKeyAdd) GetMessageType

func (*ApplicationTLSKeyAdd) GetMessageType() api.MessageType

func (*ApplicationTLSKeyAdd) Marshal

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

func (*ApplicationTLSKeyAdd) Reset

func (m *ApplicationTLSKeyAdd) Reset()

func (*ApplicationTLSKeyAdd) Size

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

func (*ApplicationTLSKeyAdd) Unmarshal

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

type ApplicationTLSKeyAddReply

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

ApplicationTLSKeyAddReply defines message 'application_tls_key_add_reply'. Deprecated: to be removed post 21.06

func (*ApplicationTLSKeyAddReply) GetCrcString

func (*ApplicationTLSKeyAddReply) GetCrcString() string

func (*ApplicationTLSKeyAddReply) GetMessageName

func (*ApplicationTLSKeyAddReply) GetMessageName() string

func (*ApplicationTLSKeyAddReply) GetMessageType

func (*ApplicationTLSKeyAddReply) GetMessageType() api.MessageType

func (*ApplicationTLSKeyAddReply) Marshal

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

func (*ApplicationTLSKeyAddReply) Reset

func (m *ApplicationTLSKeyAddReply) Reset()

func (*ApplicationTLSKeyAddReply) Size

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

func (*ApplicationTLSKeyAddReply) Unmarshal

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

type RPCService

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 SessionEnableDisable

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

SessionEnableDisable defines message 'session_enable_disable'.

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'.

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 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"`
}

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"`
}

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{}

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 added in v0.5.0

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

SessionSapiEnableDisable defines message 'session_sapi_enable_disable'.

func (*SessionSapiEnableDisable) GetCrcString added in v0.5.0

func (*SessionSapiEnableDisable) GetCrcString() string

func (*SessionSapiEnableDisable) GetMessageName added in v0.5.0

func (*SessionSapiEnableDisable) GetMessageName() string

func (*SessionSapiEnableDisable) GetMessageType added in v0.5.0

func (*SessionSapiEnableDisable) GetMessageType() api.MessageType

func (*SessionSapiEnableDisable) Marshal added in v0.5.0

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

func (*SessionSapiEnableDisable) Reset added in v0.5.0

func (m *SessionSapiEnableDisable) Reset()

func (*SessionSapiEnableDisable) Size added in v0.5.0

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

func (*SessionSapiEnableDisable) Unmarshal added in v0.5.0

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

type SessionSapiEnableDisableReply added in v0.5.0

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

SessionSapiEnableDisableReply defines message 'session_sapi_enable_disable_reply'.

func (*SessionSapiEnableDisableReply) GetCrcString added in v0.5.0

func (*SessionSapiEnableDisableReply) GetCrcString() string

func (*SessionSapiEnableDisableReply) GetMessageName added in v0.5.0

func (*SessionSapiEnableDisableReply) GetMessageName() string

func (*SessionSapiEnableDisableReply) GetMessageType added in v0.5.0

func (*SessionSapiEnableDisableReply) GetMessageType() api.MessageType

func (*SessionSapiEnableDisableReply) Marshal added in v0.5.0

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

func (*SessionSapiEnableDisableReply) Reset added in v0.5.0

func (m *SessionSapiEnableDisableReply) Reset()

func (*SessionSapiEnableDisableReply) Size added in v0.5.0

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

func (*SessionSapiEnableDisableReply) Unmarshal added in v0.5.0

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

type TransportProto

type TransportProto uint8

TransportProto defines enum 'transport_proto'.

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

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