node

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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

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) 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) GetFilesystems

func (m *Info) GetFilesystems() []*Filesystem

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) GetUptime

func (m *Info) GetUptime() uint64

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

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)
}

Jump to

Keyboard shortcuts

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