Documentation
¶
Overview ¶
Package device is a generated protocol buffer package.
It is generated from these files:
services/device/v1/device.proto
It has these top-level messages:
InfoRequest InfoResponse Info Label
Index ¶
- func RegisterDeviceServer(s *grpc.Server, srv DeviceServer)
- type DeviceClient
- type DeviceServer
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetAddresses() []string
- func (m *Info) GetArch() string
- func (m *Info) GetBootID() string
- func (m *Info) GetGrpcPort() int64
- func (m *Info) GetHostname() string
- func (m *Info) GetLabels() []*Label
- func (m *Info) GetMachineID() string
- func (m *Info) GetOs() string
- func (m *Info) GetSystemUUID() string
- func (m *Info) GetVersion() string
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- type InfoRequest
- type InfoResponse
- type Label
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDeviceServer ¶
func RegisterDeviceServer(s *grpc.Server, srv DeviceServer)
Types ¶
type DeviceClient ¶
type DeviceClient interface {
Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
}
func NewDeviceClient ¶
func NewDeviceClient(cc *grpc.ClientConn) DeviceClient
type DeviceServer ¶
type DeviceServer interface {
Info(context.Context, *InfoRequest) (*InfoResponse, error)
}
type Info ¶
type Info struct {
// Labels for the device
Labels []*Label `protobuf:"bytes,1,rep,name=labels" json:"labels,omitempty"`
// Device hostname
Hostname string `protobuf:"bytes,2,opt,name=hostname" json:"hostname,omitempty"`
// IP addresses
Addresses []string `protobuf:"bytes,3,rep,name=addresses" json:"addresses,omitempty"`
// Port
GrpcPort int64 `protobuf:"varint,4,opt,name=grpcPort" json:"grpcPort,omitempty"`
// The machine id is an ID identifying a specific Linux/Unix installation.
// It does not change if hardware is replaced.
MachineID string `protobuf:"bytes,5,opt,name=machineID" json:"machineID,omitempty"`
// The system uuid is the main board product UUID,
// as set by the board manufacturer and encoded in the BIOS DMI information
SystemUUID string `protobuf:"bytes,6,opt,name=systemUUID" json:"systemUUID,omitempty"`
// A random ID that is regenerated on each boot
BootID string `protobuf:"bytes,7,opt,name=bootID" json:"bootID,omitempty"`
// Device operating system. One of 386, amd64, arm, s390x, and so on.
Arch string `protobuf:"bytes,8,opt,name=arch" json:"arch,omitempty"`
// device operating system. One of darwin, freebsd, linux, windows, and so on
Os string `protobuf:"bytes,9,opt,name=os" json:"os,omitempty"`
// Server version
Version string `protobuf:"bytes,10,opt,name=version" json:"version,omitempty"`
}
func (*Info) Descriptor ¶
func (*Info) GetAddresses ¶
func (*Info) GetGrpcPort ¶
func (*Info) GetHostname ¶
func (*Info) GetMachineID ¶
func (*Info) GetSystemUUID ¶
func (*Info) GetVersion ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
type InfoRequest ¶
type InfoRequest struct {
}
func (*InfoRequest) Descriptor ¶
func (*InfoRequest) Descriptor() ([]byte, []int)
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) Reset ¶
func (m *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (m *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct {
Info *Info `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
}
func (*InfoResponse) Descriptor ¶
func (*InfoResponse) Descriptor() ([]byte, []int)
func (*InfoResponse) GetInfo ¶
func (m *InfoResponse) GetInfo() *Info
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) Reset ¶
func (m *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (m *InfoResponse) String() string
type Label ¶
type Label struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}
func (*Label) Descriptor ¶
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.