os

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOSServiceServer

func RegisterOSServiceServer(s *grpc.Server, srv OSServiceServer)

Types

type Container

type Container struct {
	Metadata             *common.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Containers           []*ContainerInfo `protobuf:"bytes,2,rep,name=containers,proto3" json:"containers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

The messages message containing the requested containers.

func (*Container) Descriptor

func (*Container) Descriptor() ([]byte, []int)

func (*Container) GetContainers

func (m *Container) GetContainers() []*ContainerInfo

func (*Container) GetMetadata

func (m *Container) GetMetadata() *common.Metadata

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) Reset

func (m *Container) Reset()

func (*Container) String

func (m *Container) String() string

func (*Container) XXX_DiscardUnknown

func (m *Container) XXX_DiscardUnknown()

func (*Container) XXX_Marshal

func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Container) XXX_Merge

func (m *Container) XXX_Merge(src proto.Message)

func (*Container) XXX_Size

func (m *Container) XXX_Size() int

func (*Container) XXX_Unmarshal

func (m *Container) XXX_Unmarshal(b []byte) error

type ContainerInfo

type ContainerInfo 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:"-"`
}

The messages message containing the requested containers.

func (*ContainerInfo) Descriptor

func (*ContainerInfo) Descriptor() ([]byte, []int)

func (*ContainerInfo) GetId

func (m *ContainerInfo) GetId() string

func (*ContainerInfo) GetImage

func (m *ContainerInfo) GetImage() string

func (*ContainerInfo) GetName

func (m *ContainerInfo) GetName() string

func (*ContainerInfo) GetNamespace

func (m *ContainerInfo) GetNamespace() string

func (*ContainerInfo) GetPid

func (m *ContainerInfo) GetPid() uint32

func (*ContainerInfo) GetPodId

func (m *ContainerInfo) GetPodId() string

func (*ContainerInfo) GetStatus

func (m *ContainerInfo) GetStatus() string

func (*ContainerInfo) ProtoMessage

func (*ContainerInfo) ProtoMessage()

func (*ContainerInfo) Reset

func (m *ContainerInfo) Reset()

func (*ContainerInfo) String

func (m *ContainerInfo) String() string

func (*ContainerInfo) XXX_DiscardUnknown

func (m *ContainerInfo) XXX_DiscardUnknown()

func (*ContainerInfo) XXX_Marshal

func (m *ContainerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerInfo) XXX_Merge

func (m *ContainerInfo) XXX_Merge(src proto.Message)

func (*ContainerInfo) XXX_Size

func (m *ContainerInfo) XXX_Size() int

func (*ContainerInfo) XXX_Unmarshal

func (m *ContainerInfo) XXX_Unmarshal(b []byte) error

type ContainersRequest

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 (*ContainersRequest) Descriptor

func (*ContainersRequest) Descriptor() ([]byte, []int)

func (*ContainersRequest) GetDriver

func (m *ContainersRequest) GetDriver() common.ContainerDriver

func (*ContainersRequest) GetNamespace

func (m *ContainersRequest) GetNamespace() string

func (*ContainersRequest) ProtoMessage

func (*ContainersRequest) ProtoMessage()

func (*ContainersRequest) Reset

func (m *ContainersRequest) Reset()

func (*ContainersRequest) String

func (m *ContainersRequest) String() string

func (*ContainersRequest) XXX_DiscardUnknown

func (m *ContainersRequest) XXX_DiscardUnknown()

func (*ContainersRequest) XXX_Marshal

func (m *ContainersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainersRequest) XXX_Merge

func (m *ContainersRequest) XXX_Merge(src proto.Message)

func (*ContainersRequest) XXX_Size

func (m *ContainersRequest) XXX_Size() int

func (*ContainersRequest) XXX_Unmarshal

func (m *ContainersRequest) XXX_Unmarshal(b []byte) error

type ContainersResponse

