Documentation
¶
Overview ¶
Package node is a generated protocol buffer package.
It is generated from these files:
services/node/v1/node.proto
It has these top-level messages:
InfoRequest InfoResponse Info Label Filesystem
Index ¶
- func RegisterNodeServer(s *grpc.Server, srv NodeServer)
- type Filesystem
- func (*Filesystem) Descriptor() ([]byte, []int)
- func (m *Filesystem) GetAvailable() uint64
- func (m *Filesystem) GetFilesystem() string
- func (m *Filesystem) GetFree() uint64
- func (m *Filesystem) GetMountDir() string
- func (m *Filesystem) GetTotal() uint64
- func (m *Filesystem) GetTypeName() string
- func (*Filesystem) ProtoMessage()
- func (m *Filesystem) Reset()
- func (m *Filesystem) String() string
- 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) GetFilesystems() []*Filesystem
- 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) GetUptime() uint64
- func (m *Info) GetVersion() string
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- type InfoRequest
- type InfoResponse
- type Label
- type NodeClient
- type NodeServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNodeServer ¶
func RegisterNodeServer(s *grpc.Server, srv NodeServer)
Types ¶
type Filesystem ¶
type Filesystem struct {
// E.g /dev/vda1, tmpfs, cgroup, etc.
Filesystem string `protobuf:"bytes,1,opt,name=filesystem" json:"filesystem,omitempty"`
// E.g. ext4, tmpfs, cgroup, etc.
TypeName string `protobuf:"bytes,2,opt,name=typeName" json:"typeName,omitempty"`
// Path to the mounted dir
MountDir string `protobuf:"bytes,3,opt,name=mountDir" json:"mountDir,omitempty"`
// Total data blocks
Total uint64 `protobuf:"varint,4,opt,name=total" json:"total,omitempty"`
// Free blocks
Free uint64 `protobuf:"varint,5,opt,name=free" json:"free,omitempty"`
// Free blocks available to unprivileged user
Available uint64 `protobuf:"varint,6,opt,name=available" json:"available,omitempty"`
}
func (*Filesystem) Descriptor ¶
func (*Filesystem) Descriptor() ([]byte, []int)
func (*Filesystem) GetAvailable ¶
func (m *Filesystem) GetAvailable() uint64
func (*Filesystem) GetFilesystem ¶
func (m *Filesystem) GetFilesystem() string
func (*Filesystem) GetFree ¶
func (m *Filesystem) GetFree() uint64
func (*Filesystem) GetMountDir ¶
func (m *Filesystem) GetMountDir() string
func (*Filesystem) GetTotal ¶
func (m *Filesystem) GetTotal() uint64
func (*Filesystem) GetTypeName ¶
func (m *Filesystem) GetTypeName() string
func (*Filesystem) ProtoMessage ¶
func (*Filesystem) ProtoMessage()
func (*Filesystem) Reset ¶
func (m *Filesystem) Reset()
func (*Filesystem) String ¶
func (m *Filesystem) String() string
type Info ¶
type Info struct {
// Labels for the node
Labels []*Label `protobuf:"bytes,1,rep,name=labels" json:"labels,omitempty"`
// Node 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"`
// Node operating system. One of 386, amd64, arm, s390x, and so on.
Arch string `protobuf:"bytes,8,opt,name=arch" json:"arch,omitempty"`
// node 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"`
// Filesystem infos
Filesystems []*Filesystem `protobuf:"bytes,11,rep,name=filesystems" json:"filesystems,omitempty"`
// Seconds since node boot up
Uptime uint64 `protobuf:"varint,12,opt,name=uptime" json:"uptime,omitempty"`
}
func (*Info) Descriptor ¶
func (*Info) GetAddresses ¶
func (*Info) GetFilesystems ¶
func (m *Info) GetFilesystems() []*Filesystem
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()
type NodeClient ¶
type NodeClient interface {
Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
}
func NewNodeClient ¶
func NewNodeClient(cc *grpc.ClientConn) NodeClient
type NodeServer ¶
type NodeServer interface {
Info(context.Context, *InfoRequest) (*InfoResponse, error)
}
Click to show internal directories.
Click to hide internal directories.