types

package
v0.0.0-...-0b75b2d Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Overview

Package types is a generated protocol buffer package.

It is generated from these files:

pkg/types/types.proto

It has these top-level messages:

IPAddress
Interface
Route
ARPNeighbor

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes   = fmt.Errorf("proto: integer overflow")
)
View Source
var IPFamily_name = map[int32]string{
	0: "v4",
	1: "v6",
}
View Source
var IPFamily_value = map[string]int32{
	"v4": 0,
	"v6": 1,
}

Functions

This section is empty.

Types

type ARPNeighbor

type ARPNeighbor struct {
	ToIPAddress *IPAddress `protobuf:"bytes,1,opt,name=toIPAddress" json:"toIPAddress,omitempty"`
	Device      string     `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
	Lladdr      string     `protobuf:"bytes,3,opt,name=lladdr,proto3" json:"lladdr,omitempty"`
	State       int32      `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"`
	Flags       int32      `protobuf:"varint,5,opt,name=flags,proto3" json:"flags,omitempty"`
}

func (*ARPNeighbor) Descriptor

func (*ARPNeighbor) Descriptor() ([]byte, []int)

func (*ARPNeighbor) GetDevice

func (m *ARPNeighbor) GetDevice() string

func (*ARPNeighbor) GetFlags

func (m *ARPNeighbor) GetFlags() int32

func (*ARPNeighbor) GetLladdr

func (m *ARPNeighbor) GetLladdr() string

func (*ARPNeighbor) GetState

func (m *ARPNeighbor) GetState() int32

func (*ARPNeighbor) GetToIPAddress

func (m *ARPNeighbor) GetToIPAddress() *IPAddress

func (*ARPNeighbor) Marshal

func (m *ARPNeighbor) Marshal() (dAtA []byte, err error)

func (*ARPNeighbor) MarshalTo

func (m *ARPNeighbor) MarshalTo(dAtA []byte) (int, error)

func (*ARPNeighbor) ProtoMessage

func (*ARPNeighbor) ProtoMessage()

func (*ARPNeighbor) Reset

func (m *ARPNeighbor) Reset()

func (*ARPNeighbor) Size

func (m *ARPNeighbor) Size() (n int)

func (*ARPNeighbor) String

func (m *ARPNeighbor) String() string

func (*ARPNeighbor) Unmarshal

func (m *ARPNeighbor) Unmarshal(dAtA []byte) error

type IPAddress

type IPAddress struct {
	Family  IPFamily `protobuf:"varint,1,opt,name=family,proto3,enum=types.IPFamily" json:"family,omitempty"`
	Address string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Mask    string   `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"`
}

func (*IPAddress) Descriptor

func (*IPAddress) Descriptor() ([]byte, []int)

func (*IPAddress) GetAddress

func (m *IPAddress) GetAddress() string

func (*IPAddress) GetFamily

func (m *IPAddress) GetFamily() IPFamily

func (*IPAddress) GetMask

func (m *IPAddress) GetMask() string

func (*IPAddress) Marshal

func (m *IPAddress) Marshal() (dAtA []byte, err error)

func (*IPAddress) MarshalTo

func (m *IPAddress) MarshalTo(dAtA []byte) (int, error)

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) Reset

func (m *IPAddress) Reset()

func (*IPAddress) Size

func (m *IPAddress) Size() (n int)

func (*IPAddress) String

func (m *IPAddress) String() string

func (*IPAddress) Unmarshal

func (m *IPAddress) Unmarshal(dAtA []byte) error

type IPFamily

type IPFamily int32
const (
	IPFamily_v4 IPFamily = 0
	IPFamily_v6 IPFamily = 1
)

func (IPFamily) EnumDescriptor

func (IPFamily) EnumDescriptor() ([]byte, []int)

func (IPFamily) String

func (x IPFamily) String() string

type Interface

type Interface struct {
	Device      string       `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Name        string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IPAddresses []*IPAddress `protobuf:"bytes,3,rep,name=IPAddresses" json:"IPAddresses,omitempty"`
	Mtu         uint64       `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"`
	HwAddr      string       `protobuf:"bytes,5,opt,name=hwAddr,proto3" json:"hwAddr,omitempty"`
	// pciPath for the device (see type PciPath for format
	// details)
	PciPath string `protobuf:"bytes,6,opt,name=pciPath,proto3" json:"pciPath,omitempty"`
	// Type defines the type of interface described by this structure.
	// The expected values are the one that are defined by the netlink
	// library, regarding each type of link. Here is a non exhaustive
	// list: "veth", "macvtap", "vlan", "macvlan", "tap", ...
	Type     string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
	RawFlags uint32 `protobuf:"varint,8,opt,name=raw_flags,json=rawFlags,proto3" json:"raw_flags,omitempty"`
}

func (*Interface) Descriptor

func (*Interface) Descriptor() ([]byte, []int)

func (*Interface) GetDevice

func (m *Interface) GetDevice() string

func (*Interface) GetHwAddr

func (m *Interface) GetHwAddr() string

func (*Interface) GetIPAddresses

func (m *Interface) GetIPAddresses() []*IPAddress

func (*Interface) GetMtu

func (m *Interface) GetMtu() uint64

func (*Interface) GetName

func (m *Interface) GetName() string

func (*Interface) GetPciPath

func (m *Interface) GetPciPath() string

func (*Interface) GetRawFlags

func (m *Interface) GetRawFlags() uint32

func (*Interface) GetType

func (m *Interface) GetType() string

func (*Interface) Marshal

func (m *Interface) Marshal() (dAtA []byte, err error)

func (*Interface) MarshalTo

func (m *Interface) MarshalTo(dAtA []byte) (int, error)

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) Reset

func (m *Interface) Reset()

func (*Interface) Size

func (m *Interface) Size() (n int)

func (*Interface) String

func (m *Interface) String() string

func (*Interface) Unmarshal

func (m *Interface) Unmarshal(dAtA []byte) error

type Route

type Route struct {
	Dest    string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
	Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"`
	Device  string `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"`
	Source  string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Scope   uint32 `protobuf:"varint,5,opt,name=scope,proto3" json:"scope,omitempty"`
}

func (*Route) Descriptor

func (*Route) Descriptor() ([]byte, []int)

func (*Route) GetDest

func (m *Route) GetDest() string

func (*Route) GetDevice

func (m *Route) GetDevice() string

func (*Route) GetGateway

func (m *Route) GetGateway() string

func (*Route) GetScope

func (m *Route) GetScope() uint32

func (*Route) GetSource

func (m *Route) GetSource() string

func (*Route) Marshal

func (m *Route) Marshal() (dAtA []byte, err error)

func (*Route) MarshalTo

func (m *Route) MarshalTo(dAtA []byte) (int, error)

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) Size

func (m *Route) Size() (n int)

func (*Route) String

func (m *Route) String() string

func (*Route) Unmarshal

func (m *Route) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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