type ContainersResponse struct {
	Messages             []*Container `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ContainersResponse) Descriptor

func (*ContainersResponse) Descriptor() ([]byte, []int)

func (*ContainersResponse) GetMessages

func (m *ContainersResponse) GetMessages() []*Container

func (*ContainersResponse) ProtoMessage

func (*ContainersResponse) ProtoMessage()

func (*ContainersResponse) Reset

func (m *ContainersResponse) Reset()

func (*ContainersResponse) String

func (m *ContainersResponse) String() string

func (*ContainersResponse) XXX_DiscardUnknown

func (m *ContainersResponse) XXX_DiscardUnknown()

func (*ContainersResponse) XXX_Marshal

func (m *ContainersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainersResponse) XXX_Merge

func (m *ContainersResponse) XXX_Merge(src proto.Message)

func (*ContainersResponse) XXX_Size

func (m *ContainersResponse) XXX_Size() int

func (*ContainersResponse) XXX_Unmarshal

func (m *ContainersResponse) XXX_Unmarshal(b []byte) error

type DmesgRequest

type DmesgRequest struct {
	Follow               bool     `protobuf:"varint,1,opt,name=follow,proto3" json:"follow,omitempty"`
	Tail                 bool     `protobuf:"varint,2,opt,name=tail,proto3" json:"tail,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

dmesg

func (*DmesgRequest) Descriptor

func (*DmesgRequest) Descriptor() ([]byte, []int)

func (*DmesgRequest) GetFollow

func (m *DmesgRequest) GetFollow() bool

func (*DmesgRequest) GetTail

func (m *DmesgRequest) GetTail() bool

func (*DmesgRequest) ProtoMessage

func (*DmesgRequest) ProtoMessage()

func (*DmesgRequest) Reset

func (m *DmesgRequest) Reset()

func (*DmesgRequest) String

func (m *DmesgRequest) String() string

func (*DmesgRequest) XXX_DiscardUnknown

func (m *DmesgRequest) XXX_DiscardUnknown()

func (*DmesgRequest) XXX_Marshal

func (m *DmesgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DmesgRequest) XXX_Merge

func (m *DmesgRequest) XXX_Merge(src proto.Message)

func (*DmesgRequest) XXX_Size

func (m *DmesgRequest) XXX_Size() int

func (*DmesgRequest) XXX_Unmarshal

func (m *DmesgRequest) XXX_Unmarshal(b []byte) error

type MemInfo

type MemInfo struct {
	Memtotal             uint64   `protobuf:"varint,1,opt,name=memtotal,proto3" json:"memtotal,omitempty"`
	Memfree              uint64   `protobuf:"varint,2,opt,name=memfree,proto3" json:"memfree,omitempty"`
	Memavailable         uint64   `protobuf:"varint,3,opt,name=memavailable,proto3" json:"memavailable,omitempty"`
	Buffers              uint64   `protobuf:"varint,4,opt,name=buffers,proto3" json:"buffers,omitempty"`
	Cached               uint64   `protobuf:"varint,5,opt,name=cached,proto3" json:"cached,omitempty"`
	Swapcached           uint64   `protobuf:"varint,6,opt,name=swapcached,proto3" json:"swapcached,omitempty"`
	Active               uint64   `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"`
	Inactive             uint64   `protobuf:"varint,8,opt,name=inactive,proto3" json:"inactive,omitempty"`
	Activeanon           uint64   `protobuf:"varint,9,opt,name=activeanon,proto3" json:"activeanon,omitempty"`
	Inactiveanon         uint64   `protobuf:"varint,10,opt,name=inactiveanon,proto3" json:"inactiveanon,omitempty"`
	Activefile           uint64   `protobuf:"varint,11,opt,name=activefile,proto3" json:"activefile,omitempty"`
	Inactivefile         uint64   `protobuf:"varint,12,opt,name=inactivefile,proto3" json:"inactivefile,omitempty"`
	Unevictable          uint64   `protobuf:"varint,13,opt,name=unevictable,proto3" json:"unevictable,omitempty"`
	Mlocked              uint64   `protobuf:"varint,14,opt,name=mlocked,proto3" json:"mlocked,omitempty"`
	Swaptotal            uint64   `protobuf:"varint,15,opt,name=swaptotal,proto3" json:"swaptotal,omitempty"`
	Swapfree             uint64   `protobuf:"varint,16,opt,name=swapfree,proto3" json:"swapfree,omitempty"`
	Dirty                uint64   `protobuf:"varint,17,opt,name=dirty,proto3" json:"dirty,omitempty"`
	Writeback            uint64   `protobuf:"varint,18,opt,name=writeback,proto3" json:"writeback,omitempty"`
	Anonpages            uint64   `protobuf:"varint,19,opt,name=anonpages,proto3" json:"anonpages,omitempty"`
	Mapped               uint64   `protobuf:"varint,20,opt,name=mapped,proto3" json:"mapped,omitempty"`
	Shmem                uint64   `protobuf:"varint,21,opt,name=shmem,proto3" json:"shmem,omitempty"`
	Slab                 uint64   `protobuf:"varint,22,opt,name=slab,proto3" json:"slab,omitempty"`
	Sreclaimable         uint64   `protobuf:"varint,23,opt,name=sreclaimable,proto3" json:"sreclaimable,omitempty"`
	Sunreclaim           uint64   `protobuf:"varint,24,opt,name=sunreclaim,proto3" json:"sunreclaim,omitempty"`
	Kernelstack          uint64   `protobuf:"varint,25,opt,name=kernelstack,proto3" json:"kernelstack,omitempty"`
	Pagetables           uint64   `protobuf:"varint,26,opt,name=pagetables,proto3" json:"pagetables,omitempty"`
	Nfsunstable          uint64   `protobuf:"varint,27,opt,name=nfsunstable,proto3" json:"nfsunstable,omitempty"`
	Bounce               uint64   `protobuf:"varint,28,opt,name=bounce,proto3" json:"bounce,omitempty"`
	Writebacktmp         uint64   `protobuf:"varint,29,opt,name=writebacktmp,proto3" json:"writebacktmp,omitempty"`
	Commitlimit          uint64   `protobuf:"varint,30,opt,name=commitlimit,proto3" json:"commitlimit,omitempty"`
	Committedas          uint64   `protobuf:"varint,31,opt,name=committedas,proto3" json:"committedas,omitempty"`
	Vmalloctotal         uint64   `protobuf:"varint,32,opt,name=vmalloctotal,proto3" json:"vmalloctotal,omitempty"`
	Vmallocused          uint64   `protobuf:"varint,33,opt,name=vmallocused,proto3" json:"vmallocused,omitempty"`
	Vmallocchunk         uint64   `protobuf:"varint,34,opt,name=vmallocchunk,proto3" json:"vmallocchunk,omitempty"`
	Hardwarecorrupted    uint64   `protobuf:"varint,35,opt,name=hardwarecorrupted,proto3" json:"hardwarecorrupted,omitempty"`
	Anonhugepages        uint64   `protobuf:"varint,36,opt,name=anonhugepages,proto3" json:"anonhugepages,omitempty"`
	Shmemhugepages       uint64   `protobuf:"varint,37,opt,name=shmemhugepages,proto3" json:"shmemhugepages,omitempty"`
	Shmempmdmapped       uint64   `protobuf:"varint,38,opt,name=shmempmdmapped,proto3" json:"shmempmdmapped,omitempty"`
	Cmatotal             uint64   `protobuf:"varint,39,opt,name=cmatotal,proto3" json:"cmatotal,omitempty"`
	Cmafree              uint64   `protobuf:"varint,40,opt,name=cmafree,proto3" json:"cmafree,omitempty"`
	Hugepagestotal       uint64   `protobuf:"varint,41,opt,name=hugepagestotal,proto3" json:"hugepagestotal,omitempty"`
	Hugepagesfree        uint64   `protobuf:"varint,42,opt,name=hugepagesfree,proto3" json:"hugepagesfree,omitempty"`
	Hugepagesrsvd        uint64   `protobuf:"varint,43,opt,name=hugepagesrsvd,proto3" json:"hugepagesrsvd,omitempty"`
	Hugepagessurp        uint64   `protobuf:"varint,44,opt,name=hugepagessurp,proto3" json:"hugepagessurp,omitempty"`
	Hugepagesize         uint64   `protobuf:"varint,45,opt,name=hugepagesize,proto3" json:"hugepagesize,omitempty"`
	Directmap4K          uint64   `protobuf:"varint,46,opt,name=directmap4k,proto3" json:"directmap4k,omitempty"`
	Directmap2M          uint64   `protobuf:"varint,47,opt,name=directmap2m,proto3" json:"directmap2m,omitempty"`
	Directmap1G          uint64   `protobuf:"varint,48,opt,name=directmap1g,proto3" json:"directmap1g,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MemInfo) Descriptor

func (*MemInfo) Descriptor() ([]byte, []int)

func (*MemInfo) GetActive

func (m *MemInfo) GetActive() uint64

func (*MemInfo) GetActiveanon

func (m *MemInfo) GetActiveanon() uint64

func (*MemInfo) GetActivefile

func (m *MemInfo) GetActivefile() uint64

func (*MemInfo) GetAnonhugepages

func (m *MemInfo) GetAnonhugepages() uint64

func (*MemInfo) GetAnonpages

func (m *MemInfo) GetAnonpages() uint64

func (*MemInfo) GetBounce

func (m *MemInfo) GetBounce() uint64

func (*MemInfo) GetBuffers

func (m *MemInfo) GetBuffers() uint64

func (*MemInfo) GetCached

func (m *MemInfo) GetCached() uint64

func (*MemInfo) GetCmafree

func (m *MemInfo) GetCmafree() uint64

func (*MemInfo) GetCmatotal

func (m *MemInfo) GetCmatotal() uint64

func (*MemInfo) GetCommitlimit

func (m *MemInfo) GetCommitlimit() uint64

func (*MemInfo) GetCommittedas

func (m *MemInfo) GetCommittedas() uint64

func (*MemInfo) GetDirectmap1G

func (m *MemInfo) GetDirectmap1G() uint64

func (*MemInfo) GetDirectmap2M

func (m *MemInfo) GetDirectmap2M() uint64

func (*MemInfo) GetDirectmap4K

func (m *MemInfo) GetDirectmap4K() uint64

func (*MemInfo) GetDirty

func (m *MemInfo) GetDirty() uint64

func (*MemInfo) GetHardwarecorrupted

func (m *MemInfo) GetHardwarecorrupted() uint64

func (*MemInfo) GetHugepagesfree

func (m *MemInfo) GetHugepagesfree() uint64

func (*MemInfo) GetHugepagesize

func (m *MemInfo) GetHugepagesize() uint64

func (*MemInfo) GetHugepagesrsvd

func (m *MemInfo) GetHugepagesrsvd() uint64

func (*MemInfo) GetHugepagessurp

func (m *MemInfo) GetHugepagessurp() uint64

func (*MemInfo) GetHugepagestotal

func (m *MemInfo) GetHugepagestotal() uint64

func (*MemInfo) GetInactive

func (m *MemInfo) GetInactive() uint64

func (*MemInfo) GetInactiveanon

func (m *MemInfo) GetInactiveanon() uint64

func (*MemInfo) GetInactivefile

func (m *MemInfo) GetInactivefile() uint64

func (*MemInfo) GetKernelstack

func (m *MemInfo) GetKernelstack() uint64

func (*MemInfo) GetMapped

func (m *MemInfo) GetMapped() uint64

func (*MemInfo) GetMemavailable

func (m *MemInfo) GetMemavailable() uint64

func (*MemInfo) GetMemfree

func (m *MemInfo) GetMemfree() uint64

func (*MemInfo) GetMemtotal

func (m *MemInfo) GetMemtotal() uint64

func (*MemInfo) GetMlocked

func (m *MemInfo) GetMlocked() uint64

func (*MemInfo) GetNfsunstable

func (m *MemInfo) GetNfsunstable() uint64

func (*MemInfo) GetPagetables

func (m *MemInfo) GetPagetables() uint64

func (*MemInfo) GetShmem

func (m *MemInfo) GetShmem() uint64

func (*MemInfo) GetShmemhugepages

func (m *MemInfo) GetShmemhugepages() uint64

func (*MemInfo) GetShmempmdmapped

func (m *MemInfo) GetShmempmdmapped() uint64

func (*MemInfo) GetSlab

func (m *MemInfo) GetSlab() uint64

func (*MemInfo) GetSreclaimable

func (m *MemInfo) GetSreclaimable() uint64

func (*MemInfo) GetSunreclaim

func (m *MemInfo) GetSunreclaim() uint64

func (*MemInfo) GetSwapcached

func (m *MemInfo) GetSwapcached() uint64

func (*MemInfo) GetSwapfree

func (m *MemInfo) GetSwapfree() uint64

func (*MemInfo) GetSwaptotal

func (m *MemInfo) GetSwaptotal() uint64

func (*MemInfo) GetUnevictable

func (m *MemInfo) GetUnevictable() uint64

func (*MemInfo) GetVmallocchunk

func (m *MemInfo) GetVmallocchunk() uint64

func (*MemInfo) GetVmalloctotal

func (m *MemInfo) GetVmalloctotal() uint64

func (*MemInfo) GetVmallocused

func (m *MemInfo) GetVmallocused() uint64

func (*MemInfo) GetWriteback

func (m *MemInfo) GetWriteback() uint64

func (*MemInfo) GetWritebacktmp

func (m *MemInfo) GetWritebacktmp() uint64

func (*MemInfo) ProtoMessage

func (*MemInfo) ProtoMessage()

func (*MemInfo) Reset

func (m *MemInfo) Reset()

func (*MemInfo) String

func (m *MemInfo) String() string

func (*MemInfo) XXX_DiscardUnknown

func (m *MemInfo) XXX_DiscardUnknown()

func (*MemInfo) XXX_Marshal

func (m *MemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemInfo) XXX_Merge

func (m *MemInfo) XXX_Merge(src proto.Message)

func (*MemInfo) XXX_Size

func (m *MemInfo) XXX_Size() int

func (*MemInfo) XXX_Unmarshal

func (m *MemInfo) XXX_Unmarshal(b []byte) error

type Memory

type Memory struct {
	Metadata             *common.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Meminfo              *MemInfo         `protobuf:"bytes,2,opt,name=meminfo,proto3" json:"meminfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Memory) Descriptor

func (*Memory) Descriptor() ([]byte, []int)

func (*Memory) GetMeminfo

func (m *Memory) GetMeminfo() *MemInfo

func (*Memory) GetMetadata

func (m *Memory) GetMetadata() *common.Metadata

func (*Memory) ProtoMessage

func (*Memory) ProtoMessage()

func (*Memory) Reset

func (m *Memory) Reset()

func (*Memory) String

func (m *Memory) String() string

func (*Memory) XXX_DiscardUnknown

func (m *Memory) XXX_DiscardUnknown()

func (*Memory) XXX_Marshal

func (m *Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Memory) XXX_Merge

func (m *Memory) XXX_Merge(src proto.Message)

func (*Memory) XXX_Size

func (m *Memory) XXX_Size() int

func (*Memory) XXX_Unmarshal

func (m *Memory) XXX_Unmarshal(b []byte) error

type MemoryResponse

type MemoryResponse struct {
	Messages             []*Memory `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*MemoryResponse) Descriptor

func (*MemoryResponse) Descriptor() ([]byte, []int)

func (*MemoryResponse) GetMessages

func (m *MemoryResponse) GetMessages() []*Memory

func (*MemoryResponse) ProtoMessage

func (*MemoryResponse) ProtoMessage()

func (*MemoryResponse) Reset

func (m *MemoryResponse) Reset()

func (*MemoryResponse) String

func (m *MemoryResponse) String() string

func (*MemoryResponse) XXX_DiscardUnknown

func (m *MemoryResponse) XXX_DiscardUnknown()

func (*MemoryResponse) XXX_Marshal

func (m *MemoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemoryResponse) XXX_Merge

func (m *MemoryResponse) XXX_Merge(src proto.Message)

func (*MemoryResponse) XXX_Size

func (m *MemoryResponse) XXX_Size() int

func (*MemoryResponse) XXX_Unmarshal

func (m *MemoryResponse) XXX_Unmarshal(b []byte) error

type OSServiceClient

type OSServiceClient interface {
	Containers(ctx context.Context, in *ContainersRequest, opts ...grpc.CallOption) (*ContainersResponse, error)
	Dmesg(ctx context.Context, in *DmesgRequest, opts ...grpc.CallOption) (OSService_DmesgClient, error)
	Memory(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MemoryResponse, error)
	Processes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessesResponse, error)
	Restart(ctx context.Context, in *RestartRequest, opts ...grpc.CallOption) (*RestartResponse, error)
	Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error)
}

OSServiceClient is the client API for OSService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOSServiceClient

func NewOSServiceClient(cc *grpc.ClientConn) OSServiceClient

type OSServiceServer

OSServiceServer is the server API for OSService service.

type OSService_DmesgClient

type OSService_DmesgClient interface {
	Recv() (*common.Data, error)
	grpc.ClientStream
}

type OSService_DmesgServer

type OSService_DmesgServer interface {
	Send(*common.Data) error
	grpc.ServerStream
}

type Process

type Process struct {
	Metadata             *common.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Processes            []*ProcessInfo   `protobuf:"bytes,2,rep,name=processes,proto3" json:"processes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Process) Descriptor

func (*Process) Descriptor() ([]byte, []int)

func (*Process) GetMetadata

func (m *Process) GetMetadata() *common.Metadata

func (*Process) GetProcesses

func (m *Process) GetProcesses() []*ProcessInfo

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) Reset

func (m *Process) Reset()

func (*Process) String

func (m *Process) String() string

func (*Process) XXX_DiscardUnknown

func (m *Process) XXX_DiscardUnknown()

func (*Process) XXX_Marshal

func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Process) XXX_Merge

func (m *Process) XXX_Merge(src proto.Message)

func (*Process) XXX_Size

func (m *Process) XXX_Size() int

func (*Process) XXX_Unmarshal

func (m *Process) XXX_Unmarshal(b []byte) error

type ProcessInfo

type ProcessInfo 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 (*ProcessInfo) Descriptor

func (*ProcessInfo) Descriptor() ([]byte, []int)

func (*ProcessInfo) GetArgs

func (m *ProcessInfo) GetArgs() string

func (*ProcessInfo) GetCommand

func (m *ProcessInfo) GetCommand() string

func (*ProcessInfo) GetCpuTime

func (m *ProcessInfo) GetCpuTime() float64

func (*ProcessInfo) GetExecutable

func (m *ProcessInfo) GetExecutable() string

func (*ProcessInfo) GetPid

func (m *ProcessInfo) GetPid() int32

func (*ProcessInfo) GetPpid

func (m *ProcessInfo) GetPpid() int32

func (*ProcessInfo) GetResidentMemory

func (m *ProcessInfo) GetResidentMemory() uint64

func (*ProcessInfo) GetState

func (m *ProcessInfo) GetState() string

func (*ProcessInfo) GetThreads

func (m *ProcessInfo) GetThreads() int32

func (*ProcessInfo) GetVirtualMemory

func (m *ProcessInfo) GetVirtualMemory() uint64

func (*ProcessInfo) ProtoMessage

func (*ProcessInfo) ProtoMessage()

func (*ProcessInfo) Reset

func (m *ProcessInfo) Reset()

func (*ProcessInfo) String

func (m *ProcessInfo) String() string

func (*ProcessInfo) XXX_DiscardUnknown

func (m *ProcessInfo) XXX_DiscardUnknown()

func (*ProcessInfo) XXX_Marshal

func (m *ProcessInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProcessInfo) XXX_Merge

func (m *ProcessInfo) XXX_Merge(src proto.Message)

func (*ProcessInfo) XXX_Size

func (m *ProcessInfo) XXX_Size() int

func (*ProcessInfo) XXX_Unmarshal

func (m *ProcessInfo) XXX_Unmarshal(b []byte) error

type ProcessesRequest

type ProcessesRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

rpc processes

func (*ProcessesRequest) Descriptor

func (*ProcessesRequest) Descriptor() ([]byte, []int)

func (*ProcessesRequest) ProtoMessage

func (*ProcessesRequest) ProtoMessage()

func (*ProcessesRequest) Reset

func (m *ProcessesRequest) Reset()

func (*ProcessesRequest) String

func (m *ProcessesRequest) String() string

func (*ProcessesRequest) XXX_DiscardUnknown

func (m *ProcessesRequest) XXX_DiscardUnknown()

func (*ProcessesRequest) XXX_Marshal

func (m *ProcessesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProcessesRequest) XXX_Merge

func (m *ProcessesRequest) XXX_Merge(src proto.Message)

func (*ProcessesRequest) XXX_Size

func (m *ProcessesRequest) XXX_Size() int

func (*ProcessesRequest) XXX_Unmarshal

func (m *ProcessesRequest) XXX_Unmarshal(b []byte) error

type ProcessesResponse

type ProcessesResponse struct {
	Messages             []*Process `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*ProcessesResponse) Descriptor

func (*ProcessesResponse) Descriptor() ([]byte, []int)

func (*ProcessesResponse) GetMessages

func (m *ProcessesResponse) GetMessages() []*Process

func (*ProcessesResponse) ProtoMessage

func (*ProcessesResponse) ProtoMessage()

func (*ProcessesResponse) Reset

func (m *ProcessesResponse) Reset()

func (*ProcessesResponse) String

func (m *ProcessesResponse) String() string

func (*ProcessesResponse) XXX_DiscardUnknown

func (m *ProcessesResponse) XXX_DiscardUnknown()

func (*ProcessesResponse) XXX_Marshal

func (m *ProcessesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProcessesResponse) XXX_Merge

func (m *ProcessesResponse) XXX_Merge(src proto.Message)

func (*ProcessesResponse) XXX_Size

func (m *ProcessesResponse) XXX_Size() int

func (*ProcessesResponse) XXX_Unmarshal

func (m *ProcessesResponse) XXX_Unmarshal(b []byte) error

type Restart

type Restart struct {
	Metadata             *common.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Restart) Descriptor

func (*Restart) Descriptor() ([]byte, []int)

func (*Restart) GetMetadata

func (m *Restart) GetMetadata() *common.Metadata

func (*Restart) ProtoMessage

func (*Restart) ProtoMessage()

func (*Restart) Reset

func (m *Restart) Reset()

func (*Restart) String

func (m *Restart) String() string

func (*Restart) XXX_DiscardUnknown

func (m *Restart) XXX_DiscardUnknown()

func (*Restart) XXX_Marshal

func (m *Restart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Restart) XXX_Merge

func (m *Restart) XXX_Merge(src proto.Message)

func (*Restart) XXX_Size

func (m *Restart) XXX_Size() int

func (*Restart) XXX_Unmarshal

func (m *Restart) XXX_Unmarshal(b []byte) error

type RestartRequest

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:"-"`
}

rpc restart The request message containing the process to restart.

func (*RestartRequest) Descriptor

func (*RestartRequest) Descriptor() ([]byte, []int)

func (*RestartRequest) GetDriver

func (m *RestartRequest) GetDriver() common.ContainerDriver

func (*RestartRequest) GetId

func (m *RestartRequest) GetId() string

func (*RestartRequest) GetNamespace

func (m *RestartRequest) GetNamespace() string

func (*RestartRequest) ProtoMessage

func (*RestartRequest) ProtoMessage()

func (*RestartRequest) Reset

func (m *RestartRequest) Reset()

func (*RestartRequest) String

func (m *RestartRequest) String() string

func (*RestartRequest) XXX_DiscardUnknown

func (m *RestartRequest) XXX_DiscardUnknown()

func (*RestartRequest) XXX_Marshal

func (m *RestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestartRequest) XXX_Merge

func (m *RestartRequest) XXX_Merge(src proto.Message)

func (*RestartRequest) XXX_Size

func (m *RestartRequest) XXX_Size() int

func (*RestartRequest) XXX_Unmarshal

func (m *RestartRequest) XXX_Unmarshal(b []byte) error

type RestartResponse

type RestartResponse struct {
	Messages             []*Restart `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

The messages message containing the restart status.

func (*RestartResponse) Descriptor

func (*RestartResponse) Descriptor() ([]byte, []int)

func (*RestartResponse) GetMessages

func (m *RestartResponse) GetMessages() []*Restart

func (*RestartResponse) ProtoMessage

func (*RestartResponse) ProtoMessage()

func (*RestartResponse) Reset

func (m *RestartResponse) Reset()

func (*RestartResponse) String

func (m *RestartResponse) String() string

func (*RestartResponse) XXX_DiscardUnknown

func (m *RestartResponse) XXX_DiscardUnknown()

func (*RestartResponse) XXX_Marshal

func (m *RestartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestartResponse) XXX_Merge

func (m *RestartResponse) XXX_Merge(src proto.Message)

func (*RestartResponse) XXX_Size

func (m *RestartResponse) XXX_Size() int

func (*RestartResponse) XXX_Unmarshal

func (m *RestartResponse) XXX_Unmarshal(b []byte) error

type 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:"-"`
}

The messages message containing the requested stat.

func (*Stat) Descriptor

func (*Stat) Descriptor() ([]byte, []int)

func (*Stat) GetCpuUsage

func (m *Stat) GetCpuUsage() uint64

func (*Stat) GetId

func (m *Stat) GetId() string

func (*Stat) GetMemoryUsage

func (m *Stat) GetMemoryUsage() uint64

func (*Stat) GetName

func (m *Stat) GetName() string

func (*Stat) GetNamespace

func (m *Stat) GetNamespace() string

func (*Stat) GetPodId

func (m *Stat) GetPodId() string

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) Reset

