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 ¶
- Variables
- type ARPNeighbor
- func (*ARPNeighbor) Descriptor() ([]byte, []int)
- func (m *ARPNeighbor) GetDevice() string
- func (m *ARPNeighbor) GetFlags() int32
- func (m *ARPNeighbor) GetLladdr() string
- func (m *ARPNeighbor) GetState() int32
- func (m *ARPNeighbor) GetToIPAddress() *IPAddress
- func (m *ARPNeighbor) Marshal() (dAtA []byte, err error)
- func (m *ARPNeighbor) MarshalTo(dAtA []byte) (int, error)
- func (*ARPNeighbor) ProtoMessage()
- func (m *ARPNeighbor) Reset()
- func (m *ARPNeighbor) Size() (n int)
- func (m *ARPNeighbor) String() string
- func (m *ARPNeighbor) Unmarshal(dAtA []byte) error
- type IPAddress
- func (*IPAddress) Descriptor() ([]byte, []int)
- func (m *IPAddress) GetAddress() string
- func (m *IPAddress) GetFamily() IPFamily
- func (m *IPAddress) GetMask() string
- func (m *IPAddress) Marshal() (dAtA []byte, err error)
- func (m *IPAddress) MarshalTo(dAtA []byte) (int, error)
- func (*IPAddress) ProtoMessage()
- func (m *IPAddress) Reset()
- func (m *IPAddress) Size() (n int)
- func (m *IPAddress) String() string
- func (m *IPAddress) Unmarshal(dAtA []byte) error
- type IPFamily
- type Interface
- func (*Interface) Descriptor() ([]byte, []int)
- func (m *Interface) GetDevice() string
- func (m *Interface) GetHwAddr() string
- func (m *Interface) GetIPAddresses() []*IPAddress
- func (m *Interface) GetMtu() uint64
- func (m *Interface) GetName() string
- func (m *Interface) GetPciPath() string
- func (m *Interface) GetRawFlags() uint32
- func (m *Interface) GetType() string
- func (m *Interface) Marshal() (dAtA []byte, err error)
- func (m *Interface) MarshalTo(dAtA []byte) (int, error)
- func (*Interface) ProtoMessage()
- func (m *Interface) Reset()
- func (m *Interface) Size() (n int)
- func (m *Interface) String() string
- func (m *Interface) Unmarshal(dAtA []byte) error
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetDest() string
- func (m *Route) GetDevice() string
- func (m *Route) GetGateway() string
- func (m *Route) GetScope() uint32
- func (m *Route) GetSource() string
- func (m *Route) Marshal() (dAtA []byte, err error)
- func (m *Route) MarshalTo(dAtA []byte) (int, error)
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) Size() (n int)
- func (m *Route) String() string
- func (m *Route) Unmarshal(dAtA []byte) error
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) 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) GetAddress ¶
func (*IPAddress) ProtoMessage ¶
func (*IPAddress) ProtoMessage()
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) GetIPAddresses ¶
func (*Interface) GetPciPath ¶
func (*Interface) GetRawFlags ¶
func (*Interface) ProtoMessage ¶
func (*Interface) ProtoMessage()
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) GetGateway ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.