Change ListProcesses to ListPids

These rpcs only return pids []uint32 so should be named that way in
order to have other rpcs that list Processes such as Exec'd processes.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-06-28 16:09:29 -07:00
parent 55861c1a00
commit e2d5522435
11 changed files with 415 additions and 369 deletions

View File

@ -26,8 +26,8 @@
CloseIORequest CloseIORequest
PauseTaskRequest PauseTaskRequest
ResumeTaskRequest ResumeTaskRequest
ListProcessesRequest ListPidsRequest
ListProcessesResponse ListPidsResponse
CheckpointTaskRequest CheckpointTaskRequest
CheckpointTaskResponse CheckpointTaskResponse
UpdateTaskRequest UpdateTaskRequest
@ -355,21 +355,21 @@ func (m *ResumeTaskRequest) Reset() { *m = ResumeTaskRequest{
func (*ResumeTaskRequest) ProtoMessage() {} func (*ResumeTaskRequest) ProtoMessage() {}
func (*ResumeTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorTasks, []int{16} } func (*ResumeTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorTasks, []int{16} }
type ListProcessesRequest struct { type ListPidsRequest struct {
ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
} }
func (m *ListProcessesRequest) Reset() { *m = ListProcessesRequest{} } func (m *ListPidsRequest) Reset() { *m = ListPidsRequest{} }
func (*ListProcessesRequest) ProtoMessage() {} func (*ListPidsRequest) ProtoMessage() {}
func (*ListProcessesRequest) Descriptor() ([]byte, []int) { return fileDescriptorTasks, []int{17} } func (*ListPidsRequest) Descriptor() ([]byte, []int) { return fileDescriptorTasks, []int{17} }
type ListProcessesResponse struct { type ListPidsResponse struct {
Processes []*containerd_v1_types.Process `protobuf:"bytes,1,rep,name=processes" json:"processes,omitempty"` Pids []uint32 `protobuf:"varint,1,rep,packed,name=pids" json:"pids,omitempty"`
} }
func (m *ListProcessesResponse) Reset() { *m = ListProcessesResponse{} } func (m *ListPidsResponse) Reset() { *m = ListPidsResponse{} }
func (*ListProcessesResponse) ProtoMessage() {} func (*ListPidsResponse) ProtoMessage() {}
func (*ListProcessesResponse) Descriptor() ([]byte, []int) { return fileDescriptorTasks, []int{18} } func (*ListPidsResponse) Descriptor() ([]byte, []int) { return fileDescriptorTasks, []int{18} }
type CheckpointTaskRequest struct { type CheckpointTaskRequest struct {
ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
@ -416,8 +416,8 @@ func init() {
proto.RegisterType((*CloseIORequest)(nil), "containerd.services.tasks.v1.CloseIORequest") proto.RegisterType((*CloseIORequest)(nil), "containerd.services.tasks.v1.CloseIORequest")
proto.RegisterType((*PauseTaskRequest)(nil), "containerd.services.tasks.v1.PauseTaskRequest") proto.RegisterType((*PauseTaskRequest)(nil), "containerd.services.tasks.v1.PauseTaskRequest")
proto.RegisterType((*ResumeTaskRequest)(nil), "containerd.services.tasks.v1.ResumeTaskRequest") proto.RegisterType((*ResumeTaskRequest)(nil), "containerd.services.tasks.v1.ResumeTaskRequest")
proto.RegisterType((*ListProcessesRequest)(nil), "containerd.services.tasks.v1.ListProcessesRequest") proto.RegisterType((*ListPidsRequest)(nil), "containerd.services.tasks.v1.ListPidsRequest")
proto.RegisterType((*ListProcessesResponse)(nil), "containerd.services.tasks.v1.ListProcessesResponse") proto.RegisterType((*ListPidsResponse)(nil), "containerd.services.tasks.v1.ListPidsResponse")
proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.services.tasks.v1.CheckpointTaskRequest") proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.services.tasks.v1.CheckpointTaskRequest")
proto.RegisterType((*CheckpointTaskResponse)(nil), "containerd.services.tasks.v1.CheckpointTaskResponse") proto.RegisterType((*CheckpointTaskResponse)(nil), "containerd.services.tasks.v1.CheckpointTaskResponse")
proto.RegisterType((*UpdateTaskRequest)(nil), "containerd.services.tasks.v1.UpdateTaskRequest") proto.RegisterType((*UpdateTaskRequest)(nil), "containerd.services.tasks.v1.UpdateTaskRequest")
@ -450,7 +450,7 @@ type TasksClient interface {
CloseIO(ctx context.Context, in *CloseIORequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) CloseIO(ctx context.Context, in *CloseIORequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
Pause(ctx context.Context, in *PauseTaskRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) Pause(ctx context.Context, in *PauseTaskRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
Resume(ctx context.Context, in *ResumeTaskRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) Resume(ctx context.Context, in *ResumeTaskRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc.CallOption) (*ListProcessesResponse, error) ListPids(ctx context.Context, in *ListPidsRequest, opts ...grpc.CallOption) (*ListPidsResponse, error)
Checkpoint(ctx context.Context, in *CheckpointTaskRequest, opts ...grpc.CallOption) (*CheckpointTaskResponse, error) Checkpoint(ctx context.Context, in *CheckpointTaskRequest, opts ...grpc.CallOption) (*CheckpointTaskResponse, error)
Update(ctx context.Context, in *UpdateTaskRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) Update(ctx context.Context, in *UpdateTaskRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
} }
@ -571,9 +571,9 @@ func (c *tasksClient) Resume(ctx context.Context, in *ResumeTaskRequest, opts ..
return out, nil return out, nil
} }
func (c *tasksClient) ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc.CallOption) (*ListProcessesResponse, error) { func (c *tasksClient) ListPids(ctx context.Context, in *ListPidsRequest, opts ...grpc.CallOption) (*ListPidsResponse, error) {
out := new(ListProcessesResponse) out := new(ListPidsResponse)
err := grpc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/ListProcesses", in, out, c.cc, opts...) err := grpc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/ListPids", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -617,7 +617,7 @@ type TasksServer interface {
CloseIO(context.Context, *CloseIORequest) (*google_protobuf.Empty, error) CloseIO(context.Context, *CloseIORequest) (*google_protobuf.Empty, error)
Pause(context.Context, *PauseTaskRequest) (*google_protobuf.Empty, error) Pause(context.Context, *PauseTaskRequest) (*google_protobuf.Empty, error)
Resume(context.Context, *ResumeTaskRequest) (*google_protobuf.Empty, error) Resume(context.Context, *ResumeTaskRequest) (*google_protobuf.Empty, error)
ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error) ListPids(context.Context, *ListPidsRequest) (*ListPidsResponse, error)
Checkpoint(context.Context, *CheckpointTaskRequest) (*CheckpointTaskResponse, error) Checkpoint(context.Context, *CheckpointTaskRequest) (*CheckpointTaskResponse, error)
Update(context.Context, *UpdateTaskRequest) (*google_protobuf.Empty, error) Update(context.Context, *UpdateTaskRequest) (*google_protobuf.Empty, error)
} }
@ -842,20 +842,20 @@ func _Tasks_Resume_Handler(srv interface{}, ctx context.Context, dec func(interf
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Tasks_ListProcesses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Tasks_ListPids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListProcessesRequest) in := new(ListPidsRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(TasksServer).ListProcesses(ctx, in) return srv.(TasksServer).ListPids(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/containerd.services.tasks.v1.Tasks/ListProcesses", FullMethod: "/containerd.services.tasks.v1.Tasks/ListPids",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TasksServer).ListProcesses(ctx, req.(*ListProcessesRequest)) return srv.(TasksServer).ListPids(ctx, req.(*ListPidsRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@ -949,8 +949,8 @@ var _Tasks_serviceDesc = grpc.ServiceDesc{
Handler: _Tasks_Resume_Handler, Handler: _Tasks_Resume_Handler,
}, },
{ {
MethodName: "ListProcesses", MethodName: "ListPids",
Handler: _Tasks_ListProcesses_Handler, Handler: _Tasks_ListPids_Handler,
}, },
{ {
MethodName: "Checkpoint", MethodName: "Checkpoint",
@ -1559,7 +1559,7 @@ func (m *ResumeTaskRequest) MarshalTo(dAtA []byte) (int, error) {
return i, nil return i, nil
} }
func (m *ListProcessesRequest) Marshal() (dAtA []byte, err error) { func (m *ListPidsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA) n, err := m.MarshalTo(dAtA)
@ -1569,7 +1569,7 @@ func (m *ListProcessesRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *ListProcessesRequest) MarshalTo(dAtA []byte) (int, error) { func (m *ListPidsRequest) MarshalTo(dAtA []byte) (int, error) {
var i int var i int
_ = i _ = i
var l int var l int
@ -1583,7 +1583,7 @@ func (m *ListProcessesRequest) MarshalTo(dAtA []byte) (int, error) {
return i, nil return i, nil
} }
func (m *ListProcessesResponse) Marshal() (dAtA []byte, err error) { func (m *ListPidsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA) n, err := m.MarshalTo(dAtA)
@ -1593,22 +1593,27 @@ func (m *ListProcessesResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *ListProcessesResponse) MarshalTo(dAtA []byte) (int, error) { func (m *ListPidsResponse) MarshalTo(dAtA []byte) (int, error) {
var i int var i int
_ = i _ = i
var l int var l int
_ = l _ = l
if len(m.Processes) > 0 { if len(m.Pids) > 0 {
for _, msg := range m.Processes { dAtA7 := make([]byte, len(m.Pids)*10)
dAtA[i] = 0xa var j6 int
i++ for _, num := range m.Pids {
i = encodeVarintTasks(dAtA, i, uint64(msg.Size())) for num >= 1<<7 {
n, err := msg.MarshalTo(dAtA[i:]) dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80)
if err != nil { num >>= 7
return 0, err j6++
} }
i += n dAtA7[j6] = uint8(num)
j6++
} }
dAtA[i] = 0xa
i++
i = encodeVarintTasks(dAtA, i, uint64(j6))
i += copy(dAtA[i:], dAtA7[:j6])
} }
return i, nil return i, nil
} }
@ -1715,11 +1720,11 @@ func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12 dAtA[i] = 0x12
i++ i++
i = encodeVarintTasks(dAtA, i, uint64(m.Resources.Size())) i = encodeVarintTasks(dAtA, i, uint64(m.Resources.Size()))
n6, err := m.Resources.MarshalTo(dAtA[i:]) n8, err := m.Resources.MarshalTo(dAtA[i:])
if err != nil { if err != nil {
return 0, err return 0, err
} }
i += n6 i += n8
} }
return i, nil return i, nil
} }
@ -2013,7 +2018,7 @@ func (m *ResumeTaskRequest) Size() (n int) {
return n return n
} }
func (m *ListProcessesRequest) Size() (n int) { func (m *ListPidsRequest) Size() (n int) {
var l int var l int
_ = l _ = l
l = len(m.ContainerID) l = len(m.ContainerID)
@ -2023,14 +2028,15 @@ func (m *ListProcessesRequest) Size() (n int) {
return n return n
} }
func (m *ListProcessesResponse) Size() (n int) { func (m *ListPidsResponse) Size() (n int) {
var l int var l int
_ = l _ = l
if len(m.Processes) > 0 { if len(m.Pids) > 0 {
for _, e := range m.Processes { l = 0
l = e.Size() for _, e := range m.Pids {
n += 1 + l + sovTasks(uint64(l)) l += sovTasks(uint64(e))
} }
n += 1 + sovTasks(uint64(l)) + l
} }
return n return n
} }
@ -2309,22 +2315,22 @@ func (this *ResumeTaskRequest) String() string {
}, "") }, "")
return s return s
} }
func (this *ListProcessesRequest) String() string { func (this *ListPidsRequest) String() string {
if this == nil { if this == nil {
return "nil" return "nil"
} }
s := strings.Join([]string{`&ListProcessesRequest{`, s := strings.Join([]string{`&ListPidsRequest{`,
`ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
} }
func (this *ListProcessesResponse) String() string { func (this *ListPidsResponse) String() string {
if this == nil { if this == nil {
return "nil" return "nil"
} }
s := strings.Join([]string{`&ListProcessesResponse{`, s := strings.Join([]string{`&ListPidsResponse{`,
`Processes:` + strings.Replace(fmt.Sprintf("%v", this.Processes), "Process", "containerd_v1_types.Process", 1) + `,`, `Pids:` + fmt.Sprintf("%v", this.Pids) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
@ -4292,7 +4298,7 @@ func (m *ResumeTaskRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { func (m *ListPidsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4315,10 +4321,10 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: ListProcessesRequest: wiretype end group for non-group") return fmt.Errorf("proto: ListPidsRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: ListProcessesRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: ListPidsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -4371,7 +4377,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { func (m *ListPidsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4394,43 +4400,74 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: ListProcessesResponse: wiretype end group for non-group") return fmt.Errorf("proto: ListPidsResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: ListProcessesResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: ListPidsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType == 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) var v uint32
} for shift := uint(0); ; shift += 7 {
var msglen int if shift >= 64 {
for shift := uint(0); ; shift += 7 { return ErrIntOverflowTasks
if shift >= 64 { }
return ErrIntOverflowTasks if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (uint32(b) & 0x7F) << shift
if b < 0x80 {
break
}
} }
if iNdEx >= l { m.Pids = append(m.Pids, v)
} else if wireType == 2 {
var packedLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTasks
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
packedLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if packedLen < 0 {
return ErrInvalidLengthTasks
}
postIndex := iNdEx + packedLen
if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
b := dAtA[iNdEx] for iNdEx < postIndex {
iNdEx++ var v uint32
msglen |= (int(b) & 0x7F) << shift for shift := uint(0); ; shift += 7 {
if b < 0x80 { if shift >= 64 {
break return ErrIntOverflowTasks
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (uint32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Pids = append(m.Pids, v)
} }
} else {
return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType)
} }
if msglen < 0 {
return ErrInvalidLengthTasks
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Processes = append(m.Processes, &containerd_v1_types.Process{})
if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipTasks(dAtA[iNdEx:]) skippy, err := skipTasks(dAtA[iNdEx:])
@ -4979,82 +5016,82 @@ func init() {
} }
var fileDescriptorTasks = []byte{ var fileDescriptorTasks = []byte{
// 1231 bytes of a gzipped FileDescriptorProto // 1228 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcd, 0x4f, 0xe3, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcf, 0x6f, 0x1b, 0xc5,
0x14, 0xc7, 0xf9, 0xda, 0xf0, 0x02, 0x2c, 0x4c, 0x59, 0x9a, 0x75, 0x51, 0x82, 0x7c, 0x69, 0xba, 0x17, 0xcf, 0xfa, 0x57, 0x9d, 0xe7, 0xa6, 0x4d, 0xe6, 0x9b, 0x6f, 0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 0x7a, 0x4c, 0x50, 0x11, 0x00, 0x00,
} }

View File

@ -41,7 +41,7 @@ service Tasks {
rpc Resume(ResumeTaskRequest) returns (google.protobuf.Empty); rpc Resume(ResumeTaskRequest) returns (google.protobuf.Empty);
rpc ListProcesses(ListProcessesRequest) returns (ListProcessesResponse); rpc ListPids(ListPidsRequest) returns (ListPidsResponse);
rpc Checkpoint(CheckpointTaskRequest) returns (CheckpointTaskResponse); rpc Checkpoint(CheckpointTaskRequest) returns (CheckpointTaskResponse);
@ -173,12 +173,12 @@ message ResumeTaskRequest {
string container_id = 1; string container_id = 1;
} }
message ListProcessesRequest { message ListPidsRequest {
string container_id = 1; string container_id = 1;
} }
message ListProcessesResponse{ message ListPidsResponse{
repeated containerd.v1.types.Process processes = 1; repeated uint32 pids = 1;
} }
message CheckpointTaskRequest { message CheckpointTaskRequest {

View File

@ -76,8 +76,8 @@ func (c *local) Kill(ctx context.Context, in *shimapi.KillRequest, opts ...grpc.
return c.s.Kill(ctx, in) return c.s.Kill(ctx, in)
} }
func (c *local) ListProcesses(ctx context.Context, in *shimapi.ListProcessesRequest, opts ...grpc.CallOption) (*shimapi.ListProcessesResponse, error) { func (c *local) ListPids(ctx context.Context, in *shimapi.ListPidsRequest, opts ...grpc.CallOption) (*shimapi.ListPidsResponse, error) {
return c.s.ListProcesses(ctx, in) return c.s.ListPids(ctx, in)
} }
func (c *local) CloseIO(ctx context.Context, in *shimapi.CloseIORequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { func (c *local) CloseIO(ctx context.Context, in *shimapi.CloseIORequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) {

View File

@ -321,21 +321,14 @@ func (s *Service) Kill(ctx context.Context, r *shimapi.KillRequest) (*google_pro
return empty, nil return empty, nil
} }
func (s *Service) ListProcesses(ctx context.Context, r *shimapi.ListProcessesRequest) (*shimapi.ListProcessesResponse, error) { func (s *Service) ListPids(ctx context.Context, r *shimapi.ListPidsRequest) (*shimapi.ListPidsResponse, error) {
pids, err := s.getContainerPids(ctx, r.ID) pids, err := s.getContainerPids(ctx, r.ID)
if err != nil { if err != nil {
return nil, err return nil, err
} }
ps := []*task.Process{} return &shimapi.ListPidsResponse{
for _, pid := range pids { Pids: pids,
ps = append(ps, &task.Process{ }, nil
Pid: pid,
})
}
resp := &shimapi.ListProcessesResponse{
Processes: ps,
}
return resp, nil
} }
func (s *Service) CloseIO(ctx context.Context, r *shimapi.CloseIORequest) (*google_protobuf.Empty, error) { func (s *Service) CloseIO(ctx context.Context, r *shimapi.CloseIORequest) (*google_protobuf.Empty, error) {

View File

@ -19,8 +19,8 @@
StateResponse StateResponse
KillRequest KillRequest
CloseIORequest CloseIORequest
ListProcessesRequest ListPidsRequest
ListProcessesResponse ListPidsResponse
CheckpointTaskRequest CheckpointTaskRequest
ShimInfoResponse ShimInfoResponse
StreamEventsRequest StreamEventsRequest
@ -174,21 +174,21 @@ func (m *CloseIORequest) Reset() { *m = CloseIORequest{} }
func (*CloseIORequest) ProtoMessage() {} func (*CloseIORequest) ProtoMessage() {}
func (*CloseIORequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{9} } func (*CloseIORequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{9} }
type ListProcessesRequest struct { type ListPidsRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (m *ListProcessesRequest) Reset() { *m = ListProcessesRequest{} } func (m *ListPidsRequest) Reset() { *m = ListPidsRequest{} }
func (*ListProcessesRequest) ProtoMessage() {} func (*ListPidsRequest) ProtoMessage() {}
func (*ListProcessesRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{10} } func (*ListPidsRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{10} }
type ListProcessesResponse struct { type ListPidsResponse struct {
Processes []*containerd_v1_types.Process `protobuf:"bytes,1,rep,name=processes" json:"processes,omitempty"` Pids []uint32 `protobuf:"varint,1,rep,packed,name=pids" json:"pids,omitempty"`
} }
func (m *ListProcessesResponse) Reset() { *m = ListProcessesResponse{} } func (m *ListPidsResponse) Reset() { *m = ListPidsResponse{} }
func (*ListProcessesResponse) ProtoMessage() {} func (*ListPidsResponse) ProtoMessage() {}
func (*ListProcessesResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{11} } func (*ListPidsResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{11} }
type CheckpointTaskRequest struct { type CheckpointTaskRequest struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
@ -233,8 +233,8 @@ func init() {
proto.RegisterType((*StateResponse)(nil), "containerd.runtime.linux.shim.v1.StateResponse") proto.RegisterType((*StateResponse)(nil), "containerd.runtime.linux.shim.v1.StateResponse")
proto.RegisterType((*KillRequest)(nil), "containerd.runtime.linux.shim.v1.KillRequest") proto.RegisterType((*KillRequest)(nil), "containerd.runtime.linux.shim.v1.KillRequest")
proto.RegisterType((*CloseIORequest)(nil), "containerd.runtime.linux.shim.v1.CloseIORequest") proto.RegisterType((*CloseIORequest)(nil), "containerd.runtime.linux.shim.v1.CloseIORequest")
proto.RegisterType((*ListProcessesRequest)(nil), "containerd.runtime.linux.shim.v1.ListProcessesRequest") proto.RegisterType((*ListPidsRequest)(nil), "containerd.runtime.linux.shim.v1.ListPidsRequest")
proto.RegisterType((*ListProcessesResponse)(nil), "containerd.runtime.linux.shim.v1.ListProcessesResponse") proto.RegisterType((*ListPidsResponse)(nil), "containerd.runtime.linux.shim.v1.ListPidsResponse")
proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.runtime.linux.shim.v1.CheckpointTaskRequest") proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.runtime.linux.shim.v1.CheckpointTaskRequest")
proto.RegisterType((*ShimInfoResponse)(nil), "containerd.runtime.linux.shim.v1.ShimInfoResponse") proto.RegisterType((*ShimInfoResponse)(nil), "containerd.runtime.linux.shim.v1.ShimInfoResponse")
proto.RegisterType((*StreamEventsRequest)(nil), "containerd.runtime.linux.shim.v1.StreamEventsRequest") proto.RegisterType((*StreamEventsRequest)(nil), "containerd.runtime.linux.shim.v1.StreamEventsRequest")
@ -258,7 +258,7 @@ type ShimClient interface {
Start(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) Start(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
Delete(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*DeleteResponse, error) Delete(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*DeleteResponse, error)
DeleteProcess(ctx context.Context, in *DeleteProcessRequest, opts ...grpc.CallOption) (*DeleteResponse, error) DeleteProcess(ctx context.Context, in *DeleteProcessRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc.CallOption) (*ListProcessesResponse, error) ListPids(ctx context.Context, in *ListPidsRequest, opts ...grpc.CallOption) (*ListPidsResponse, error)
Pause(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) Pause(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
Resume(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) Resume(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
Checkpoint(ctx context.Context, in *CheckpointTaskRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) Checkpoint(ctx context.Context, in *CheckpointTaskRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
@ -325,9 +325,9 @@ func (c *shimClient) DeleteProcess(ctx context.Context, in *DeleteProcessRequest
return out, nil return out, nil
} }
func (c *shimClient) ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc.CallOption) (*ListProcessesResponse, error) { func (c *shimClient) ListPids(ctx context.Context, in *ListPidsRequest, opts ...grpc.CallOption) (*ListPidsResponse, error) {
out := new(ListProcessesResponse) out := new(ListPidsResponse)
err := grpc.Invoke(ctx, "/containerd.runtime.linux.shim.v1.Shim/ListProcesses", in, out, c.cc, opts...) err := grpc.Invoke(ctx, "/containerd.runtime.linux.shim.v1.Shim/ListPids", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -456,7 +456,7 @@ type ShimServer interface {
Start(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error) Start(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error)
Delete(context.Context, *google_protobuf1.Empty) (*DeleteResponse, error) Delete(context.Context, *google_protobuf1.Empty) (*DeleteResponse, error)
DeleteProcess(context.Context, *DeleteProcessRequest) (*DeleteResponse, error) DeleteProcess(context.Context, *DeleteProcessRequest) (*DeleteResponse, error)
ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error) ListPids(context.Context, *ListPidsRequest) (*ListPidsResponse, error)
Pause(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error) Pause(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error)
Resume(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error) Resume(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error)
Checkpoint(context.Context, *CheckpointTaskRequest) (*google_protobuf1.Empty, error) Checkpoint(context.Context, *CheckpointTaskRequest) (*google_protobuf1.Empty, error)
@ -564,20 +564,20 @@ func _Shim_DeleteProcess_Handler(srv interface{}, ctx context.Context, dec func(
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Shim_ListProcesses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Shim_ListPids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListProcessesRequest) in := new(ListPidsRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(ShimServer).ListProcesses(ctx, in) return srv.(ShimServer).ListPids(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/containerd.runtime.linux.shim.v1.Shim/ListProcesses", FullMethod: "/containerd.runtime.linux.shim.v1.Shim/ListPids",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShimServer).ListProcesses(ctx, req.(*ListProcessesRequest)) return srv.(ShimServer).ListPids(ctx, req.(*ListPidsRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@ -790,8 +790,8 @@ var _Shim_serviceDesc = grpc.ServiceDesc{
Handler: _Shim_DeleteProcess_Handler, Handler: _Shim_DeleteProcess_Handler,
}, },
{ {
MethodName: "ListProcesses", MethodName: "ListPids",
Handler: _Shim_ListProcesses_Handler, Handler: _Shim_ListPids_Handler,
}, },
{ {
MethodName: "Pause", MethodName: "Pause",
@ -1273,7 +1273,7 @@ func (m *CloseIORequest) MarshalTo(dAtA []byte) (int, error) {
return i, nil return i, nil
} }
func (m *ListProcessesRequest) Marshal() (dAtA []byte, err error) { func (m *ListPidsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA) n, err := m.MarshalTo(dAtA)
@ -1283,7 +1283,7 @@ func (m *ListProcessesRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *ListProcessesRequest) MarshalTo(dAtA []byte) (int, error) { func (m *ListPidsRequest) MarshalTo(dAtA []byte) (int, error) {
var i int var i int
_ = i _ = i
var l int var l int
@ -1297,7 +1297,7 @@ func (m *ListProcessesRequest) MarshalTo(dAtA []byte) (int, error) {
return i, nil return i, nil
} }
func (m *ListProcessesResponse) Marshal() (dAtA []byte, err error) { func (m *ListPidsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA) n, err := m.MarshalTo(dAtA)
@ -1307,22 +1307,27 @@ func (m *ListProcessesResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *ListProcessesResponse) MarshalTo(dAtA []byte) (int, error) { func (m *ListPidsResponse) MarshalTo(dAtA []byte) (int, error) {
var i int var i int
_ = i _ = i
var l int var l int
_ = l _ = l
if len(m.Processes) > 0 { if len(m.Pids) > 0 {
for _, msg := range m.Processes { dAtA4 := make([]byte, len(m.Pids)*10)
dAtA[i] = 0xa var j3 int
i++ for _, num := range m.Pids {
i = encodeVarintShim(dAtA, i, uint64(msg.Size())) for num >= 1<<7 {
n, err := msg.MarshalTo(dAtA[i:]) dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
if err != nil { num >>= 7
return 0, err j3++
} }
i += n dAtA4[j3] = uint8(num)
j3++
} }
dAtA[i] = 0xa
i++
i = encodeVarintShim(dAtA, i, uint64(j3))
i += copy(dAtA[i:], dAtA4[:j3])
} }
return i, nil return i, nil
} }
@ -1428,11 +1433,11 @@ func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintShim(dAtA, i, uint64(m.Resources.Size())) i = encodeVarintShim(dAtA, i, uint64(m.Resources.Size()))
n3, err := m.Resources.MarshalTo(dAtA[i:]) n5, err := m.Resources.MarshalTo(dAtA[i:])
if err != nil { if err != nil {
return 0, err return 0, err
} }
i += n3 i += n5
} }
return i, nil return i, nil
} }
@ -1660,7 +1665,7 @@ func (m *CloseIORequest) Size() (n int) {
return n return n
} }
func (m *ListProcessesRequest) Size() (n int) { func (m *ListPidsRequest) Size() (n int) {
var l int var l int
_ = l _ = l
l = len(m.ID) l = len(m.ID)
@ -1670,14 +1675,15 @@ func (m *ListProcessesRequest) Size() (n int) {
return n return n
} }
func (m *ListProcessesResponse) Size() (n int) { func (m *ListPidsResponse) Size() (n int) {
var l int var l int
_ = l _ = l
if len(m.Processes) > 0 { if len(m.Pids) > 0 {
for _, e := range m.Processes { l = 0
l = e.Size() for _, e := range m.Pids {
n += 1 + l + sovShim(uint64(l)) l += sovShim(uint64(e))
} }
n += 1 + sovShim(uint64(l)) + l
} }
return n return n
} }
@ -1866,22 +1872,22 @@ func (this *CloseIORequest) String() string {
}, "") }, "")
return s return s
} }
func (this *ListProcessesRequest) String() string { func (this *ListPidsRequest) String() string {
if this == nil { if this == nil {
return "nil" return "nil"
} }
s := strings.Join([]string{`&ListProcessesRequest{`, s := strings.Join([]string{`&ListPidsRequest{`,
`ID:` + fmt.Sprintf("%v", this.ID) + `,`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
} }
func (this *ListProcessesResponse) String() string { func (this *ListPidsResponse) String() string {
if this == nil { if this == nil {
return "nil" return "nil"
} }
s := strings.Join([]string{`&ListProcessesResponse{`, s := strings.Join([]string{`&ListPidsResponse{`,
`Processes:` + strings.Replace(fmt.Sprintf("%v", this.Processes), "Process", "containerd_v1_types.Process", 1) + `,`, `Pids:` + fmt.Sprintf("%v", this.Pids) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
@ -3380,7 +3386,7 @@ func (m *CloseIORequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { func (m *ListPidsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -3403,10 +3409,10 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: ListProcessesRequest: wiretype end group for non-group") return fmt.Errorf("proto: ListPidsRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: ListProcessesRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: ListPidsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -3459,7 +3465,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { func (m *ListPidsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -3482,43 +3488,74 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: ListProcessesResponse: wiretype end group for non-group") return fmt.Errorf("proto: ListPidsResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: ListProcessesResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: ListPidsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType == 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) var v uint32
} for shift := uint(0); ; shift += 7 {
var msglen int if shift >= 64 {
for shift := uint(0); ; shift += 7 { return ErrIntOverflowShim
if shift >= 64 { }
return ErrIntOverflowShim if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (uint32(b) & 0x7F) << shift
if b < 0x80 {
break
}
} }
if iNdEx >= l { m.Pids = append(m.Pids, v)
} else if wireType == 2 {
var packedLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowShim
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
packedLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if packedLen < 0 {
return ErrInvalidLengthShim
}
postIndex := iNdEx + packedLen
if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
b := dAtA[iNdEx] for iNdEx < postIndex {
iNdEx++ var v uint32
msglen |= (int(b) & 0x7F) << shift for shift := uint(0); ; shift += 7 {
if b < 0x80 { if shift >= 64 {
break return ErrIntOverflowShim
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (uint32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Pids = append(m.Pids, v)
} }
} else {
return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType)
} }
if msglen < 0 {
return ErrInvalidLengthShim
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Processes = append(m.Processes, &containerd_v1_types.Process{})
if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipShim(dAtA[iNdEx:]) skippy, err := skipShim(dAtA[iNdEx:])
@ -4047,77 +4084,77 @@ func init() {
} }
var fileDescriptorShim = []byte{ var fileDescriptorShim = []byte{
// 1143 bytes of a gzipped FileDescriptorProto // 1148 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcd, 0x6e, 0xdb, 0xc6, 0x1f, 0x8b, 0x08, 0x00, 0x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0x50, 0xfe, 0xb9, 0x6e,
0x47, 0xfc, 0x94, 0x7f, 0x2f, 0x74, 0xa1, 0x7e, 0xfb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x28, 0xdf, 0x6c, 0xcd, 0xf7, 0x1f, 0xde, 0x67, 0xfc, 0xf7, 0x4c, 0x15, 0xe6, 0xb7, 0xfe, 0x0d,
0x29, 0xea, 0xb4, 0x61, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xcc, 0xc3, 0x0f, 0x1f, 0x0e, 0x00, 0x00,
} }

View File

@ -28,7 +28,7 @@ service Shim {
rpc DeleteProcess(DeleteProcessRequest) returns (DeleteResponse); rpc DeleteProcess(DeleteProcessRequest) returns (DeleteResponse);
rpc ListProcesses(ListProcessesRequest) returns (ListProcessesResponse); rpc ListPids(ListPidsRequest) returns (ListPidsResponse);
rpc Pause(google.protobuf.Empty) returns (google.protobuf.Empty); rpc Pause(google.protobuf.Empty) returns (google.protobuf.Empty);
@ -120,12 +120,12 @@ message CloseIORequest {
bool stdin = 2; bool stdin = 2;
} }
message ListProcessesRequest { message ListPidsRequest {
string id = 1; string id = 1;
} }
message ListProcessesResponse{ message ListPidsResponse{
repeated containerd.v1.types.Process processes = 1; repeated uint32 pids = 1;
} }
message CheckpointTaskRequest { message CheckpointTaskRequest {

View File

@ -127,21 +127,14 @@ func (t *Task) Exec(ctx context.Context, opts runtime.ExecOpts) (runtime.Process
}, nil }, nil
} }
func (t *Task) Processes(ctx context.Context) ([]uint32, error) { func (t *Task) Pids(ctx context.Context) ([]uint32, error) {
resp, err := t.shim.ListProcesses(ctx, &shim.ListProcessesRequest{ resp, err := t.shim.ListPids(ctx, &shim.ListPidsRequest{
ID: t.containerID, ID: t.containerID,
}) })
if err != nil { if err != nil {
return nil, errors.New(grpc.ErrorDesc(err)) return nil, errors.New(grpc.ErrorDesc(err))
} }
return resp.Pids, nil
pids := make([]uint32, 0, len(resp.Processes))
for _, ps := range resp.Processes {
pids = append(pids, ps.Pid)
}
return pids, nil
} }
func (t *Task) ResizePty(ctx context.Context, pid uint32, size runtime.ConsoleSize) error { func (t *Task) ResizePty(ctx context.Context, pid uint32, size runtime.ConsoleSize) error {

View File

@ -25,8 +25,8 @@ type Task interface {
Kill(context.Context, uint32, uint32, bool) error Kill(context.Context, uint32, uint32, bool) error
// Exec adds a process into the container // Exec adds a process into the container
Exec(context.Context, ExecOpts) (Process, error) Exec(context.Context, ExecOpts) (Process, error)
// Processes returns all pids for the container // Pids returns all pids for the task
Processes(context.Context) ([]uint32, error) Pids(context.Context) ([]uint32, error)
// Pty resizes the processes pty/console // Pty resizes the processes pty/console
ResizePty(context.Context, uint32, ConsoleSize) error ResizePty(context.Context, uint32, ConsoleSize) error
// CloseStdin closes the processes stdin // CloseStdin closes the processes stdin

View File

@ -340,25 +340,17 @@ func (s *Service) Kill(ctx context.Context, r *api.KillRequest) (*google_protobu
return empty, nil return empty, nil
} }
func (s *Service) ListProcesses(ctx context.Context, r *api.ListProcessesRequest) (*api.ListProcessesResponse, error) { func (s *Service) ListPids(ctx context.Context, r *api.ListPidsRequest) (*api.ListPidsResponse, error) {
t, err := s.getTask(ctx, r.ContainerID) t, err := s.getTask(ctx, r.ContainerID)
if err != nil { if err != nil {
return nil, err return nil, err
} }
pids, err := t.Pids(ctx)
pids, err := t.Processes(ctx)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return &api.ListPidsResponse{
ps := []*task.Process{} Pids: pids,
for _, pid := range pids {
ps = append(ps, &task.Process{
Pid: pid,
})
}
return &api.ListProcessesResponse{
Processes: ps,
}, nil }, nil
} }

View File

@ -213,17 +213,13 @@ func (t *task) Exec(ctx context.Context, spec *specs.Process, ioCreate IOCreatio
} }
func (t *task) Processes(ctx context.Context) ([]uint32, error) { func (t *task) Processes(ctx context.Context) ([]uint32, error) {
response, err := t.client.TaskService().ListProcesses(ctx, &tasks.ListProcessesRequest{ response, err := t.client.TaskService().ListPids(ctx, &tasks.ListPidsRequest{
ContainerID: t.containerID, ContainerID: t.containerID,
}) })
if err != nil { if err != nil {
return nil, err return nil, err
} }
var out []uint32 return response.Pids, nil
for _, p := range response.Processes {
out = append(out, p.Pid)
}
return out, nil
} }
func (t *task) CloseIO(ctx context.Context, opts ...IOCloserOpts) error { func (t *task) CloseIO(ctx context.Context, opts ...IOCloserOpts) error {

View File

@ -175,17 +175,15 @@ func (c *container) Pid() uint32 {
return c.ctr.Pid() return c.ctr.Pid()
} }
func (c *container) Processes(ctx context.Context) ([]uint32, error) { func (c *container) Pids(ctx context.Context) ([]uint32, error) {
pl, err := c.ctr.ProcessList() pl, err := c.ctr.ProcessList()
if err != nil { if err != nil {
return nil, err return nil, err
} }
pids := make([]uint32, 0, len(pl)) pids := make([]uint32, 0, len(pl))
for _, p := range pl { for _, p := range pl {
pids = append(pids, p.ProcessId) pids = append(pids, p.ProcessId)
} }
return pids, nil return pids, nil
} }