func (m *Stat) Reset()

func (*Stat) String

func (m *Stat) String() string

func (*Stat) XXX_DiscardUnknown

func (m *Stat) XXX_DiscardUnknown()

func (*Stat) XXX_Marshal

func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stat) XXX_Merge

func (m *Stat) XXX_Merge(src proto.Message)

func (*Stat) XXX_Size

func (m *Stat) XXX_Size() int

func (*Stat) XXX_Unmarshal

func (m *Stat) XXX_Unmarshal(b []byte) error

type Stats

type Stats struct {
	Metadata             *common.Metadata `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:"-"`
}

The messages message containing the requested stats.

func (*Stats) Descriptor

func (*Stats) Descriptor() ([]byte, []int)

func (*Stats) GetMetadata

func (m *Stats) GetMetadata() *common.Metadata

func (*Stats) GetStats

func (m *Stats) GetStats() []*Stat

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) Reset

func (m *Stats) Reset()

func (*Stats) String

func (m *Stats) String() string

func (*Stats) XXX_DiscardUnknown

func (m *Stats) XXX_DiscardUnknown()

func (*Stats) XXX_Marshal

func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stats) XXX_Merge

func (m *Stats) XXX_Merge(src proto.Message)

func (*Stats) XXX_Size

func (m *Stats) XXX_Size() int

