lb

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 lb contains generated bindings for API file lb.api.

Contents:

16 messages

Index

Constants

View Source
const (
	APIFile    = "lb"
	APIVersion = "1.0.0"
	VersionCrc = 0x50c0a6c9
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type LbAddDelAs

type LbAddDelAs struct {
	Pfx       ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"`
	Protocol  uint8                      `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"`
	Port      uint16                     `binapi:"u16,name=port" json:"port,omitempty"`
	AsAddress ip_types.Address           `binapi:"address,name=as_address" json:"as_address,omitempty"`
	IsDel     bool                       `binapi:"bool,name=is_del" json:"is_del,omitempty"`
	IsFlush   bool                       `binapi:"bool,name=is_flush" json:"is_flush,omitempty"`
}

LbAddDelAs defines message 'lb_add_del_as'.

func (*LbAddDelAs) GetCrcString

func (*LbAddDelAs) GetCrcString() string

func (*LbAddDelAs) GetMessageName

func (*LbAddDelAs) GetMessageName() string

func (*LbAddDelAs) GetMessageType

func (*LbAddDelAs) GetMessageType() api.MessageType

func (*LbAddDelAs) Marshal

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

func (*LbAddDelAs) Reset

func (m *LbAddDelAs) Reset()

func (*LbAddDelAs) Size

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

func (*LbAddDelAs) Unmarshal

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

type LbAddDelAsReply

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

LbAddDelAsReply defines message 'lb_add_del_as_reply'.

func (*LbAddDelAsReply) GetCrcString

func (*LbAddDelAsReply) GetCrcString() string

func (*LbAddDelAsReply) GetMessageName

func (*LbAddDelAsReply) GetMessageName() string

func (*LbAddDelAsReply) GetMessageType

func (*LbAddDelAsReply) GetMessageType() api.MessageType

func (*LbAddDelAsReply) Marshal

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

func (*LbAddDelAsReply) Reset

func (m *LbAddDelAsReply) Reset()

func (*LbAddDelAsReply) Size

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

func (*LbAddDelAsReply) Unmarshal

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

type LbAddDelIntfNat4

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

LbAddDelIntfNat4 defines message 'lb_add_del_intf_nat4'.

func (*LbAddDelIntfNat4) GetCrcString

func (*LbAddDelIntfNat4) GetCrcString() string

func (*LbAddDelIntfNat4) GetMessageName

func (*LbAddDelIntfNat4) GetMessageName() string

func (*LbAddDelIntfNat4) GetMessageType

func (*LbAddDelIntfNat4) GetMessageType() api.MessageType

func (*LbAddDelIntfNat4) Marshal

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

func (*LbAddDelIntfNat4) Reset

func (m *LbAddDelIntfNat4) Reset()

func (*LbAddDelIntfNat4) Size

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

func (*LbAddDelIntfNat4) Unmarshal

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

type LbAddDelIntfNat4Reply

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

LbAddDelIntfNat4Reply defines message 'lb_add_del_intf_nat4_reply'.

func (*LbAddDelIntfNat4Reply) GetCrcString

func (*LbAddDelIntfNat4Reply) GetCrcString() string

func (*LbAddDelIntfNat4Reply) GetMessageName

func (*LbAddDelIntfNat4Reply) GetMessageName() string

func (*LbAddDelIntfNat4Reply) GetMessageType

func (*LbAddDelIntfNat4Reply) GetMessageType() api.MessageType

func (*LbAddDelIntfNat4Reply) Marshal

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

func (*LbAddDelIntfNat4Reply) Reset

func (m *LbAddDelIntfNat4Reply) Reset()

func (*LbAddDelIntfNat4Reply) Size

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

func (*LbAddDelIntfNat4Reply) Unmarshal

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

type LbAddDelIntfNat6

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

LbAddDelIntfNat6 defines message 'lb_add_del_intf_nat6'.

func (*LbAddDelIntfNat6) GetCrcString

func (*LbAddDelIntfNat6) GetCrcString() string

func (*LbAddDelIntfNat6) GetMessageName

func (*LbAddDelIntfNat6) GetMessageName() string

func (*LbAddDelIntfNat6) GetMessageType

func (*LbAddDelIntfNat6) GetMessageType() api.MessageType

func (*LbAddDelIntfNat6) Marshal

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

func (*LbAddDelIntfNat6) Reset

func (m *LbAddDelIntfNat6) Reset()

func (*LbAddDelIntfNat6) Size

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

func (*LbAddDelIntfNat6) Unmarshal

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

type LbAddDelIntfNat6Reply

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

LbAddDelIntfNat6Reply defines message 'lb_add_del_intf_nat6_reply'.

func (*LbAddDelIntfNat6Reply) GetCrcString

func (*LbAddDelIntfNat6Reply) GetCrcString() string

func (*LbAddDelIntfNat6Reply) GetMessageName

func (*LbAddDelIntfNat6Reply) GetMessageName() string

func (*LbAddDelIntfNat6Reply) GetMessageType

func (*LbAddDelIntfNat6Reply) GetMessageType() api.MessageType

func (*LbAddDelIntfNat6Reply) Marshal

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

func (*LbAddDelIntfNat6Reply) Reset

func (m *LbAddDelIntfNat6Reply) Reset()

func (*LbAddDelIntfNat6Reply) Size

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

func (*LbAddDelIntfNat6Reply) Unmarshal

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

type LbAddDelVip

type LbAddDelVip struct {
	Pfx                 ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"`
	Protocol            uint8                      `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"`
	Port                uint16                     `binapi:"u16,name=port" json:"port,omitempty"`
	Encap               lb_types.LbEncapType       `binapi:"lb_encap_type,name=encap" json:"encap,omitempty"`
	Dscp                uint8                      `binapi:"u8,name=dscp" json:"dscp,omitempty"`
	Type                lb_types.LbSrvType         `binapi:"lb_srv_type,name=type" json:"type,omitempty"`
	TargetPort          uint16                     `binapi:"u16,name=target_port" json:"target_port,omitempty"`
	NodePort            uint16                     `binapi:"u16,name=node_port" json:"node_port,omitempty"`
	NewFlowsTableLength uint32                     `binapi:"u32,name=new_flows_table_length,default=1024" json:"new_flows_table_length,omitempty"`
	IsDel               bool                       `binapi:"bool,name=is_del" json:"is_del,omitempty"`
}

LbAddDelVip defines message 'lb_add_del_vip'.

func (*LbAddDelVip) GetCrcString

func (*LbAddDelVip) GetCrcString() string

func (*LbAddDelVip) GetMessageName

func (*LbAddDelVip) GetMessageName() string

func (*LbAddDelVip) GetMessageType

func (*LbAddDelVip) GetMessageType() api.MessageType

func (*LbAddDelVip) Marshal

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

func (*LbAddDelVip) Reset

func (m *LbAddDelVip) Reset()

func (*LbAddDelVip) Size

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

func (*LbAddDelVip) Unmarshal

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

type LbAddDelVipReply

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

LbAddDelVipReply defines message 'lb_add_del_vip_reply'.

func (*LbAddDelVipReply) GetCrcString

func (*LbAddDelVipReply) GetCrcString() string

func (*LbAddDelVipReply) GetMessageName

func (*LbAddDelVipReply) GetMessageName() string

func (*LbAddDelVipReply) GetMessageType

func (*LbAddDelVipReply) GetMessageType() api.MessageType

func (*LbAddDelVipReply) Marshal

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

func (*LbAddDelVipReply) Reset

func (m *LbAddDelVipReply) Reset()

func (*LbAddDelVipReply) Size

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

func (*LbAddDelVipReply) Unmarshal

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

type LbAsDetails

type LbAsDetails struct {
	Vip        lb_types.LbVip   `binapi:"lb_vip,name=vip" json:"vip,omitempty"`
	AppSrv     ip_types.Address `binapi:"address,name=app_srv" json:"app_srv,omitempty"`
	Flags      uint8            `binapi:"u8,name=flags" json:"flags,omitempty"`
	InUseSince uint32           `binapi:"u32,name=in_use_since" json:"in_use_since,omitempty"`
}

LbAsDetails defines message 'lb_as_details'.

func (*LbAsDetails) GetCrcString

func (*LbAsDetails) GetCrcString() string

func (*LbAsDetails) GetMessageName

func (*LbAsDetails) GetMessageName() string

func (*LbAsDetails) GetMessageType

func (*LbAsDetails) GetMessageType() api.MessageType

func (*LbAsDetails) Marshal

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

func (*LbAsDetails) Reset

func (m *LbAsDetails) Reset()

func (*LbAsDetails) Size

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

func (*LbAsDetails) Unmarshal

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

type LbAsDump

type LbAsDump struct {
	Pfx      ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"`
	Protocol uint8                      `binapi:"u8,name=protocol" json:"protocol,omitempty"`
	Port     uint16                     `binapi:"u16,name=port" json:"port,omitempty"`
}

LbAsDump defines message 'lb_as_dump'.

func (*LbAsDump) GetCrcString

func (*LbAsDump) GetCrcString() string

func (*LbAsDump) GetMessageName

func (*LbAsDump) GetMessageName() string

func (*LbAsDump) GetMessageType

func (*LbAsDump) GetMessageType() api.MessageType

func (*LbAsDump) Marshal

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

func (*LbAsDump) Reset

func (m *LbAsDump) Reset()

func (*LbAsDump) Size

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

func (*LbAsDump) Unmarshal

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

type LbConf

type LbConf struct {
	IP4SrcAddress        ip_types.IP4Address `binapi:"ip4_address,name=ip4_src_address" json:"ip4_src_address,omitempty"`
	IP6SrcAddress        ip_types.IP6Address `binapi:"ip6_address,name=ip6_src_address" json:"ip6_src_address,omitempty"`
	StickyBucketsPerCore uint32              `binapi:"u32,name=sticky_buckets_per_core,default=4294967295" json:"sticky_buckets_per_core,omitempty"`
	FlowTimeout          uint32              `binapi:"u32,name=flow_timeout,default=4294967295" json:"flow_timeout,omitempty"`
}

LbConf defines message 'lb_conf'.

func (*LbConf) GetCrcString

func (*LbConf) GetCrcString() string

func (*LbConf) GetMessageName

func (*LbConf) GetMessageName() string

func (*LbConf) GetMessageType

func (*LbConf) GetMessageType() api.MessageType

func (*LbConf) Marshal

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

func (*LbConf) Reset

func (m *LbConf) Reset()

func (*LbConf) Size

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

func (*LbConf) Unmarshal

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

type LbConfReply

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

LbConfReply defines message 'lb_conf_reply'.

func (*LbConfReply) GetCrcString

func (*LbConfReply) GetCrcString() string

func (*LbConfReply) GetMessageName

func (*LbConfReply) GetMessageName() string

func (*LbConfReply) GetMessageType

func (*LbConfReply) GetMessageType() api.MessageType

func (*LbConfReply) Marshal

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

func (*LbConfReply) Reset

func (m *LbConfReply) Reset()

func (*LbConfReply) Size

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

func (*LbConfReply) Unmarshal

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

type LbFlushVip

type LbFlushVip struct {
	Pfx      ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"`
	Protocol uint8                      `binapi:"u8,name=protocol" json:"protocol,omitempty"`
	Port     uint16                     `binapi:"u16,name=port" json:"port,omitempty"`
}

LbFlushVip defines message 'lb_flush_vip'.

func (*LbFlushVip) GetCrcString

func (*LbFlushVip) GetCrcString() string

func (*LbFlushVip) GetMessageName

func (*LbFlushVip) GetMessageName() string

func (*LbFlushVip) GetMessageType

func (*LbFlushVip) GetMessageType() api.MessageType

func (*LbFlushVip) Marshal

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

func (*LbFlushVip) Reset

func (m *LbFlushVip) Reset()

func (*LbFlushVip) Size

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

func (*LbFlushVip) Unmarshal

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

type LbFlushVipReply

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

LbFlushVipReply defines message 'lb_flush_vip_reply'.

func (*LbFlushVipReply) GetCrcString

func (*LbFlushVipReply) GetCrcString() string

func (*LbFlushVipReply) GetMessageName

func (*LbFlushVipReply) GetMessageName() string

func (*LbFlushVipReply) GetMessageType

func (*LbFlushVipReply) GetMessageType() api.MessageType

func (*LbFlushVipReply) Marshal

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

func (*LbFlushVipReply) Reset

func (m *LbFlushVipReply) Reset()

func (*LbFlushVipReply) Size

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

func (*LbFlushVipReply) Unmarshal

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

type LbVipDetails

type LbVipDetails struct {
	Vip             lb_types.LbVip       `binapi:"lb_vip,name=vip" json:"vip,omitempty"`
	Encap           lb_types.LbEncapType `binapi:"lb_encap_type,name=encap" json:"encap,omitempty"`
	Dscp            ip_types.IPDscp      `binapi:"ip_dscp,name=dscp" json:"dscp,omitempty"`
	SrvType         lb_types.LbSrvType   `binapi:"lb_srv_type,name=srv_type" json:"srv_type,omitempty"`
	TargetPort      uint16               `binapi:"u16,name=target_port" json:"target_port,omitempty"`
	FlowTableLength uint16               `binapi:"u16,name=flow_table_length" json:"flow_table_length,omitempty"`
}

LbVipDetails defines message 'lb_vip_details'.

func (*LbVipDetails) GetCrcString

func (*LbVipDetails) GetCrcString() string

func (*LbVipDetails) GetMessageName

func (*LbVipDetails) GetMessageName() string

func (*LbVipDetails) GetMessageType

func (*LbVipDetails) GetMessageType() api.MessageType

func (*LbVipDetails) Marshal

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

func (*LbVipDetails) Reset

func (m *LbVipDetails) Reset()

func (*LbVipDetails) Size

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

func (*LbVipDetails) Unmarshal

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

type LbVipDump

type LbVipDump struct {
	Pfx        ip_types.AddressWithPrefix `binapi:"address_with_prefix,name=pfx" json:"pfx,omitempty"`
	PfxMatcher ip_types.PrefixMatcher     `binapi:"prefix_matcher,name=pfx_matcher" json:"pfx_matcher,omitempty"`
	Protocol   uint8                      `binapi:"u8,name=protocol,default=255" json:"protocol,omitempty"`
	Port       uint16                     `binapi:"u16,name=port" json:"port,omitempty"`
}

LbVipDump defines message 'lb_vip_dump'.

func (*LbVipDump) GetCrcString

func (*LbVipDump) GetCrcString() string

func (*LbVipDump) GetMessageName

func (*LbVipDump) GetMessageName() string

func (*LbVipDump) GetMessageType

func (*LbVipDump) GetMessageType() api.MessageType

func (*LbVipDump) Marshal

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

func (*LbVipDump) Reset

func (m *LbVipDump) Reset()

func (*LbVipDump) Size

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

func (*LbVipDump) Unmarshal

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

type RPCService

type RPCService interface {
	LbAddDelAs(ctx context.Context, in *LbAddDelAs) (*LbAddDelAsReply, error)
	LbAddDelIntfNat4(ctx context.Context, in *LbAddDelIntfNat4) (*LbAddDelIntfNat4Reply, error)
	LbAddDelIntfNat6(ctx context.Context, in *LbAddDelIntfNat6) (*LbAddDelIntfNat6Reply, error)
	LbAddDelVip(ctx context.Context, in *LbAddDelVip) (*LbAddDelVipReply, error)
	LbAsDump(ctx context.Context, in *LbAsDump) (RPCService_LbAsDumpClient, error)
	LbConf(ctx context.Context, in *LbConf) (*LbConfReply, error)
	LbFlushVip(ctx context.Context, in *LbFlushVip) (*LbFlushVipReply, error)
	LbVipDump(ctx context.Context, in *LbVipDump) (RPCService_LbVipDumpClient, error)
}

RPCService defines RPC service lb.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_LbAsDumpClient

type RPCService_LbAsDumpClient interface {
	Recv() (*LbAsDetails, error)
	api.Stream
}

type RPCService_LbVipDumpClient

type RPCService_LbVipDumpClient interface {
	Recv() (*LbVipDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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