shim: Add PullImage support

Add a new PullImage endpoint to the shim API.
Add new PullImage functions to the virtcontainers files, which allows
the PullImage endpoint on the agent to be called.
Update the containerd vendor files to support new PullImage API changes.

Fixes #2651

Signed-off-by: Dave Hay <david_hay@uk.ibm.com>
Co-authored-by: ashleyrobertson <ashleyro@uk.ibm.com>
Co-authored-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
Dave Hay
2021-10-12 04:00:10 -07:00
committed by stevenhorsman
parent 18834810e6
commit 02f6db595c
18 changed files with 996 additions and 452 deletions

View File

@@ -326,6 +326,47 @@ func (m *ResizePtyRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_ResizePtyRequest proto.InternalMessageInfo
type PullImageRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
NewContainerID string `protobuf:"bytes,3,opt,name=new_container_id,json=newContainerId,proto3" json:"new_container_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PullImageRequest) Reset() { *m = PullImageRequest{} }
func (*PullImageRequest) ProtoMessage() {}
func (*PullImageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{7}
}
func (m *PullImageRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PullImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PullImageRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PullImageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PullImageRequest.Merge(m, src)
}
func (m *PullImageRequest) XXX_Size() int {
return m.Size()
}
func (m *PullImageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PullImageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PullImageRequest proto.InternalMessageInfo
type StateRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
@@ -337,7 +378,7 @@ type StateRequest struct {
func (m *StateRequest) Reset() { *m = StateRequest{} }
func (*StateRequest) ProtoMessage() {}
func (*StateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{7}
return fileDescriptor_9202ee34bc3ad8ca, []int{8}
}
func (m *StateRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -386,7 +427,7 @@ type StateResponse struct {
func (m *StateResponse) Reset() { *m = StateResponse{} }
func (*StateResponse) ProtoMessage() {}
func (*StateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{8}
return fileDescriptor_9202ee34bc3ad8ca, []int{9}
}
func (m *StateResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -428,7 +469,7 @@ type KillRequest struct {
func (m *KillRequest) Reset() { *m = KillRequest{} }
func (*KillRequest) ProtoMessage() {}
func (*KillRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{9}
return fileDescriptor_9202ee34bc3ad8ca, []int{10}
}
func (m *KillRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -469,7 +510,7 @@ type CloseIORequest struct {
func (m *CloseIORequest) Reset() { *m = CloseIORequest{} }
func (*CloseIORequest) ProtoMessage() {}
func (*CloseIORequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{10}
return fileDescriptor_9202ee34bc3ad8ca, []int{11}
}
func (m *CloseIORequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -508,7 +549,7 @@ type PidsRequest struct {
func (m *PidsRequest) Reset() { *m = PidsRequest{} }
func (*PidsRequest) ProtoMessage() {}
func (*PidsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{11}
return fileDescriptor_9202ee34bc3ad8ca, []int{12}
}
func (m *PidsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -547,7 +588,7 @@ type PidsResponse struct {
func (m *PidsResponse) Reset() { *m = PidsResponse{} }
func (*PidsResponse) ProtoMessage() {}
func (*PidsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{12}
return fileDescriptor_9202ee34bc3ad8ca, []int{13}
}
func (m *PidsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -588,7 +629,7 @@ type CheckpointTaskRequest struct {
func (m *CheckpointTaskRequest) Reset() { *m = CheckpointTaskRequest{} }
func (*CheckpointTaskRequest) ProtoMessage() {}
func (*CheckpointTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{13}
return fileDescriptor_9202ee34bc3ad8ca, []int{14}
}
func (m *CheckpointTaskRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -629,7 +670,7 @@ type UpdateTaskRequest struct {
func (m *UpdateTaskRequest) Reset() { *m = UpdateTaskRequest{} }
func (*UpdateTaskRequest) ProtoMessage() {}
func (*UpdateTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{14}
return fileDescriptor_9202ee34bc3ad8ca, []int{15}
}
func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -669,7 +710,7 @@ type StartRequest struct {
func (m *StartRequest) Reset() { *m = StartRequest{} }
func (*StartRequest) ProtoMessage() {}
func (*StartRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{15}
return fileDescriptor_9202ee34bc3ad8ca, []int{16}
}
func (m *StartRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -708,7 +749,7 @@ type StartResponse struct {
func (m *StartResponse) Reset() { *m = StartResponse{} }
func (*StartResponse) ProtoMessage() {}
func (*StartResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{16}
return fileDescriptor_9202ee34bc3ad8ca, []int{17}
}
func (m *StartResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -748,7 +789,7 @@ type WaitRequest struct {
func (m *WaitRequest) Reset() { *m = WaitRequest{} }
func (*WaitRequest) ProtoMessage() {}
func (*WaitRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{17}
return fileDescriptor_9202ee34bc3ad8ca, []int{18}
}
func (m *WaitRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -788,7 +829,7 @@ type WaitResponse struct {
func (m *WaitResponse) Reset() { *m = WaitResponse{} }
func (*WaitResponse) ProtoMessage() {}
func (*WaitResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{18}
return fileDescriptor_9202ee34bc3ad8ca, []int{19}
}
func (m *WaitResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -827,7 +868,7 @@ type StatsRequest struct {
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
func (*StatsRequest) ProtoMessage() {}
func (*StatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{19}
return fileDescriptor_9202ee34bc3ad8ca, []int{20}
}
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -866,7 +907,7 @@ type StatsResponse struct {
func (m *StatsResponse) Reset() { *m = StatsResponse{} }
func (*StatsResponse) ProtoMessage() {}
func (*StatsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{20}
return fileDescriptor_9202ee34bc3ad8ca, []int{21}
}
func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -905,7 +946,7 @@ type ConnectRequest struct {
func (m *ConnectRequest) Reset() { *m = ConnectRequest{} }
func (*ConnectRequest) ProtoMessage() {}
func (*ConnectRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{21}
return fileDescriptor_9202ee34bc3ad8ca, []int{22}
}
func (m *ConnectRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -946,7 +987,7 @@ type ConnectResponse struct {
func (m *ConnectResponse) Reset() { *m = ConnectResponse{} }
func (*ConnectResponse) ProtoMessage() {}
func (*ConnectResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{22}
return fileDescriptor_9202ee34bc3ad8ca, []int{23}
}
func (m *ConnectResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -986,7 +1027,7 @@ type ShutdownRequest struct {
func (m *ShutdownRequest) Reset() { *m = ShutdownRequest{} }
func (*ShutdownRequest) ProtoMessage() {}
func (*ShutdownRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{23}
return fileDescriptor_9202ee34bc3ad8ca, []int{24}
}
func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1025,7 +1066,7 @@ type PauseRequest struct {
func (m *PauseRequest) Reset() { *m = PauseRequest{} }
func (*PauseRequest) ProtoMessage() {}
func (*PauseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{24}
return fileDescriptor_9202ee34bc3ad8ca, []int{25}
}
func (m *PauseRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1064,7 +1105,7 @@ type ResumeRequest struct {
func (m *ResumeRequest) Reset() { *m = ResumeRequest{} }
func (*ResumeRequest) ProtoMessage() {}
func (*ResumeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9202ee34bc3ad8ca, []int{25}
return fileDescriptor_9202ee34bc3ad8ca, []int{26}
}
func (m *ResumeRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1101,6 +1142,7 @@ func init() {
proto.RegisterType((*ExecProcessRequest)(nil), "containerd.task.v2.ExecProcessRequest")
proto.RegisterType((*ExecProcessResponse)(nil), "containerd.task.v2.ExecProcessResponse")
proto.RegisterType((*ResizePtyRequest)(nil), "containerd.task.v2.ResizePtyRequest")
proto.RegisterType((*PullImageRequest)(nil), "containerd.task.v2.PullImageRequest")
proto.RegisterType((*StateRequest)(nil), "containerd.task.v2.StateRequest")
proto.RegisterType((*StateResponse)(nil), "containerd.task.v2.StateResponse")
proto.RegisterType((*KillRequest)(nil), "containerd.task.v2.KillRequest")
@@ -1128,89 +1170,93 @@ func init() {
}
var fileDescriptor_9202ee34bc3ad8ca = []byte{
// 1306 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4d, 0x6f, 0xdb, 0x46,
0x13, 0x0e, 0xf5, 0x41, 0x49, 0xa3, 0xc8, 0x71, 0xf6, 0x75, 0xf2, 0x32, 0x0a, 0x20, 0x29, 0x4c,
0x93, 0xaa, 0x2d, 0x40, 0xa1, 0x0a, 0x1a, 0x14, 0x31, 0x90, 0xc2, 0x76, 0xdc, 0x40, 0x4d, 0x5a,
0x1b, 0x4c, 0x8a, 0x04, 0xbd, 0x18, 0xb4, 0xb8, 0x91, 0x08, 0x4b, 0x5c, 0x96, 0xbb, 0x74, 0xa2,
0x02, 0x05, 0x7a, 0xea, 0xa1, 0xa7, 0xfe, 0xac, 0x1c, 0x0b, 0xf4, 0xd2, 0x4b, 0xd3, 0x46, 0xff,
0xa0, 0xc7, 0xde, 0x8a, 0xfd, 0x90, 0x45, 0x49, 0xa4, 0x14, 0x07, 0xba, 0x18, 0x3b, 0xdc, 0x67,
0x67, 0x67, 0x67, 0x9f, 0x79, 0x66, 0x65, 0xd8, 0xee, 0x79, 0xac, 0x1f, 0x1d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xa6,
0x0b, 0x03, 0x5d, 0x29, 0x0c, 0x53, 0x56, 0xdb, 0x50, 0x50, 0x02, 0x9b, 0x92, 0xa8, 0x19, 0x9d,
0xae, 0xde, 0x5c, 0x8a, 0x51, 0x3e, 0x1f, 0x42, 0x71, 0xa2, 0xa8, 0x28, 0x71, 0xc1, 0x9c, 0xde,
0xa6, 0x65, 0x6d, 0xf7, 0xe0, 0xf5, 0xdb, 0xda, 0x85, 0x3f, 0xde, 0xd6, 0x2e, 0xfc, 0x34, 0xae,
0x69, 0xaf, 0xc7, 0x35, 0xed, 0xb7, 0x71, 0x4d, 0xfb, 0x7b, 0x5c, 0xd3, 0xbe, 0xfb, 0xec, 0xbc,
0xff, 0x59, 0xd9, 0xe6, 0x7f, 0x9e, 0x67, 0x8e, 0x75, 0xb1, 0xc5, 0x9d, 0xff, 0x02, 0x00, 0x00,
0xff, 0xff, 0xd3, 0xbf, 0xc3, 0xa9, 0x9b, 0x11, 0x00, 0x00,
// 1365 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcd, 0x6f, 0x1b, 0x45,
0x14, 0xef, 0xfa, 0xdb, 0xcf, 0x75, 0xea, 0x0e, 0x69, 0xd9, 0xba, 0x92, 0xed, 0x6e, 0x69, 0x09,
0x20, 0xad, 0x85, 0x2b, 0x2a, 0xd4, 0xa0, 0xa2, 0x7c, 0x51, 0x99, 0x96, 0x26, 0xda, 0x16, 0xb5,
0xe2, 0x12, 0x6d, 0xbc, 0x53, 0x7b, 0x15, 0x7b, 0x67, 0xd9, 0x99, 0x4d, 0x1a, 0x24, 0x10, 0x27,
0xce, 0xfc, 0x59, 0x3d, 0x22, 0x21, 0x24, 0x2e, 0x04, 0xea, 0xff, 0x80, 0x23, 0x37, 0x34, 0x1f,
0xb6, 0xd7, 0xf6, 0xae, 0xdd, 0x56, 0xbe, 0x44, 0xf3, 0x76, 0x7e, 0xf3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xf5, 0x3f, 0xd1, 0xc1, 0x57, 0x90, 0xe1,
0xca, 0x85, 0x62, 0x39, 0x33, 0xdf, 0xf6, 0x27, 0xfa, 0x69, 0x43, 0x71, 0xdc, 0x2e, 0xa3, 0x0f,
0x12, 0x22, 0x34, 0xd5, 0x4d, 0x2f, 0x72, 0x35, 0x6e, 0x7d, 0xe3, 0x5d, 0xcd, 0x76, 0xc6, 0x89,
0xae, 0xf6, 0x20, 0xaf, 0xda, 0x11, 0x14, 0xcb, 0xb8, 0xe9, 0x5e, 0x25, 0xd1, 0xcd, 0x03, 0xc8,
0xc9, 0xda, 0x17, 0x9f, 0x81, 0x73, 0x75, 0x71, 0xc1, 0xd5, 0x32, 0xbc, 0x2a, 0xc4, 0x3f, 0x57,
0xa4, 0xf6, 0xc4, 0x53, 0x7a, 0xaa, 0xa0, 0x28, 0x8d, 0xa1, 0xc9, 0x1a, 0x43, 0x97, 0x6a, 0xcc,
0x24, 0x41, 0x2c, 0xc8, 0x2b, 0xad, 0x4e, 0x08, 0xd4, 0x94, 0xe4, 0x57, 0x6f, 0x2e, 0xc4, 0x28,
0x9f, 0x0f, 0xa0, 0x30, 0x12, 0x67, 0x14, 0xbb, 0x60, 0x46, 0xba, 0x93, 0xa2, 0xb6, 0xbd, 0xff,
0xea, 0x75, 0xed, 0xc2, 0x9f, 0xaf, 0x6b, 0x17, 0x7e, 0x1e, 0xd6, 0xb4, 0x57, 0xc3, 0x9a, 0xf6,
0xdb, 0xb0, 0xa6, 0xfd, 0x33, 0xac, 0x69, 0xdf, 0x7d, 0xf6, 0xb6, 0xff, 0x24, 0xda, 0xe4, 0x7f,
0x9e, 0xa7, 0x8e, 0x72, 0x62, 0x8b, 0x3b, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xba, 0x42,
0xb9, 0x66, 0x12, 0x00, 0x00,
}
func (m *CreateTaskRequest) Marshal() (dAtA []byte, err error) {
@@ -1605,6 +1651,54 @@ func (m *ResizePtyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
func (m *PullImageRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PullImageRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PullImageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.NewContainerID) > 0 {
i -= len(m.NewContainerID)
copy(dAtA[i:], m.NewContainerID)
i = encodeVarintShim(dAtA, i, uint64(len(m.NewContainerID)))
i--
dAtA[i] = 0x1a
}
if len(m.Image) > 0 {
i -= len(m.Image)
copy(dAtA[i:], m.Image)
i = encodeVarintShim(dAtA, i, uint64(len(m.Image)))
i--
dAtA[i] = 0x12
}
if len(m.ID) > 0 {
i -= len(m.ID)
copy(dAtA[i:], m.ID)
i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *StateRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -2661,6 +2755,30 @@ func (m *ResizePtyRequest) Size() (n int) {
return n
}
func (m *PullImageRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.ID)
if l > 0 {
n += 1 + l + sovShim(uint64(l))
}
l = len(m.Image)
if l > 0 {
n += 1 + l + sovShim(uint64(l))
}
l = len(m.NewContainerID)
if l > 0 {
n += 1 + l + sovShim(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *StateRequest) Size() (n int) {
if m == nil {
return 0
@@ -3167,6 +3285,19 @@ func (this *ResizePtyRequest) String() string {
}, "")
return s
}
func (this *PullImageRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&PullImageRequest{`,
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
`Image:` + fmt.Sprintf("%v", this.Image) + `,`,
`NewContainerID:` + fmt.Sprintf("%v", this.NewContainerID) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *StateRequest) String() string {
if this == nil {
return "nil"
@@ -3438,6 +3569,7 @@ type TaskService interface {
Kill(ctx context.Context, req *KillRequest) (*types1.Empty, error)
Exec(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error)
ResizePty(ctx context.Context, req *ResizePtyRequest) (*types1.Empty, error)
PullImage(ctx context.Context, req *PullImageRequest) (*types1.Empty, error)
CloseIO(ctx context.Context, req *CloseIORequest) (*types1.Empty, error)
Update(ctx context.Context, req *UpdateTaskRequest) (*types1.Empty, error)
Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error)
@@ -3525,6 +3657,13 @@ func RegisterTaskService(srv *github_com_containerd_ttrpc.Server, svc TaskServic
}
return svc.ResizePty(ctx, &req)
},
"PullImage": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req PullImageRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.PullImage(ctx, &req)
},
"CloseIO": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req CloseIORequest
if err := unmarshal(&req); err != nil {
@@ -3668,6 +3807,14 @@ func (c *taskClient) ResizePty(ctx context.Context, req *ResizePtyRequest) (*typ
return &resp, nil
}
func (c *taskClient) PullImage(ctx context.Context, req *PullImageRequest) (*types1.Empty, error) {
var resp types1.Empty
if err := c.client.Call(ctx, "containerd.task.v2.Task", "PullImage", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *taskClient) CloseIO(ctx context.Context, req *CloseIORequest) (*types1.Empty, error) {
var resp types1.Empty
if err := c.client.Call(ctx, "containerd.task.v2.Task", "CloseIO", req, &resp); err != nil {
@@ -4858,6 +5005,153 @@ func (m *ResizePtyRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *PullImageRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowShim
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: PullImageRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PullImageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowShim
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthShim
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthShim
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowShim
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthShim
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthShim
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Image = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field NewContainerID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowShim
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthShim
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthShim
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.NewContainerID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipShim(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthShim
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StateRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0

View File

@@ -43,6 +43,7 @@ service Task {
rpc Kill(KillRequest) returns (google.protobuf.Empty);
rpc Exec(ExecProcessRequest) returns (google.protobuf.Empty);
rpc ResizePty(ResizePtyRequest) returns (google.protobuf.Empty);
rpc PullImage(PullImageRequest) returns (google.protobuf.Empty);
rpc CloseIO(CloseIORequest) returns (google.protobuf.Empty);
rpc Update(UpdateTaskRequest) returns (google.protobuf.Empty);
rpc Wait(WaitRequest) returns (WaitResponse);
@@ -99,6 +100,12 @@ message ResizePtyRequest {
uint32 height = 4;
}
message PullImageRequest {
string id = 1; // Unique image identifier, used to avoid duplication when unpacking the image layers.
string image = 2; // Image name (e.g. docker.io/library/busybox:latest).
string new_container_id = 3; // The id of the container that will run from this image.
}
message StateRequest {
string id = 1;
string exec_id = 2;