func (*Stats) XXX_Unmarshal

func (m *Stats) XXX_Unmarshal(b []byte) error

type StatsRequest

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:"-"`
}

The request message containing the containerd namespace.

func (*StatsRequest) Descriptor

func (*StatsRequest) Descriptor() ([]byte, []int)

func (*StatsRequest) GetDriver

func (m *StatsRequest) GetDriver() common.ContainerDriver

func (*StatsRequest) GetNamespace

func (m *StatsRequest) GetNamespace() string

func (*StatsRequest) ProtoMessage

func (*StatsRequest) ProtoMessage()

func (*StatsRequest) Reset

func (m *StatsRequest) Reset()

func (*StatsRequest) String

func (m *StatsRequest) String() string

func (*StatsRequest) XXX_DiscardUnknown

func (m *StatsRequest) XXX_DiscardUnknown()

func (*StatsRequest) XXX_Marshal

func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatsRequest) XXX_Merge

func (m *StatsRequest) XXX_Merge(src proto.Message)

func (*StatsRequest) XXX_Size

func (m *StatsRequest) XXX_Size() int

func (*StatsRequest) XXX_Unmarshal

func (m *StatsRequest) XXX_Unmarshal(b []byte) error

type StatsResponse

type StatsResponse struct {
	Messages             []*Stats `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatsResponse) Descriptor

func (*StatsResponse) Descriptor() ([]byte, []int)

func (*StatsResponse) GetMessages

func (m *StatsResponse) GetMessages() []*Stats

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) Reset

func (m *StatsResponse) Reset()

func (*StatsResponse) String

func (m *StatsResponse) String() string

func (*StatsResponse) XXX_DiscardUnknown

func (m *StatsResponse) XXX_DiscardUnknown()

func (*StatsResponse) XXX_Marshal

func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatsResponse) XXX_Merge

func (m *StatsResponse) XXX_Merge(src proto.Message)

func (*StatsResponse) XXX_Size

func (m *StatsResponse) XXX_Size() int

func (*StatsResponse) XXX_Unmarshal

func (m *StatsResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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