lcp

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: 7 Imported by: 0

Documentation

Overview

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

Contents:

 1 enum
15 messages

Index

Constants

View Source
const (
	APIFile    = "lcp"
	APIVersion = "1.0.0"
	VersionCrc = 0xd6fdb642
)

Variables

View Source
var (
	LcpItfHostType_name = map[uint8]string{
		0: "LCP_API_ITF_HOST_TAP",
		1: "LCP_API_ITF_HOST_TUN",
	}
	LcpItfHostType_value = map[string]uint8{
		"LCP_API_ITF_HOST_TAP": 0,
		"LCP_API_ITF_HOST_TUN": 1,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type LcpDefaultNsGet

type LcpDefaultNsGet struct{}

LcpDefaultNsGet defines message 'lcp_default_ns_get'.

func (*LcpDefaultNsGet) GetCrcString

func (*LcpDefaultNsGet) GetCrcString() string

func (*LcpDefaultNsGet) GetMessageName

func (*LcpDefaultNsGet) GetMessageName() string

func (*LcpDefaultNsGet) GetMessageType

func (*LcpDefaultNsGet) GetMessageType() api.MessageType

func (*LcpDefaultNsGet) Marshal

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

func (*LcpDefaultNsGet) Reset

func (m *LcpDefaultNsGet) Reset()

func (*LcpDefaultNsGet) Size

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

func (*LcpDefaultNsGet) Unmarshal

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

type LcpDefaultNsGetReply

type LcpDefaultNsGetReply struct {
	Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}

LcpDefaultNsGetReply defines message 'lcp_default_ns_get_reply'.

func (*LcpDefaultNsGetReply) GetCrcString

func (*LcpDefaultNsGetReply) GetCrcString() string

func (*LcpDefaultNsGetReply) GetMessageName

func (*LcpDefaultNsGetReply) GetMessageName() string

func (*LcpDefaultNsGetReply) GetMessageType

func (*LcpDefaultNsGetReply) GetMessageType() api.MessageType

func (*LcpDefaultNsGetReply) Marshal

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

func (*LcpDefaultNsGetReply) Reset

func (m *LcpDefaultNsGetReply) Reset()

func (*LcpDefaultNsGetReply) Size

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

func (*LcpDefaultNsGetReply) Unmarshal

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

type LcpDefaultNsSet

type LcpDefaultNsSet struct {
	Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}

LcpDefaultNsSet defines message 'lcp_default_ns_set'.

func (*LcpDefaultNsSet) GetCrcString

func (*LcpDefaultNsSet) GetCrcString() string

func (*LcpDefaultNsSet) GetMessageName

func (*LcpDefaultNsSet) GetMessageName() string

func (*LcpDefaultNsSet) GetMessageType

func (*LcpDefaultNsSet) GetMessageType() api.MessageType

func (*LcpDefaultNsSet) Marshal

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

func (*LcpDefaultNsSet) Reset

func (m *LcpDefaultNsSet) Reset()

func (*LcpDefaultNsSet) Size

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

func (*LcpDefaultNsSet) Unmarshal

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

type LcpDefaultNsSetReply

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

LcpDefaultNsSetReply defines message 'lcp_default_ns_set_reply'.

func (*LcpDefaultNsSetReply) GetCrcString

func (*LcpDefaultNsSetReply) GetCrcString() string

func (*LcpDefaultNsSetReply) GetMessageName

func (*LcpDefaultNsSetReply) GetMessageName() string

func (*LcpDefaultNsSetReply) GetMessageType

func (*LcpDefaultNsSetReply) GetMessageType() api.MessageType

func (*LcpDefaultNsSetReply) Marshal

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

func (*LcpDefaultNsSetReply) Reset

func (m *LcpDefaultNsSetReply) Reset()

func (*LcpDefaultNsSetReply) Size

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

func (*LcpDefaultNsSetReply) Unmarshal

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

type LcpItfHostType

type LcpItfHostType uint8

LcpItfHostType defines enum 'lcp_itf_host_type'.

const (
	LCP_API_ITF_HOST_TAP LcpItfHostType = 0
	LCP_API_ITF_HOST_TUN LcpItfHostType = 1
)

func (LcpItfHostType) String

func (x LcpItfHostType) String() string

type LcpItfPairAddDel

type LcpItfPairAddDel struct {
	IsAdd      bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	HostIfName string                         `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
	HostIfType LcpItfHostType                 `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
	Namespace  string                         `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}

LcpItfPairAddDel defines message 'lcp_itf_pair_add_del'.

func (*LcpItfPairAddDel) GetCrcString

func (*LcpItfPairAddDel) GetCrcString() string

func (*LcpItfPairAddDel) GetMessageName

func (*LcpItfPairAddDel) GetMessageName() string

func (*LcpItfPairAddDel) GetMessageType

func (*LcpItfPairAddDel) GetMessageType() api.MessageType

func (*LcpItfPairAddDel) Marshal

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

func (*LcpItfPairAddDel) Reset

func (m *LcpItfPairAddDel) Reset()

func (*LcpItfPairAddDel) Size

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

func (*LcpItfPairAddDel) Unmarshal

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

type LcpItfPairAddDelReply

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

LcpItfPairAddDelReply defines message 'lcp_itf_pair_add_del_reply'.

func (*LcpItfPairAddDelReply) GetCrcString

func (*LcpItfPairAddDelReply) GetCrcString() string

func (*LcpItfPairAddDelReply) GetMessageName

func (*LcpItfPairAddDelReply) GetMessageName() string

func (*LcpItfPairAddDelReply) GetMessageType

func (*LcpItfPairAddDelReply) GetMessageType() api.MessageType

func (*LcpItfPairAddDelReply) Marshal

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

func (*LcpItfPairAddDelReply) Reset

func (m *LcpItfPairAddDelReply) Reset()

func (*LcpItfPairAddDelReply) Size

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

func (*LcpItfPairAddDelReply) Unmarshal

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

type LcpItfPairAddDelV2

type LcpItfPairAddDelV2 struct {
	IsAdd      bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	HostIfName string                         `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
	HostIfType LcpItfHostType                 `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
	Namespace  string                         `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}

LcpItfPairAddDelV2 defines message 'lcp_itf_pair_add_del_v2'.

func (*LcpItfPairAddDelV2) GetCrcString

func (*LcpItfPairAddDelV2) GetCrcString() string

func (*LcpItfPairAddDelV2) GetMessageName

func (*LcpItfPairAddDelV2) GetMessageName() string

func (*LcpItfPairAddDelV2) GetMessageType

func (*LcpItfPairAddDelV2) GetMessageType() api.MessageType

func (*LcpItfPairAddDelV2) Marshal

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

func (*LcpItfPairAddDelV2) Reset

func (m *LcpItfPairAddDelV2) Reset()

func (*LcpItfPairAddDelV2) Size

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

func (*LcpItfPairAddDelV2) Unmarshal

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

type LcpItfPairAddDelV2Reply

type LcpItfPairAddDelV2Reply struct {
	Retval        int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
	HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
}

LcpItfPairAddDelV2Reply defines message 'lcp_itf_pair_add_del_v2_reply'.

func (*LcpItfPairAddDelV2Reply) GetCrcString

func (*LcpItfPairAddDelV2Reply) GetCrcString() string

func (*LcpItfPairAddDelV2Reply) GetMessageName

func (*LcpItfPairAddDelV2Reply) GetMessageName() string

func (*LcpItfPairAddDelV2Reply) GetMessageType

func (*LcpItfPairAddDelV2Reply) GetMessageType() api.MessageType

func (*LcpItfPairAddDelV2Reply) Marshal

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

func (*LcpItfPairAddDelV2Reply) Reset

func (m *LcpItfPairAddDelV2Reply) Reset()

func (*LcpItfPairAddDelV2Reply) Size

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

func (*LcpItfPairAddDelV2Reply) Unmarshal

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

type LcpItfPairDetails

type LcpItfPairDetails struct {
	PhySwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=phy_sw_if_index" json:"phy_sw_if_index,omitempty"`
	HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
	VifIndex      uint32                         `binapi:"u32,name=vif_index" json:"vif_index,omitempty"`
	HostIfName    string                         `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
	HostIfType    LcpItfHostType                 `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
	Namespace     string                         `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}

LcpItfPairDetails defines message 'lcp_itf_pair_details'.

func (*LcpItfPairDetails) GetCrcString

func (*LcpItfPairDetails) GetCrcString() string

func (*LcpItfPairDetails) GetMessageName

func (*LcpItfPairDetails) GetMessageName() string

func (*LcpItfPairDetails) GetMessageType

func (*LcpItfPairDetails) GetMessageType() api.MessageType

func (*LcpItfPairDetails) Marshal

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

func (*LcpItfPairDetails) Reset

func (m *LcpItfPairDetails) Reset()

func (*LcpItfPairDetails) Size

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

func (*LcpItfPairDetails) Unmarshal

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

type LcpItfPairGet

type LcpItfPairGet struct {
	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}

LcpItfPairGet defines message 'lcp_itf_pair_get'.

func (*LcpItfPairGet) GetCrcString

func (*LcpItfPairGet) GetCrcString() string

func (*LcpItfPairGet) GetMessageName

func (*LcpItfPairGet) GetMessageName() string

func (*LcpItfPairGet) GetMessageType

func (*LcpItfPairGet) GetMessageType() api.MessageType

func (*LcpItfPairGet) Marshal

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

func (*LcpItfPairGet) Reset

func (m *LcpItfPairGet) Reset()

func (*LcpItfPairGet) Size

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

func (*LcpItfPairGet) Unmarshal

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

type LcpItfPairGetReply

type LcpItfPairGetReply struct {
	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}

LcpItfPairGetReply defines message 'lcp_itf_pair_get_reply'.

func (*LcpItfPairGetReply) GetCrcString

func (*LcpItfPairGetReply) GetCrcString() string

func (*LcpItfPairGetReply) GetMessageName

func (*LcpItfPairGetReply) GetMessageName() string

func (*LcpItfPairGetReply) GetMessageType

func (*LcpItfPairGetReply) GetMessageType() api.MessageType

func (*LcpItfPairGetReply) Marshal

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

func (*LcpItfPairGetReply) Reset

func (m *LcpItfPairGetReply) Reset()

func (*LcpItfPairGetReply) Size

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

func (*LcpItfPairGetReply) Unmarshal

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

type LcpItfPairReplaceBegin

type LcpItfPairReplaceBegin struct{}

LcpItfPairReplaceBegin defines message 'lcp_itf_pair_replace_begin'.

func (*LcpItfPairReplaceBegin) GetCrcString

func (*LcpItfPairReplaceBegin) GetCrcString() string

func (*LcpItfPairReplaceBegin) GetMessageName

func (*LcpItfPairReplaceBegin) GetMessageName() string

func (*LcpItfPairReplaceBegin) GetMessageType

func (*LcpItfPairReplaceBegin) GetMessageType() api.MessageType

func (*LcpItfPairReplaceBegin) Marshal

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

func (*LcpItfPairReplaceBegin) Reset

func (m *LcpItfPairReplaceBegin) Reset()

func (*LcpItfPairReplaceBegin) Size

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

func (*LcpItfPairReplaceBegin) Unmarshal

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

type LcpItfPairReplaceBeginReply

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

LcpItfPairReplaceBeginReply defines message 'lcp_itf_pair_replace_begin_reply'.

func (*LcpItfPairReplaceBeginReply) GetCrcString

func (*LcpItfPairReplaceBeginReply) GetCrcString() string

func (*LcpItfPairReplaceBeginReply) GetMessageName

func (*LcpItfPairReplaceBeginReply) GetMessageName() string

func (*LcpItfPairReplaceBeginReply) GetMessageType

func (*LcpItfPairReplaceBeginReply) GetMessageType() api.MessageType

func (*LcpItfPairReplaceBeginReply) Marshal

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

func (*LcpItfPairReplaceBeginReply) Reset

func (m *LcpItfPairReplaceBeginReply) Reset()

func (*LcpItfPairReplaceBeginReply) Size

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

func (*LcpItfPairReplaceBeginReply) Unmarshal

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

type LcpItfPairReplaceEnd

type LcpItfPairReplaceEnd struct{}

LcpItfPairReplaceEnd defines message 'lcp_itf_pair_replace_end'.

func (*LcpItfPairReplaceEnd) GetCrcString

func (*LcpItfPairReplaceEnd) GetCrcString() string

func (*LcpItfPairReplaceEnd) GetMessageName

func (*LcpItfPairReplaceEnd) GetMessageName() string

func (*LcpItfPairReplaceEnd) GetMessageType

func (*LcpItfPairReplaceEnd) GetMessageType() api.MessageType

func (*LcpItfPairReplaceEnd) Marshal

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

func (*LcpItfPairReplaceEnd) Reset

func (m *LcpItfPairReplaceEnd) Reset()

func (*LcpItfPairReplaceEnd) Size

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

func (*LcpItfPairReplaceEnd) Unmarshal

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

type LcpItfPairReplaceEndReply

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

LcpItfPairReplaceEndReply defines message 'lcp_itf_pair_replace_end_reply'.

func (*LcpItfPairReplaceEndReply) GetCrcString

func (*LcpItfPairReplaceEndReply) GetCrcString() string

func (*LcpItfPairReplaceEndReply) GetMessageName

func (*LcpItfPairReplaceEndReply) GetMessageName() string

func (*LcpItfPairReplaceEndReply) GetMessageType

func (*LcpItfPairReplaceEndReply) GetMessageType() api.MessageType

func (*LcpItfPairReplaceEndReply) Marshal

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

func (*LcpItfPairReplaceEndReply) Reset

func (m *LcpItfPairReplaceEndReply) Reset()

func (*LcpItfPairReplaceEndReply) Size

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

func (*LcpItfPairReplaceEndReply) Unmarshal

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

type RPCService

type RPCService interface {
	LcpDefaultNsGet(ctx context.Context, in *LcpDefaultNsGet) (*LcpDefaultNsGetReply, error)
	LcpDefaultNsSet(ctx context.Context, in *LcpDefaultNsSet) (*LcpDefaultNsSetReply, error)
	LcpItfPairAddDel(ctx context.Context, in *LcpItfPairAddDel) (*LcpItfPairAddDelReply, error)
	LcpItfPairAddDelV2(ctx context.Context, in *LcpItfPairAddDelV2) (*LcpItfPairAddDelV2Reply, error)
	LcpItfPairGet(ctx context.Context, in *LcpItfPairGet) (RPCService_LcpItfPairGetClient, error)
	LcpItfPairReplaceBegin(ctx context.Context, in *LcpItfPairReplaceBegin) (*LcpItfPairReplaceBeginReply, error)
	LcpItfPairReplaceEnd(ctx context.Context, in *LcpItfPairReplaceEnd) (*LcpItfPairReplaceEndReply, error)
}

RPCService defines RPC service lcp.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_LcpItfPairGetClient

type RPCService_LcpItfPairGetClient interface {
	Recv() (*LcpItfPairDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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