Documentation ¶
Overview ¶
Package cache is a generated protocol buffer package.
It is generated from these files:
cache.proto
It has these top-level messages:
GrpcVMConfig GrpcVM GrpcStatus GrpcVMStatus
Index ¶
- Variables
- func RegisterCacheServiceServer(s *grpc.Server, srv CacheServiceServer)
- type CacheServiceClient
- type CacheServiceServer
- type GrpcStatus
- func (*GrpcStatus) Descriptor() ([]byte, []int)
- func (m *GrpcStatus) GetPid() int64
- func (m *GrpcStatus) GetVmstatus() []*GrpcVMStatus
- func (m *GrpcStatus) Marshal() (dAtA []byte, err error)
- func (m *GrpcStatus) MarshalTo(dAtA []byte) (int, error)
- func (*GrpcStatus) ProtoMessage()
- func (m *GrpcStatus) Reset()
- func (m *GrpcStatus) Size() (n int)
- func (m *GrpcStatus) String() string
- func (m *GrpcStatus) Unmarshal(dAtA []byte) error
- type GrpcVM
- func (*GrpcVM) Descriptor() ([]byte, []int)
- func (m *GrpcVM) GetCpu() uint32
- func (m *GrpcVM) GetCpuDelta() uint32
- func (m *GrpcVM) GetHypervisor() []byte
- func (m *GrpcVM) GetId() string
- func (m *GrpcVM) GetMemory() uint32
- func (m *GrpcVM) GetProxyPid() int64
- func (m *GrpcVM) GetProxyURL() string
- func (m *GrpcVM) Marshal() (dAtA []byte, err error)
- func (m *GrpcVM) MarshalTo(dAtA []byte) (int, error)
- func (*GrpcVM) ProtoMessage()
- func (m *GrpcVM) Reset()
- func (m *GrpcVM) Size() (n int)
- func (m *GrpcVM) String() string
- func (m *GrpcVM) Unmarshal(dAtA []byte) error
- type GrpcVMConfig
- func (*GrpcVMConfig) Descriptor() ([]byte, []int)
- func (m *GrpcVMConfig) GetAgentConfig() []byte
- func (m *GrpcVMConfig) GetData() []byte
- func (m *GrpcVMConfig) Marshal() (dAtA []byte, err error)
- func (m *GrpcVMConfig) MarshalTo(dAtA []byte) (int, error)
- func (*GrpcVMConfig) ProtoMessage()
- func (m *GrpcVMConfig) Reset()
- func (m *GrpcVMConfig) Size() (n int)
- func (m *GrpcVMConfig) String() string
- func (m *GrpcVMConfig) Unmarshal(dAtA []byte) error
- type GrpcVMStatus
- func (*GrpcVMStatus) Descriptor() ([]byte, []int)
- func (m *GrpcVMStatus) GetCpu() uint32
- func (m *GrpcVMStatus) GetMemory() uint32
- func (m *GrpcVMStatus) GetPid() int64
- func (m *GrpcVMStatus) Marshal() (dAtA []byte, err error)
- func (m *GrpcVMStatus) MarshalTo(dAtA []byte) (int, error)
- func (*GrpcVMStatus) ProtoMessage()
- func (m *GrpcVMStatus) Reset()
- func (m *GrpcVMStatus) Size() (n int)
- func (m *GrpcVMStatus) String() string
- func (m *GrpcVMStatus) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCache = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCache = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterCacheServiceServer ¶
func RegisterCacheServiceServer(s *grpc.Server, srv CacheServiceServer)
Types ¶
type CacheServiceClient ¶
type CacheServiceClient interface { Config(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*GrpcVMConfig, error) GetBaseVM(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*GrpcVM, error) Status(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*GrpcStatus, error) Quit(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*google_protobuf.Empty, error) }
func NewCacheServiceClient ¶
func NewCacheServiceClient(cc *grpc.ClientConn) CacheServiceClient
type CacheServiceServer ¶
type CacheServiceServer interface { Config(context.Context, *google_protobuf.Empty) (*GrpcVMConfig, error) GetBaseVM(context.Context, *google_protobuf.Empty) (*GrpcVM, error) Status(context.Context, *google_protobuf.Empty) (*GrpcStatus, error) Quit(context.Context, *google_protobuf.Empty) (*google_protobuf.Empty, error) }
type GrpcStatus ¶
type GrpcStatus struct { Pid int64 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Vmstatus []*GrpcVMStatus `protobuf:"bytes,2,rep,name=vmstatus" json:"vmstatus,omitempty"` }
func (*GrpcStatus) Descriptor ¶
func (*GrpcStatus) Descriptor() ([]byte, []int)
func (*GrpcStatus) GetPid ¶
func (m *GrpcStatus) GetPid() int64
func (*GrpcStatus) GetVmstatus ¶
func (m *GrpcStatus) GetVmstatus() []*GrpcVMStatus
func (*GrpcStatus) Marshal ¶
func (m *GrpcStatus) Marshal() (dAtA []byte, err error)
func (*GrpcStatus) ProtoMessage ¶
func (*GrpcStatus) ProtoMessage()
func (*GrpcStatus) Reset ¶
func (m *GrpcStatus) Reset()
func (*GrpcStatus) Size ¶
func (m *GrpcStatus) Size() (n int)
func (*GrpcStatus) String ¶
func (m *GrpcStatus) String() string
func (*GrpcStatus) Unmarshal ¶
func (m *GrpcStatus) Unmarshal(dAtA []byte) error
type GrpcVM ¶
type GrpcVM struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Hypervisor []byte `protobuf:"bytes,2,opt,name=hypervisor,proto3" json:"hypervisor,omitempty"` ProxyPid int64 `protobuf:"varint,3,opt,name=proxyPid,proto3" json:"proxyPid,omitempty"` ProxyURL string `protobuf:"bytes,4,opt,name=proxyURL,proto3" json:"proxyURL,omitempty"` Cpu uint32 `protobuf:"varint,5,opt,name=cpu,proto3" json:"cpu,omitempty"` Memory uint32 `protobuf:"varint,6,opt,name=memory,proto3" json:"memory,omitempty"` CpuDelta uint32 `protobuf:"varint,7,opt,name=cpuDelta,proto3" json:"cpuDelta,omitempty"` }
func (*GrpcVM) Descriptor ¶
func (*GrpcVM) GetCpuDelta ¶
func (*GrpcVM) GetHypervisor ¶
func (*GrpcVM) GetProxyPid ¶
func (*GrpcVM) GetProxyURL ¶
func (*GrpcVM) ProtoMessage ¶
func (*GrpcVM) ProtoMessage()
type GrpcVMConfig ¶
type GrpcVMConfig struct { Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` AgentConfig []byte `protobuf:"bytes,2,opt,name=AgentConfig,proto3" json:"AgentConfig,omitempty"` }
func (*GrpcVMConfig) Descriptor ¶
func (*GrpcVMConfig) Descriptor() ([]byte, []int)
func (*GrpcVMConfig) GetAgentConfig ¶
func (m *GrpcVMConfig) GetAgentConfig() []byte
func (*GrpcVMConfig) GetData ¶
func (m *GrpcVMConfig) GetData() []byte
func (*GrpcVMConfig) Marshal ¶
func (m *GrpcVMConfig) Marshal() (dAtA []byte, err error)
func (*GrpcVMConfig) ProtoMessage ¶
func (*GrpcVMConfig) ProtoMessage()
func (*GrpcVMConfig) Reset ¶
func (m *GrpcVMConfig) Reset()
func (*GrpcVMConfig) Size ¶
func (m *GrpcVMConfig) Size() (n int)
func (*GrpcVMConfig) String ¶
func (m *GrpcVMConfig) String() string
func (*GrpcVMConfig) Unmarshal ¶
func (m *GrpcVMConfig) Unmarshal(dAtA []byte) error
type GrpcVMStatus ¶
type GrpcVMStatus struct { Pid int64 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Cpu uint32 `protobuf:"varint,2,opt,name=cpu,proto3" json:"cpu,omitempty"` Memory uint32 `protobuf:"varint,3,opt,name=memory,proto3" json:"memory,omitempty"` }
func (*GrpcVMStatus) Descriptor ¶
func (*GrpcVMStatus) Descriptor() ([]byte, []int)
func (*GrpcVMStatus) GetCpu ¶
func (m *GrpcVMStatus) GetCpu() uint32
func (*GrpcVMStatus) GetMemory ¶
func (m *GrpcVMStatus) GetMemory() uint32
func (*GrpcVMStatus) GetPid ¶
func (m *GrpcVMStatus) GetPid() int64
func (*GrpcVMStatus) Marshal ¶
func (m *GrpcVMStatus) Marshal() (dAtA []byte, err error)
func (*GrpcVMStatus) ProtoMessage ¶
func (*GrpcVMStatus) ProtoMessage()
func (*GrpcVMStatus) Reset ¶
func (m *GrpcVMStatus) Reset()
func (*GrpcVMStatus) Size ¶
func (m *GrpcVMStatus) Size() (n int)
func (*GrpcVMStatus) String ¶
func (m *GrpcVMStatus) String() string
func (*GrpcVMStatus) Unmarshal ¶
func (m *GrpcVMStatus) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.