talos/api/os/os.pb.go
Brad Beam 41a4741bca refactor: Move logs to machined
This moves Logs endpoint to machined to reduce the mount footprint of osd.

Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
2019-11-04 15:04:13 -08:00

1171 lines
38 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: os/os.proto
package os
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
common "github.com/talos-systems/talos/api/common"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ContainersRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// driver might be default "containerd" or "cri"
Driver common.ContainerDriver `protobuf:"varint,2,opt,name=driver,proto3,enum=common.ContainerDriver" json:"driver,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContainersRequest) Reset() { *m = ContainersRequest{} }
func (m *ContainersRequest) String() string { return proto.CompactTextString(m) }
func (*ContainersRequest) ProtoMessage() {}
func (*ContainersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{0}
}
func (m *ContainersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContainersRequest.Unmarshal(m, b)
}
func (m *ContainersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContainersRequest.Marshal(b, m, deterministic)
}
func (m *ContainersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContainersRequest.Merge(m, src)
}
func (m *ContainersRequest) XXX_Size() int {
return xxx_messageInfo_ContainersRequest.Size(m)
}
func (m *ContainersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ContainersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ContainersRequest proto.InternalMessageInfo
func (m *ContainersRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *ContainersRequest) GetDriver() common.ContainerDriver {
if m != nil {
return m.Driver
}
return common.ContainerDriver_CONTAINERD
}
// The response message containing the requested containers.
type Container struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
Pid uint32 `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
PodId string `protobuf:"bytes,6,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Container) Reset() { *m = Container{} }
func (m *Container) String() string { return proto.CompactTextString(m) }
func (*Container) ProtoMessage() {}
func (*Container) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{1}
}
func (m *Container) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Container.Unmarshal(m, b)
}
func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Container.Marshal(b, m, deterministic)
}
func (m *Container) XXX_Merge(src proto.Message) {
xxx_messageInfo_Container.Merge(m, src)
}
func (m *Container) XXX_Size() int {
return xxx_messageInfo_Container.Size(m)
}
func (m *Container) XXX_DiscardUnknown() {
xxx_messageInfo_Container.DiscardUnknown(m)
}
var xxx_messageInfo_Container proto.InternalMessageInfo
func (m *Container) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *Container) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Container) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func (m *Container) GetPid() uint32 {
if m != nil {
return m.Pid
}
return 0
}
func (m *Container) GetStatus() string {
if m != nil {
return m.Status
}
return ""
}
func (m *Container) GetPodId() string {
if m != nil {
return m.PodId
}
return ""
}
func (m *Container) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The response message containing the requested containers.
type ContainerResponse struct {
Metadata *common.NodeMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Containers []*Container `protobuf:"bytes,2,rep,name=containers,proto3" json:"containers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContainerResponse) Reset() { *m = ContainerResponse{} }
func (m *ContainerResponse) String() string { return proto.CompactTextString(m) }
func (*ContainerResponse) ProtoMessage() {}
func (*ContainerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{2}
}
func (m *ContainerResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContainerResponse.Unmarshal(m, b)
}
func (m *ContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContainerResponse.Marshal(b, m, deterministic)
}
func (m *ContainerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContainerResponse.Merge(m, src)
}
func (m *ContainerResponse) XXX_Size() int {
return xxx_messageInfo_ContainerResponse.Size(m)
}
func (m *ContainerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ContainerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ContainerResponse proto.InternalMessageInfo
func (m *ContainerResponse) GetMetadata() *common.NodeMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *ContainerResponse) GetContainers() []*Container {
if m != nil {
return m.Containers
}
return nil
}
type ContainersReply struct {
Response []*ContainerResponse `protobuf:"bytes,1,rep,name=response,proto3" json:"response,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContainersReply) Reset() { *m = ContainersReply{} }
func (m *ContainersReply) String() string { return proto.CompactTextString(m) }
func (*ContainersReply) ProtoMessage() {}
func (*ContainersReply) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{3}
}
func (m *ContainersReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContainersReply.Unmarshal(m, b)
}
func (m *ContainersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContainersReply.Marshal(b, m, deterministic)
}
func (m *ContainersReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContainersReply.Merge(m, src)
}
func (m *ContainersReply) XXX_Size() int {
return xxx_messageInfo_ContainersReply.Size(m)
}
func (m *ContainersReply) XXX_DiscardUnknown() {
xxx_messageInfo_ContainersReply.DiscardUnknown(m)
}
var xxx_messageInfo_ContainersReply proto.InternalMessageInfo
func (m *ContainersReply) GetResponse() []*ContainerResponse {
if m != nil {
return m.Response
}
return nil
}
// rpc processes
type ProcessesRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProcessesRequest) Reset() { *m = ProcessesRequest{} }
func (m *ProcessesRequest) String() string { return proto.CompactTextString(m) }
func (*ProcessesRequest) ProtoMessage() {}
func (*ProcessesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{4}
}
func (m *ProcessesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProcessesRequest.Unmarshal(m, b)
}
func (m *ProcessesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProcessesRequest.Marshal(b, m, deterministic)
}
func (m *ProcessesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProcessesRequest.Merge(m, src)
}
func (m *ProcessesRequest) XXX_Size() int {
return xxx_messageInfo_ProcessesRequest.Size(m)
}
func (m *ProcessesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ProcessesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ProcessesRequest proto.InternalMessageInfo
type ProcessesReply struct {
Response []*ProcessResponse `protobuf:"bytes,1,rep,name=response,proto3" json:"response,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProcessesReply) Reset() { *m = ProcessesReply{} }
func (m *ProcessesReply) String() string { return proto.CompactTextString(m) }
func (*ProcessesReply) ProtoMessage() {}
func (*ProcessesReply) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{5}
}
func (m *ProcessesReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProcessesReply.Unmarshal(m, b)
}
func (m *ProcessesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProcessesReply.Marshal(b, m, deterministic)
}
func (m *ProcessesReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProcessesReply.Merge(m, src)
}
func (m *ProcessesReply) XXX_Size() int {
return xxx_messageInfo_ProcessesReply.Size(m)
}
func (m *ProcessesReply) XXX_DiscardUnknown() {
xxx_messageInfo_ProcessesReply.DiscardUnknown(m)
}
var xxx_messageInfo_ProcessesReply proto.InternalMessageInfo
func (m *ProcessesReply) GetResponse() []*ProcessResponse {
if m != nil {
return m.Response
}
return nil
}
type ProcessResponse struct {
Metadata *common.NodeMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Processes []*Process `protobuf:"bytes,2,rep,name=processes,proto3" json:"processes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProcessResponse) Reset() { *m = ProcessResponse{} }
func (m *ProcessResponse) String() string { return proto.CompactTextString(m) }
func (*ProcessResponse) ProtoMessage() {}
func (*ProcessResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{6}
}
func (m *ProcessResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProcessResponse.Unmarshal(m, b)
}
func (m *ProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProcessResponse.Marshal(b, m, deterministic)
}
func (m *ProcessResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProcessResponse.Merge(m, src)
}
func (m *ProcessResponse) XXX_Size() int {
return xxx_messageInfo_ProcessResponse.Size(m)
}
func (m *ProcessResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProcessResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProcessResponse proto.InternalMessageInfo
func (m *ProcessResponse) GetMetadata() *common.NodeMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *ProcessResponse) GetProcesses() []*Process {
if m != nil {
return m.Processes
}
return nil
}
type Process struct {
Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
Ppid int32 `protobuf:"varint,2,opt,name=ppid,proto3" json:"ppid,omitempty"`
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
Threads int32 `protobuf:"varint,4,opt,name=threads,proto3" json:"threads,omitempty"`
CpuTime float64 `protobuf:"fixed64,5,opt,name=cpu_time,json=cpuTime,proto3" json:"cpu_time,omitempty"`
VirtualMemory uint64 `protobuf:"varint,6,opt,name=virtual_memory,json=virtualMemory,proto3" json:"virtual_memory,omitempty"`
ResidentMemory uint64 `protobuf:"varint,7,opt,name=resident_memory,json=residentMemory,proto3" json:"resident_memory,omitempty"`
Command string `protobuf:"bytes,8,opt,name=command,proto3" json:"command,omitempty"`
Executable string `protobuf:"bytes,9,opt,name=executable,proto3" json:"executable,omitempty"`
Args string `protobuf:"bytes,10,opt,name=args,proto3" json:"args,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Process) Reset() { *m = Process{} }
func (m *Process) String() string { return proto.CompactTextString(m) }
func (*Process) ProtoMessage() {}
func (*Process) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{7}
}
func (m *Process) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Process.Unmarshal(m, b)
}
func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Process.Marshal(b, m, deterministic)
}
func (m *Process) XXX_Merge(src proto.Message) {
xxx_messageInfo_Process.Merge(m, src)
}
func (m *Process) XXX_Size() int {
return xxx_messageInfo_Process.Size(m)
}
func (m *Process) XXX_DiscardUnknown() {
xxx_messageInfo_Process.DiscardUnknown(m)
}
var xxx_messageInfo_Process proto.InternalMessageInfo
func (m *Process) GetPid() int32 {
if m != nil {
return m.Pid
}
return 0
}
func (m *Process) GetPpid() int32 {
if m != nil {
return m.Ppid
}
return 0
}
func (m *Process) GetState() string {
if m != nil {
return m.State
}
return ""
}
func (m *Process) GetThreads() int32 {
if m != nil {
return m.Threads
}
return 0
}
func (m *Process) GetCpuTime() float64 {
if m != nil {
return m.CpuTime
}
return 0
}
func (m *Process) GetVirtualMemory() uint64 {
if m != nil {
return m.VirtualMemory
}
return 0
}
func (m *Process) GetResidentMemory() uint64 {
if m != nil {
return m.ResidentMemory
}
return 0
}
func (m *Process) GetCommand() string {
if m != nil {
return m.Command
}
return ""
}
func (m *Process) GetExecutable() string {
if m != nil {
return m.Executable
}
return ""
}
func (m *Process) GetArgs() string {
if m != nil {
return m.Args
}
return ""
}
// rpc restart
// The request message containing the process to restart.
type RestartRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// driver might be default "containerd" or "cri"
Driver common.ContainerDriver `protobuf:"varint,3,opt,name=driver,proto3,enum=common.ContainerDriver" json:"driver,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RestartRequest) Reset() { *m = RestartRequest{} }
func (m *RestartRequest) String() string { return proto.CompactTextString(m) }
func (*RestartRequest) ProtoMessage() {}
func (*RestartRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{8}
}
func (m *RestartRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RestartRequest.Unmarshal(m, b)
}
func (m *RestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RestartRequest.Marshal(b, m, deterministic)
}
func (m *RestartRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RestartRequest.Merge(m, src)
}
func (m *RestartRequest) XXX_Size() int {
return xxx_messageInfo_RestartRequest.Size(m)
}
func (m *RestartRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RestartRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RestartRequest proto.InternalMessageInfo
func (m *RestartRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *RestartRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *RestartRequest) GetDriver() common.ContainerDriver {
if m != nil {
return m.Driver
}
return common.ContainerDriver_CONTAINERD
}
type RestartResponse struct {
Metadata *common.NodeMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RestartResponse) Reset() { *m = RestartResponse{} }
func (m *RestartResponse) String() string { return proto.CompactTextString(m) }
func (*RestartResponse) ProtoMessage() {}
func (*RestartResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{9}
}
func (m *RestartResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RestartResponse.Unmarshal(m, b)
}
func (m *RestartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RestartResponse.Marshal(b, m, deterministic)
}
func (m *RestartResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RestartResponse.Merge(m, src)
}
func (m *RestartResponse) XXX_Size() int {
return xxx_messageInfo_RestartResponse.Size(m)
}
func (m *RestartResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RestartResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RestartResponse proto.InternalMessageInfo
func (m *RestartResponse) GetMetadata() *common.NodeMetadata {
if m != nil {
return m.Metadata
}
return nil
}
// The response message containing the restart status.
type RestartReply struct {
Response []*RestartResponse `protobuf:"bytes,1,rep,name=response,proto3" json:"response,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RestartReply) Reset() { *m = RestartReply{} }
func (m *RestartReply) String() string { return proto.CompactTextString(m) }
func (*RestartReply) ProtoMessage() {}
func (*RestartReply) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{10}
}
func (m *RestartReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RestartReply.Unmarshal(m, b)
}
func (m *RestartReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RestartReply.Marshal(b, m, deterministic)
}
func (m *RestartReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_RestartReply.Merge(m, src)
}
func (m *RestartReply) XXX_Size() int {
return xxx_messageInfo_RestartReply.Size(m)
}
func (m *RestartReply) XXX_DiscardUnknown() {
xxx_messageInfo_RestartReply.DiscardUnknown(m)
}
var xxx_messageInfo_RestartReply proto.InternalMessageInfo
func (m *RestartReply) GetResponse() []*RestartResponse {
if m != nil {
return m.Response
}
return nil
}
// The request message containing the containerd namespace.
type StatsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// driver might be default "containerd" or "cri"
Driver common.ContainerDriver `protobuf:"varint,2,opt,name=driver,proto3,enum=common.ContainerDriver" json:"driver,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
func (*StatsRequest) ProtoMessage() {}
func (*StatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{11}
}
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
}
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
}
func (m *StatsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatsRequest.Merge(m, src)
}
func (m *StatsRequest) XXX_Size() int {
return xxx_messageInfo_StatsRequest.Size(m)
}
func (m *StatsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StatsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
func (m *StatsRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *StatsRequest) GetDriver() common.ContainerDriver {
if m != nil {
return m.Driver
}
return common.ContainerDriver_CONTAINERD
}
// The response message containing the requested stats.
type StatsResponse struct {
Metadata *common.NodeMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Stats []*Stat `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatsResponse) Reset() { *m = StatsResponse{} }
func (m *StatsResponse) String() string { return proto.CompactTextString(m) }
func (*StatsResponse) ProtoMessage() {}
func (*StatsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{12}
}
func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatsResponse.Unmarshal(m, b)
}
func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic)
}
func (m *StatsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatsResponse.Merge(m, src)
}
func (m *StatsResponse) XXX_Size() int {
return xxx_messageInfo_StatsResponse.Size(m)
}
func (m *StatsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StatsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StatsResponse proto.InternalMessageInfo
func (m *StatsResponse) GetMetadata() *common.NodeMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *StatsResponse) GetStats() []*Stat {
if m != nil {
return m.Stats
}
return nil
}
type StatsReply struct {
Response []*StatsResponse `protobuf:"bytes,1,rep,name=response,proto3" json:"response,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatsReply) Reset() { *m = StatsReply{} }
func (m *StatsReply) String() string { return proto.CompactTextString(m) }
func (*StatsReply) ProtoMessage() {}
func (*StatsReply) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{13}
}
func (m *StatsReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatsReply.Unmarshal(m, b)
}
func (m *StatsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatsReply.Marshal(b, m, deterministic)
}
func (m *StatsReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatsReply.Merge(m, src)
}
func (m *StatsReply) XXX_Size() int {
return xxx_messageInfo_StatsReply.Size(m)
}
func (m *StatsReply) XXX_DiscardUnknown() {
xxx_messageInfo_StatsReply.DiscardUnknown(m)
}
var xxx_messageInfo_StatsReply proto.InternalMessageInfo
func (m *StatsReply) GetResponse() []*StatsResponse {
if m != nil {
return m.Response
}
return nil
}
// The response message containing the requested stat.
type Stat struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
MemoryUsage uint64 `protobuf:"varint,4,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
CpuUsage uint64 `protobuf:"varint,5,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"`
PodId string `protobuf:"bytes,6,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Stat) Reset() { *m = Stat{} }
func (m *Stat) String() string { return proto.CompactTextString(m) }
func (*Stat) ProtoMessage() {}
func (*Stat) Descriptor() ([]byte, []int) {
return fileDescriptor_b20a722d09fd3254, []int{14}
}
func (m *Stat) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Stat.Unmarshal(m, b)
}
func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Stat.Marshal(b, m, deterministic)
}
func (m *Stat) XXX_Merge(src proto.Message) {
xxx_messageInfo_Stat.Merge(m, src)
}
func (m *Stat) XXX_Size() int {
return xxx_messageInfo_Stat.Size(m)
}
func (m *Stat) XXX_DiscardUnknown() {
xxx_messageInfo_Stat.DiscardUnknown(m)
}
var xxx_messageInfo_Stat proto.InternalMessageInfo
func (m *Stat) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *Stat) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Stat) GetMemoryUsage() uint64 {
if m != nil {
return m.MemoryUsage
}
return 0
}
func (m *Stat) GetCpuUsage() uint64 {
if m != nil {
return m.CpuUsage
}
return 0
}
func (m *Stat) GetPodId() string {
if m != nil {
return m.PodId
}
return ""
}
func (m *Stat) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*ContainersRequest)(nil), "os.ContainersRequest")
proto.RegisterType((*Container)(nil), "os.Container")
proto.RegisterType((*ContainerResponse)(nil), "os.ContainerResponse")
proto.RegisterType((*ContainersReply)(nil), "os.ContainersReply")
proto.RegisterType((*ProcessesRequest)(nil), "os.ProcessesRequest")
proto.RegisterType((*ProcessesReply)(nil), "os.ProcessesReply")
proto.RegisterType((*ProcessResponse)(nil), "os.ProcessResponse")
proto.RegisterType((*Process)(nil), "os.Process")
proto.RegisterType((*RestartRequest)(nil), "os.RestartRequest")
proto.RegisterType((*RestartResponse)(nil), "os.RestartResponse")
proto.RegisterType((*RestartReply)(nil), "os.RestartReply")
proto.RegisterType((*StatsRequest)(nil), "os.StatsRequest")
proto.RegisterType((*StatsResponse)(nil), "os.StatsResponse")
proto.RegisterType((*StatsReply)(nil), "os.StatsReply")
proto.RegisterType((*Stat)(nil), "os.Stat")
}
func init() { proto.RegisterFile("os/os.proto", fileDescriptor_b20a722d09fd3254) }
var fileDescriptor_b20a722d09fd3254 = []byte{
// 785 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xdb, 0x38,
0x10, 0x86, 0x64, 0xcb, 0xb6, 0xc6, 0xf1, 0x4f, 0x98, 0x9f, 0xd5, 0x3a, 0x8b, 0xc0, 0x2b, 0x20,
0x58, 0xe7, 0x10, 0x6b, 0xd7, 0x7b, 0xd8, 0x05, 0x5a, 0xa0, 0x48, 0xe2, 0x1e, 0x7a, 0x48, 0x13,
0x28, 0xed, 0xa5, 0x40, 0x61, 0xd0, 0x16, 0xeb, 0x08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02, 0x6d, 0x6a, 0xec, 0xb5, 0x84, 0xd0, 0x01, 0xd8, 0xb2, 0x11,
0xb4, 0xdd, 0x52, 0x76, 0xd9, 0x19, 0xda, 0xf8, 0xf0, 0xa9, 0x39, 0xfa, 0x68, 0x82, 0x79, 0x79,
0x8d, 0xfe, 0x07, 0x58, 0x8d, 0x31, 0xb4, 0x3e, 0xaf, 0xf2, 0xe2, 0xf5, 0x76, 0x36, 0x61, 0x99,
0x91, 0x11, 0x58, 0xe3, 0x88, 0xf0, 0x39, 0xda, 0x1f, 0xea, 0xbf, 0xd7, 0x30, 0xff, 0x7b, 0x0d,
0x9f, 0xcb, 0xbf, 0x57, 0x6f, 0x3b, 0x2f, 0xc0, 0x58, 0x26, 0x5e, 0x9d, 0xf9, 0x0f, 0xec, 0x62,
0xb4, 0x7d, 0xf3, 0x1c, 0x2a, 0x0d, 0x99, 0xd5, 0x04, 0xac, 0x67, 0x5a, 0x43, 0x68, 0x4d, 0x78,
0xfa, 0x82, 0xdd, 0x35, 0x4c, 0x1e, 0x38, 0x06, 0x4b, 0xd5, 0x06, 0x75, 0x4b, 0x65, 0xd2, 0xce,
0xed, 0x12, 0xc2, 0x16, 0xcb, 0xb3, 0xa7, 0x72, 0xf0, 0x47, 0x12, 0xc4, 0x2c, 0x3c, 0xb3, 0x2e,
0xf9, 0x29, 0x0b, 0xaf, 0x8c, 0x37, 0x47, 0xf3, 0x50, 0xdc, 0xa4, 0x53, 0xf9, 0x08, 0x4f, 0xe0,
0x05, 0xe5, 0x27, 0x7c, 0xc9, 0x05, 0x89, 0xb8, 0xde, 0x79, 0x98, 0x85, 0x1e, 0xe5, 0xd3, 0x9a,
0xba, 0xfd, 0xbf, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x26, 0x06, 0x3b, 0x16, 0xd4, 0x07, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// OSClient is the client API for OS service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OSClient interface {
Containers(ctx context.Context, in *ContainersRequest, opts ...grpc.CallOption) (*ContainersReply, error)
Dmesg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.DataReply, error)
Processes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessesReply, error)
Restart(ctx context.Context, in *RestartRequest, opts ...grpc.CallOption) (*RestartReply, error)
Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error)
}
type oSClient struct {
cc *grpc.ClientConn
}
func NewOSClient(cc *grpc.ClientConn) OSClient {
return &oSClient{cc}
}
func (c *oSClient) Containers(ctx context.Context, in *ContainersRequest, opts ...grpc.CallOption) (*ContainersReply, error) {
out := new(ContainersReply)
err := c.cc.Invoke(ctx, "/os.OS/Containers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oSClient) Dmesg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.DataReply, error) {
out := new(common.DataReply)
err := c.cc.Invoke(ctx, "/os.OS/Dmesg", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oSClient) Processes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessesReply, error) {
out := new(ProcessesReply)
err := c.cc.Invoke(ctx, "/os.OS/Processes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oSClient) Restart(ctx context.Context, in *RestartRequest, opts ...grpc.CallOption) (*RestartReply, error) {
out := new(RestartReply)
err := c.cc.Invoke(ctx, "/os.OS/Restart", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oSClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error) {
out := new(StatsReply)
err := c.cc.Invoke(ctx, "/os.OS/Stats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OSServer is the server API for OS service.
type OSServer interface {
Containers(context.Context, *ContainersRequest) (*ContainersReply, error)
Dmesg(context.Context, *empty.Empty) (*common.DataReply, error)
Processes(context.Context, *empty.Empty) (*ProcessesReply, error)
Restart(context.Context, *RestartRequest) (*RestartReply, error)
Stats(context.Context, *StatsRequest) (*StatsReply, error)
}
func RegisterOSServer(s *grpc.Server, srv OSServer) {
s.RegisterService(&_OS_serviceDesc, srv)
}
func _OS_Containers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ContainersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OSServer).Containers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/os.OS/Containers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OSServer).Containers(ctx, req.(*ContainersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OS_Dmesg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OSServer).Dmesg(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/os.OS/Dmesg",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OSServer).Dmesg(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _OS_Processes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OSServer).Processes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/os.OS/Processes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OSServer).Processes(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _OS_Restart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RestartRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OSServer).Restart(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/os.OS/Restart",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OSServer).Restart(ctx, req.(*RestartRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OS_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OSServer).Stats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/os.OS/Stats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OSServer).Stats(ctx, req.(*StatsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _OS_serviceDesc = grpc.ServiceDesc{
ServiceName: "os.OS",
HandlerType: (*OSServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Containers",
Handler: _OS_Containers_Handler,
},
{
MethodName: "Dmesg",
Handler: _OS_Dmesg_Handler,
},
{
MethodName: "Processes",
Handler: _OS_Processes_Handler,
},
{
MethodName: "Restart",
Handler: _OS_Restart_Handler,
},
{
MethodName: "Stats",
Handler: _OS_Stats_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "os/os.proto",
}