cache

package
v0.0.0-...-04f2983 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 48

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

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

func (m *GrpcStatus) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*GrpcVM) GetCpu

func (m *GrpcVM) GetCpu() uint32

func (*GrpcVM) GetCpuDelta

func (m *GrpcVM) GetCpuDelta() uint32

func (*GrpcVM) GetHypervisor

func (m *GrpcVM) GetHypervisor() []byte

func (*GrpcVM) GetId

func (m *GrpcVM) GetId() string

func (*GrpcVM) GetMemory

func (m *GrpcVM) GetMemory() uint32

func (*GrpcVM) GetProxyPid

func (m *GrpcVM) GetProxyPid() int64

func (*GrpcVM) GetProxyURL

func (m *GrpcVM) GetProxyURL() string

func (*GrpcVM) Marshal

func (m *GrpcVM) Marshal() (dAtA []byte, err error)

func (*GrpcVM) MarshalTo

func (m *GrpcVM) MarshalTo(dAtA []byte) (int, error)

func (*GrpcVM) ProtoMessage

func (*GrpcVM) ProtoMessage()

func (*GrpcVM) Reset

func (m *GrpcVM) Reset()

func (*GrpcVM) Size

func (m *GrpcVM) Size() (n int)

func (*GrpcVM) String

func (m *GrpcVM) String() string

func (*GrpcVM) Unmarshal

func (m *GrpcVM) Unmarshal(dAtA []byte) error

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

func (m *GrpcVMConfig) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GrpcVMStatus) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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