Documentation ¶
Index ¶
- Variables
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetHostname() string
- func (x *Device) GetIpaddr() string
- func (x *Device) GetLocality() string
- func (x *Device) GetModel() string
- func (x *Device) GetSitecode() string
- func (x *Device) GetTags() []string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type Devices
- func (*Devices) Descriptor() ([]byte, []int)deprecated
- func (x *Devices) GetDevices() map[string]*Device
- func (x *Devices) GetLinks() []*Link
- func (x *Devices) GetLocalities() map[string]*Locality
- func (x *Devices) GetTimestamp() int64
- func (*Devices) ProtoMessage()
- func (x *Devices) ProtoReflect() protoreflect.Message
- func (x *Devices) Reset()
- func (x *Devices) String() string
- type Link
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetLocal() string
- func (x *Link) GetNetwork() *Network
- func (x *Link) GetRemote() string
- func (x *Link) GetTags() []string
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- type Locality
- func (*Locality) Descriptor() ([]byte, []int)deprecated
- func (x *Locality) GetLatitude() float32
- func (x *Locality) GetLocality() string
- func (x *Locality) GetLongitude() float32
- func (*Locality) ProtoMessage()
- func (x *Locality) ProtoReflect() protoreflect.Message
- func (x *Locality) Reset()
- func (x *Locality) String() string
- type Network
Constants ¶
This section is empty.
Variables ¶
View Source
var File_fmp_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` Ipaddr string `protobuf:"bytes,2,opt,name=ipaddr,proto3" json:"ipaddr,omitempty"` Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` Sitecode string `protobuf:"bytes,4,opt,name=sitecode,proto3" json:"sitecode,omitempty"` Locality string `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"` Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetHostname ¶
func (*Device) GetLocality ¶
func (*Device) GetSitecode ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type Devices ¶
type Devices struct { Devices map[string]*Device `` /* 155-byte string literal not displayed */ Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //The moment that this metadata was generated //Extra information describing locality positions Localities map[string]*Locality `` /* 161-byte string literal not displayed */ //Links to remote locations Links []*Link `protobuf:"bytes,4,rep,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
A structure containing all the devices listed in the network repo.
func (*Devices) Descriptor
deprecated
func (*Devices) GetDevices ¶
func (*Devices) GetLocalities ¶
func (*Devices) GetTimestamp ¶
func (*Devices) ProtoMessage ¶
func (*Devices) ProtoMessage()
func (*Devices) ProtoReflect ¶
func (x *Devices) ProtoReflect() protoreflect.Message
type Link ¶
type Link struct { Local string `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"` Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` Network *Network `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*Link) Descriptor
deprecated
func (*Link) GetNetwork ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
type Locality ¶
type Locality struct { Locality string `protobuf:"bytes,1,opt,name=locality,proto3" json:"locality,omitempty"` Latitude float32 `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float32 `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty"` // contains filtered or unexported fields }
func (*Locality) Descriptor
deprecated
func (*Locality) GetLatitude ¶
func (*Locality) GetLocality ¶
func (*Locality) GetLongitude ¶
func (*Locality) ProtoMessage ¶
func (*Locality) ProtoMessage()
func (*Locality) ProtoReflect ¶
func (x *Locality) ProtoReflect() protoreflect.Message
type Network ¶
type Network struct { Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Mask []byte `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"` // contains filtered or unexported fields }
func (*Network) Descriptor
deprecated
func (*Network) ProtoMessage ¶
func (*Network) ProtoMessage()
func (*Network) ProtoReflect ¶
func (x *Network) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.