device

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 5 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Info) GetAddresses

func (m *Info) GetAddresses() []string

func (*Info) GetArch

func (m *Info) GetArch() string

func (*Info) GetBootID

func (m *Info) GetBootID() string

func (*Info) GetGrpcPort

func (m *Info) GetGrpcPort() int64

func (*Info) GetHostname

func (m *Info) GetHostname() string

func (*Info) GetLabels

func (m *Info) GetLabels() []*Label

func (*Info) GetMachineID

func (m *Info) GetMachineID() string

func (*Info) GetOs

func (m *Info) GetOs() string

func (*Info) GetSystemUUID

func (m *Info) GetSystemUUID() string

func (*Info) GetVersion

func (m *Info) GetVersion() string

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

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) Descriptor() ([]byte, []int)

func (*Label) GetKey

func (m *Label) GetKey() string

func (*Label) GetValue

func (m *Label) GetValue() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) Reset

func (m *Label) Reset()

func (*Label) String

func (m *Label) String() string

Jump to

Keyboard shortcuts

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