urpf

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

Contents:

1 enum
2 messages

Index

Constants

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

Variables

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

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

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 = 1
	URPF_API_MODE_LOOSE  UrpfMode = 2
	URPF_API_MODE_STRICT UrpfMode = 3
)

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

Jump to

Keyboard shortcuts

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