urpf

package
v0.0.0-...-14ef5d2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Contents:

1 enum
4 messages

Index

Constants

View Source
const (
	APIFile    = "urpf"
	APIVersion = "1.0.0"
	VersionCrc = 0xd0c7b3c9
)

Variables

View Source
var (
	UrpfMode_name = map[uint8]string{
		0: "URPF_API_MODE_OFF",
		1: "URPF_API_MODE_LOOSE",
		2: "URPF_API_MODE_STRICT",
	}
	UrpfMode_value = map[string]uint8{
		"URPF_API_MODE_OFF":    0,
		"URPF_API_MODE_LOOSE":  1,
		"URPF_API_MODE_STRICT": 2,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

type RPCService interface {
	UrpfUpdate(ctx context.Context, in *UrpfUpdate) (*UrpfUpdateReply, error)
	UrpfUpdateV2(ctx context.Context, in *UrpfUpdateV2) (*UrpfUpdateV2Reply, error)
}

RPCService defines RPC service urpf.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type UrpfMode

type UrpfMode uint8

UrpfMode defines enum 'urpf_mode'.

const (
	URPF_API_MODE_OFF    UrpfMode = 0
	URPF_API_MODE_LOOSE  UrpfMode = 1
	URPF_API_MODE_STRICT UrpfMode = 2
)

func (UrpfMode) String

func (x UrpfMode) String() string

type UrpfUpdate

type UrpfUpdate struct {
	IsInput   bool                           `binapi:"bool,name=is_input,default=true" json:"is_input,omitempty"`
	Mode      UrpfMode                       `binapi:"urpf_mode,name=mode" json:"mode,omitempty"`
	Af        ip_types.AddressFamily         `binapi:"address_family,name=af" json:"af,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

UrpfUpdate defines message 'urpf_update'.

func (*UrpfUpdate) GetCrcString

func (*UrpfUpdate) GetCrcString() string

func (*UrpfUpdate) GetMessageName

func (*UrpfUpdate) GetMessageName() string

func (*UrpfUpdate) GetMessageType

func (*UrpfUpdate) GetMessageType() api.MessageType

func (*UrpfUpdate) Marshal

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

func (*UrpfUpdate) Reset

func (m *UrpfUpdate) Reset()

func (*UrpfUpdate) Size

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

func (*UrpfUpdate) Unmarshal

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

type UrpfUpdateReply

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

UrpfUpdateReply defines message 'urpf_update_reply'.

func (*UrpfUpdateReply) GetCrcString

func (*UrpfUpdateReply) GetCrcString() string

func (*UrpfUpdateReply) GetMessageName

func (*UrpfUpdateReply) GetMessageName() string

func (*UrpfUpdateReply) GetMessageType

func (*UrpfUpdateReply) GetMessageType() api.MessageType

func (*UrpfUpdateReply) Marshal

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

func (*UrpfUpdateReply) Reset

func (m *UrpfUpdateReply) Reset()

func (*UrpfUpdateReply) Size

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

func (*UrpfUpdateReply) Unmarshal

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

type UrpfUpdateV2

type UrpfUpdateV2 struct {
	IsInput   bool                           `binapi:"bool,name=is_input,default=true" json:"is_input,omitempty"`
	Mode      UrpfMode                       `binapi:"urpf_mode,name=mode" json:"mode,omitempty"`
	Af        ip_types.AddressFamily         `binapi:"address_family,name=af" json:"af,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	TableID   uint32                         `binapi:"u32,name=table_id,default=4294967295" json:"table_id,omitempty"`
}

UrpfUpdateV2 defines message 'urpf_update_v2'.

func (*UrpfUpdateV2) GetCrcString

func (*UrpfUpdateV2) GetCrcString() string

func (*UrpfUpdateV2) GetMessageName

func (*UrpfUpdateV2) GetMessageName() string

func (*UrpfUpdateV2) GetMessageType

func (*UrpfUpdateV2) GetMessageType() api.MessageType

func (*UrpfUpdateV2) Marshal

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

func (*UrpfUpdateV2) Reset

func (m *UrpfUpdateV2) Reset()

func (*UrpfUpdateV2) Size

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

func (*UrpfUpdateV2) Unmarshal

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

type UrpfUpdateV2Reply

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

UrpfUpdateV2Reply defines message 'urpf_update_v2_reply'.

func (*UrpfUpdateV2Reply) GetCrcString

func (*UrpfUpdateV2Reply) GetCrcString() string

func (*UrpfUpdateV2Reply) GetMessageName

func (*UrpfUpdateV2Reply) GetMessageName() string

func (*UrpfUpdateV2Reply) GetMessageType

func (*UrpfUpdateV2Reply) GetMessageType() api.MessageType

func (*UrpfUpdateV2Reply) Marshal

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

func (*UrpfUpdateV2Reply) Reset

func (m *UrpfUpdateV2Reply) Reset()

func (*UrpfUpdateV2Reply) Size

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

func (*UrpfUpdateV2Reply) Unmarshal

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

Jump to

Keyboard shortcuts

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