mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 01:24:26 +01:00
proto: update agent protocol
To add GetOOMEvent API. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -245,6 +245,10 @@ func (p *gRPCProxy) MemHotplugByProbe(ctx context.Context, req *pb.MemHotplugByP
|
||||
return &gpb.Empty{}, nil
|
||||
}
|
||||
|
||||
func (p *gRPCProxy) GetOOMEvent(ctx context.Context, req *pb.GetOOMEventRequest) (*pb.OOMEvent, error) {
|
||||
return &pb.OOMEvent{}, nil
|
||||
}
|
||||
|
||||
func gRPCRegister(s *ttrpc.Server, srv interface{}) {
|
||||
switch g := srv.(type) {
|
||||
case *gRPCProxy:
|
||||
|
||||
Reference in New Issue
Block a user