pvti

package
v0.0.0-...-4d08cb0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Contents: - 1 struct - 6 messages

Index

Constants

View Source
const (
	APIFile    = "pvti"
	APIVersion = "0.0.1"
	VersionCrc = 0xb319860
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type PvtiInterfaceCreate

type PvtiInterfaceCreate struct {
	Interface PvtiTunnel `binapi:"pvti_tunnel,name=interface" json:"interface,omitempty"`
}

@brief API to enable / disable pvti on an interface

  • enable_disable - 1 to enable, 0 to disable the feature
  • sw_if_index - interface handle

PvtiInterfaceCreate defines message 'pvti_interface_create'. InProgress: the message form may change in the future versions

func (*PvtiInterfaceCreate) GetCrcString

func (*PvtiInterfaceCreate) GetCrcString() string

func (*PvtiInterfaceCreate) GetMessageName

func (*PvtiInterfaceCreate) GetMessageName() string

func (*PvtiInterfaceCreate) GetMessageType

func (*PvtiInterfaceCreate) GetMessageType() api.MessageType

func (*PvtiInterfaceCreate) Marshal

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

func (*PvtiInterfaceCreate) Reset

func (m *PvtiInterfaceCreate) Reset()

func (*PvtiInterfaceCreate) Size

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

func (*PvtiInterfaceCreate) Unmarshal

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

type PvtiInterfaceCreateReply

type PvtiInterfaceCreateReply struct {
	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

PvtiInterfaceCreateReply defines message 'pvti_interface_create_reply'. InProgress: the message form may change in the future versions

func (*PvtiInterfaceCreateReply) GetCrcString

func (*PvtiInterfaceCreateReply) GetCrcString() string

func (*PvtiInterfaceCreateReply) GetMessageName

func (*PvtiInterfaceCreateReply) GetMessageName() string

func (*PvtiInterfaceCreateReply) GetMessageType

func (*PvtiInterfaceCreateReply) GetMessageType() api.MessageType

func (*PvtiInterfaceCreateReply) Marshal

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

func (*PvtiInterfaceCreateReply) Reset

func (m *PvtiInterfaceCreateReply) Reset()

func (*PvtiInterfaceCreateReply) Size

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

func (*PvtiInterfaceCreateReply) Unmarshal

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

type PvtiInterfaceDelete

type PvtiInterfaceDelete struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

PvtiInterfaceDelete defines message 'pvti_interface_delete'. InProgress: the message form may change in the future versions

func (*PvtiInterfaceDelete) GetCrcString

func (*PvtiInterfaceDelete) GetCrcString() string

func (*PvtiInterfaceDelete) GetMessageName

func (*PvtiInterfaceDelete) GetMessageName() string

func (*PvtiInterfaceDelete) GetMessageType

func (*PvtiInterfaceDelete) GetMessageType() api.MessageType

func (*PvtiInterfaceDelete) Marshal

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

func (*PvtiInterfaceDelete) Reset

func (m *PvtiInterfaceDelete) Reset()

func (*PvtiInterfaceDelete) Size

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

func (*PvtiInterfaceDelete) Unmarshal

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

type PvtiInterfaceDeleteReply

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

PvtiInterfaceDeleteReply defines message 'pvti_interface_delete_reply'. InProgress: the message form may change in the future versions

func (*PvtiInterfaceDeleteReply) GetCrcString

func (*PvtiInterfaceDeleteReply) GetCrcString() string

func (*PvtiInterfaceDeleteReply) GetMessageName

func (*PvtiInterfaceDeleteReply) GetMessageName() string

func (*PvtiInterfaceDeleteReply) GetMessageType

func (*PvtiInterfaceDeleteReply) GetMessageType() api.MessageType

func (*PvtiInterfaceDeleteReply) Marshal

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

func (*PvtiInterfaceDeleteReply) Reset

func (m *PvtiInterfaceDeleteReply) Reset()

func (*PvtiInterfaceDeleteReply) Size

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

func (*PvtiInterfaceDeleteReply) Unmarshal

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

type PvtiInterfaceDetails

type PvtiInterfaceDetails struct {
	Interface PvtiTunnel `binapi:"pvti_tunnel,name=interface" json:"interface,omitempty"`
}

PvtiInterfaceDetails defines message 'pvti_interface_details'. InProgress: the message form may change in the future versions

func (*PvtiInterfaceDetails) GetCrcString

func (*PvtiInterfaceDetails) GetCrcString() string

func (*PvtiInterfaceDetails) GetMessageName

func (*PvtiInterfaceDetails) GetMessageName() string

func (*PvtiInterfaceDetails) GetMessageType

func (*PvtiInterfaceDetails) GetMessageType() api.MessageType

func (*PvtiInterfaceDetails) Marshal

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

func (*PvtiInterfaceDetails) Reset

func (m *PvtiInterfaceDetails) Reset()

func (*PvtiInterfaceDetails) Size

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

func (*PvtiInterfaceDetails) Unmarshal

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

type PvtiInterfaceDump

type PvtiInterfaceDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

PvtiInterfaceDump defines message 'pvti_interface_dump'. InProgress: the message form may change in the future versions

func (*PvtiInterfaceDump) GetCrcString

func (*PvtiInterfaceDump) GetCrcString() string

func (*PvtiInterfaceDump) GetMessageName

func (*PvtiInterfaceDump) GetMessageName() string

func (*PvtiInterfaceDump) GetMessageType

func (*PvtiInterfaceDump) GetMessageType() api.MessageType

func (*PvtiInterfaceDump) Marshal

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

func (*PvtiInterfaceDump) Reset

func (m *PvtiInterfaceDump) Reset()

func (*PvtiInterfaceDump) Size

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

func (*PvtiInterfaceDump) Unmarshal

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

type PvtiTunnel

type PvtiTunnel struct {
	SwIfIndex              interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	LocalIP                ip_types.Address               `binapi:"address,name=local_ip" json:"local_ip,omitempty"`
	LocalPort              uint16                         `binapi:"u16,name=local_port" json:"local_port,omitempty"`
	RemoteIP               ip_types.Address               `binapi:"address,name=remote_ip" json:"remote_ip,omitempty"`
	PeerAddressFromPayload bool                           `binapi:"bool,name=peer_address_from_payload" json:"peer_address_from_payload,omitempty"`
	RemotePort             uint16                         `binapi:"u16,name=remote_port" json:"remote_port,omitempty"`
	UnderlayMtu            uint16                         `binapi:"u16,name=underlay_mtu" json:"underlay_mtu,omitempty"`
	UnderlayFibIndex       uint32                         `binapi:"u32,name=underlay_fib_index" json:"underlay_fib_index,omitempty"`
}

PvtiTunnel defines type 'pvti_tunnel'.

type RPCService

type RPCService interface {
	PvtiInterfaceCreate(ctx context.Context, in *PvtiInterfaceCreate) (*PvtiInterfaceCreateReply, error)
	PvtiInterfaceDelete(ctx context.Context, in *PvtiInterfaceDelete) (*PvtiInterfaceDeleteReply, error)
	PvtiInterfaceDump(ctx context.Context, in *PvtiInterfaceDump) (RPCService_PvtiInterfaceDumpClient, error)
}

RPCService defines RPC service pvti.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_PvtiInterfaceDumpClient

type RPCService_PvtiInterfaceDumpClient interface {
	Recv() (*PvtiInterfaceDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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