Only use IDs for execution RPC requests

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-12-09 11:32:45 -08:00
parent cc720bc460
commit 2bee4ac5cd
4 changed files with 232 additions and 304 deletions

View file

@ -145,7 +145,7 @@ func (*ListContainersResponse) ProtoMessage() {}
func (*ListContainersResponse) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{5} } func (*ListContainersResponse) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{5} }
type StartProcessRequest struct { type StartProcessRequest 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"`
Process *Process `protobuf:"bytes,2,opt,name=process" json:"process,omitempty"` Process *Process `protobuf:"bytes,2,opt,name=process" json:"process,omitempty"`
Console bool `protobuf:"varint,3,opt,name=console,proto3" json:"console,omitempty"` Console bool `protobuf:"varint,3,opt,name=console,proto3" json:"console,omitempty"`
Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"`
@ -217,8 +217,8 @@ func (*GetContainerResponse) ProtoMessage() {}
func (*GetContainerResponse) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{12} } func (*GetContainerResponse) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{12} }
type UpdateContainerRequest struct { type UpdateContainerRequest struct {
Container *Container `protobuf:"bytes,1,opt,name=container" json:"container,omitempty"` ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
BundlePath string `protobuf:"bytes,2,opt,name=bundle_path,json=bundlePath,proto3" json:"bundle_path,omitempty"` BundlePath string `protobuf:"bytes,2,opt,name=bundle_path,json=bundlePath,proto3" json:"bundle_path,omitempty"`
} }
func (m *UpdateContainerRequest) Reset() { *m = UpdateContainerRequest{} } func (m *UpdateContainerRequest) Reset() { *m = UpdateContainerRequest{} }
@ -242,8 +242,8 @@ func (*ResumeContainerRequest) ProtoMessage() {}
func (*ResumeContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{15} } func (*ResumeContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{15} }
type GetProcessRequest struct { type GetProcessRequest struct {
Container *Container `protobuf:"bytes,1,opt,name=container" json:"container,omitempty"` ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"` ProcessID string `protobuf:"bytes,2,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
} }
func (m *GetProcessRequest) Reset() { *m = GetProcessRequest{} } func (m *GetProcessRequest) Reset() { *m = GetProcessRequest{} }
@ -259,9 +259,9 @@ func (*GetProcessResponse) ProtoMessage() {}
func (*GetProcessResponse) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{17} } func (*GetProcessResponse) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{17} }
type SignalProcessRequest struct { type SignalProcessRequest struct {
Container *Container `protobuf:"bytes,1,opt,name=container" json:"container,omitempty"` ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
Process *Process `protobuf:"bytes,2,opt,name=process" json:"process,omitempty"` ProcessID string `protobuf:"bytes,2,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"`
} }
func (m *SignalProcessRequest) Reset() { *m = SignalProcessRequest{} } func (m *SignalProcessRequest) Reset() { *m = SignalProcessRequest{} }
@ -269,8 +269,8 @@ func (*SignalProcessRequest) ProtoMessage() {}
func (*SignalProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{18} } func (*SignalProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{18} }
type DeleteProcessRequest struct { type DeleteProcessRequest struct {
Container *Container `protobuf:"bytes,1,opt,name=container" json:"container,omitempty"` ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
Process *Process `protobuf:"bytes,2,opt,name=process" json:"process,omitempty"` ProcessID string `protobuf:"bytes,2,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
} }
func (m *DeleteProcessRequest) Reset() { *m = DeleteProcessRequest{} } func (m *DeleteProcessRequest) Reset() { *m = DeleteProcessRequest{} }
@ -278,7 +278,7 @@ func (*DeleteProcessRequest) ProtoMessage() {}
func (*DeleteProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{19} } func (*DeleteProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorExecution, []int{19} }
type ListProcessesRequest struct { type ListProcessesRequest struct {
Container *Container `protobuf:"bytes,1,opt,name=container" json:"container,omitempty"` ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (m *ListProcessesRequest) Reset() { *m = ListProcessesRequest{} } func (m *ListProcessesRequest) Reset() { *m = ListProcessesRequest{} }
@ -393,7 +393,7 @@ func (this *StartProcessRequest) GoString() string {
} }
s := make([]string, 0, 10) s := make([]string, 0, 10)
s = append(s, "&execution.StartProcessRequest{") s = append(s, "&execution.StartProcessRequest{")
s = append(s, "ContainerId: "+fmt.Sprintf("%#v", this.ContainerId)+",\n") s = append(s, "ContainerID: "+fmt.Sprintf("%#v", this.ContainerID)+",\n")
if this.Process != nil { if this.Process != nil {
s = append(s, "Process: "+fmt.Sprintf("%#v", this.Process)+",\n") s = append(s, "Process: "+fmt.Sprintf("%#v", this.Process)+",\n")
} }
@ -487,9 +487,7 @@ func (this *UpdateContainerRequest) GoString() string {
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&execution.UpdateContainerRequest{") s = append(s, "&execution.UpdateContainerRequest{")
if this.Container != nil { s = append(s, "ContainerID: "+fmt.Sprintf("%#v", this.ContainerID)+",\n")
s = append(s, "Container: "+fmt.Sprintf("%#v", this.Container)+",\n")
}
s = append(s, "BundlePath: "+fmt.Sprintf("%#v", this.BundlePath)+",\n") s = append(s, "BundlePath: "+fmt.Sprintf("%#v", this.BundlePath)+",\n")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
@ -520,10 +518,8 @@ func (this *GetProcessRequest) GoString() string {
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&execution.GetProcessRequest{") s = append(s, "&execution.GetProcessRequest{")
if this.Container != nil { s = append(s, "ContainerID: "+fmt.Sprintf("%#v", this.ContainerID)+",\n")
s = append(s, "Container: "+fmt.Sprintf("%#v", this.Container)+",\n") s = append(s, "ProcessID: "+fmt.Sprintf("%#v", this.ProcessID)+",\n")
}
s = append(s, "ProcessId: "+fmt.Sprintf("%#v", this.ProcessId)+",\n")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -545,12 +541,8 @@ func (this *SignalProcessRequest) GoString() string {
} }
s := make([]string, 0, 7) s := make([]string, 0, 7)
s = append(s, "&execution.SignalProcessRequest{") s = append(s, "&execution.SignalProcessRequest{")
if this.Container != nil { s = append(s, "ContainerID: "+fmt.Sprintf("%#v", this.ContainerID)+",\n")
s = append(s, "Container: "+fmt.Sprintf("%#v", this.Container)+",\n") s = append(s, "ProcessID: "+fmt.Sprintf("%#v", this.ProcessID)+",\n")
}
if this.Process != nil {
s = append(s, "Process: "+fmt.Sprintf("%#v", this.Process)+",\n")
}
s = append(s, "Signal: "+fmt.Sprintf("%#v", this.Signal)+",\n") s = append(s, "Signal: "+fmt.Sprintf("%#v", this.Signal)+",\n")
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
@ -561,12 +553,8 @@ func (this *DeleteProcessRequest) GoString() string {
} }
s := make([]string, 0, 6) s := make([]string, 0, 6)
s = append(s, "&execution.DeleteProcessRequest{") s = append(s, "&execution.DeleteProcessRequest{")
if this.Container != nil { s = append(s, "ContainerID: "+fmt.Sprintf("%#v", this.ContainerID)+",\n")
s = append(s, "Container: "+fmt.Sprintf("%#v", this.Container)+",\n") s = append(s, "ProcessID: "+fmt.Sprintf("%#v", this.ProcessID)+",\n")
}
if this.Process != nil {
s = append(s, "Process: "+fmt.Sprintf("%#v", this.Process)+",\n")
}
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -576,9 +564,7 @@ func (this *ListProcessesRequest) GoString() string {
} }
s := make([]string, 0, 5) s := make([]string, 0, 5)
s = append(s, "&execution.ListProcessesRequest{") s = append(s, "&execution.ListProcessesRequest{")
if this.Container != nil { s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
s = append(s, "Container: "+fmt.Sprintf("%#v", this.Container)+",\n")
}
s = append(s, "}") s = append(s, "}")
return strings.Join(s, "") return strings.Join(s, "")
} }
@ -1301,11 +1287,11 @@ func (m *StartProcessRequest) MarshalTo(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if len(m.ContainerId) > 0 { if len(m.ContainerID) > 0 {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(len(m.ContainerId))) i = encodeVarintExecution(dAtA, i, uint64(len(m.ContainerID)))
i += copy(dAtA[i:], m.ContainerId) i += copy(dAtA[i:], m.ContainerID)
} }
if m.Process != nil { if m.Process != nil {
dAtA[i] = 0x12 dAtA[i] = 0x12
@ -1613,15 +1599,11 @@ func (m *UpdateContainerRequest) MarshalTo(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.Container != nil { if len(m.ContainerID) > 0 {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Container.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ContainerID)))
n8, err := m.Container.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ContainerID)
if err != nil {
return 0, err
}
i += n8
} }
if len(m.BundlePath) > 0 { if len(m.BundlePath) > 0 {
dAtA[i] = 0x12 dAtA[i] = 0x12
@ -1695,21 +1677,17 @@ func (m *GetProcessRequest) MarshalTo(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.Container != nil { if len(m.ContainerID) > 0 {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Container.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ContainerID)))
n9, err := m.Container.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ContainerID)
if err != nil {
return 0, err
}
i += n9
} }
if len(m.ProcessId) > 0 { if len(m.ProcessID) > 0 {
dAtA[i] = 0x12 dAtA[i] = 0x12
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(len(m.ProcessId))) i = encodeVarintExecution(dAtA, i, uint64(len(m.ProcessID)))
i += copy(dAtA[i:], m.ProcessId) i += copy(dAtA[i:], m.ProcessID)
} }
return i, nil return i, nil
} }
@ -1733,11 +1711,11 @@ func (m *GetProcessResponse) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Process.Size())) i = encodeVarintExecution(dAtA, i, uint64(m.Process.Size()))
n10, err := m.Process.MarshalTo(dAtA[i:]) n8, err := m.Process.MarshalTo(dAtA[i:])
if err != nil { if err != nil {
return 0, err return 0, err
} }
i += n10 i += n8
} }
return i, nil return i, nil
} }
@ -1757,25 +1735,17 @@ func (m *SignalProcessRequest) MarshalTo(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.Container != nil { if len(m.ContainerID) > 0 {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Container.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ContainerID)))
n11, err := m.Container.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ContainerID)
if err != nil {
return 0, err
}
i += n11
} }
if m.Process != nil { if len(m.ProcessID) > 0 {
dAtA[i] = 0x12 dAtA[i] = 0x12
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Process.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ProcessID)))
n12, err := m.Process.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ProcessID)
if err != nil {
return 0, err
}
i += n12
} }
if m.Signal != 0 { if m.Signal != 0 {
dAtA[i] = 0x18 dAtA[i] = 0x18
@ -1800,25 +1770,17 @@ func (m *DeleteProcessRequest) MarshalTo(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.Container != nil { if len(m.ContainerID) > 0 {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Container.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ContainerID)))
n13, err := m.Container.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ContainerID)
if err != nil {
return 0, err
}
i += n13
} }
if m.Process != nil { if len(m.ProcessID) > 0 {
dAtA[i] = 0x12 dAtA[i] = 0x12
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Process.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ProcessID)))
n14, err := m.Process.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ProcessID)
if err != nil {
return 0, err
}
i += n14
} }
return i, nil return i, nil
} }
@ -1838,15 +1800,11 @@ func (m *ListProcessesRequest) MarshalTo(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.Container != nil { if len(m.ID) > 0 {
dAtA[i] = 0xa dAtA[i] = 0xa
i++ i++
i = encodeVarintExecution(dAtA, i, uint64(m.Container.Size())) i = encodeVarintExecution(dAtA, i, uint64(len(m.ID)))
n15, err := m.Container.MarshalTo(dAtA[i:]) i += copy(dAtA[i:], m.ID)
if err != nil {
return 0, err
}
i += n15
} }
return i, nil return i, nil
} }
@ -1994,7 +1952,7 @@ func (m *ListContainersResponse) Size() (n int) {
func (m *StartProcessRequest) Size() (n int) { func (m *StartProcessRequest) Size() (n int) {
var l int var l int
_ = l _ = l
l = len(m.ContainerId) l = len(m.ContainerID)
if l > 0 { if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
@ -2128,8 +2086,8 @@ func (m *GetContainerResponse) Size() (n int) {
func (m *UpdateContainerRequest) Size() (n int) { func (m *UpdateContainerRequest) Size() (n int) {
var l int var l int
_ = l _ = l
if m.Container != nil { l = len(m.ContainerID)
l = m.Container.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
l = len(m.BundlePath) l = len(m.BundlePath)
@ -2162,11 +2120,11 @@ func (m *ResumeContainerRequest) Size() (n int) {
func (m *GetProcessRequest) Size() (n int) { func (m *GetProcessRequest) Size() (n int) {
var l int var l int
_ = l _ = l
if m.Container != nil { l = len(m.ContainerID)
l = m.Container.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
l = len(m.ProcessId) l = len(m.ProcessID)
if l > 0 { if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
@ -2186,12 +2144,12 @@ func (m *GetProcessResponse) Size() (n int) {
func (m *SignalProcessRequest) Size() (n int) { func (m *SignalProcessRequest) Size() (n int) {
var l int var l int
_ = l _ = l
if m.Container != nil { l = len(m.ContainerID)
l = m.Container.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
if m.Process != nil { l = len(m.ProcessID)
l = m.Process.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
if m.Signal != 0 { if m.Signal != 0 {
@ -2203,12 +2161,12 @@ func (m *SignalProcessRequest) Size() (n int) {
func (m *DeleteProcessRequest) Size() (n int) { func (m *DeleteProcessRequest) Size() (n int) {
var l int var l int
_ = l _ = l
if m.Container != nil { l = len(m.ContainerID)
l = m.Container.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
if m.Process != nil { l = len(m.ProcessID)
l = m.Process.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
return n return n
@ -2217,8 +2175,8 @@ func (m *DeleteProcessRequest) Size() (n int) {
func (m *ListProcessesRequest) Size() (n int) { func (m *ListProcessesRequest) Size() (n int) {
var l int var l int
_ = l _ = l
if m.Container != nil { l = len(m.ID)
l = m.Container.Size() if l > 0 {
n += 1 + l + sovExecution(uint64(l)) n += 1 + l + sovExecution(uint64(l))
} }
return n return n
@ -2319,7 +2277,7 @@ func (this *StartProcessRequest) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&StartProcessRequest{`, s := strings.Join([]string{`&StartProcessRequest{`,
`ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
`Process:` + strings.Replace(fmt.Sprintf("%v", this.Process), "Process", "Process", 1) + `,`, `Process:` + strings.Replace(fmt.Sprintf("%v", this.Process), "Process", "Process", 1) + `,`,
`Console:` + fmt.Sprintf("%v", this.Console) + `,`, `Console:` + fmt.Sprintf("%v", this.Console) + `,`,
`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
@ -2405,7 +2363,7 @@ func (this *UpdateContainerRequest) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&UpdateContainerRequest{`, s := strings.Join([]string{`&UpdateContainerRequest{`,
`Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "Container", 1) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
`BundlePath:` + fmt.Sprintf("%v", this.BundlePath) + `,`, `BundlePath:` + fmt.Sprintf("%v", this.BundlePath) + `,`,
`}`, `}`,
}, "") }, "")
@ -2436,8 +2394,8 @@ func (this *GetProcessRequest) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&GetProcessRequest{`, s := strings.Join([]string{`&GetProcessRequest{`,
`Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "Container", 1) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
`ProcessId:` + fmt.Sprintf("%v", this.ProcessId) + `,`, `ProcessID:` + fmt.Sprintf("%v", this.ProcessID) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
@ -2457,8 +2415,8 @@ func (this *SignalProcessRequest) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&SignalProcessRequest{`, s := strings.Join([]string{`&SignalProcessRequest{`,
`Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "Container", 1) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
`Process:` + strings.Replace(fmt.Sprintf("%v", this.Process), "Process", "Process", 1) + `,`, `ProcessID:` + fmt.Sprintf("%v", this.ProcessID) + `,`,
`Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`,
`}`, `}`,
}, "") }, "")
@ -2469,8 +2427,8 @@ func (this *DeleteProcessRequest) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&DeleteProcessRequest{`, s := strings.Join([]string{`&DeleteProcessRequest{`,
`Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "Container", 1) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
`Process:` + strings.Replace(fmt.Sprintf("%v", this.Process), "Process", "Process", 1) + `,`, `ProcessID:` + fmt.Sprintf("%v", this.ProcessID) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
@ -2480,7 +2438,7 @@ func (this *ListProcessesRequest) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&ListProcessesRequest{`, s := strings.Join([]string{`&ListProcessesRequest{`,
`Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "Container", 1) + `,`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
`}`, `}`,
}, "") }, "")
return s return s
@ -3150,7 +3108,7 @@ func (m *StartProcessRequest) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
} }
var stringLen uint64 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -3175,7 +3133,7 @@ func (m *StartProcessRequest) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.ContainerId = string(dAtA[iNdEx:postIndex]) m.ContainerID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
@ -4148,9 +4106,9 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
} }
var msglen int var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowExecution return ErrIntOverflowExecution
@ -4160,24 +4118,20 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error {
} }
b := dAtA[iNdEx] b := dAtA[iNdEx]
iNdEx++ iNdEx++
msglen |= (int(b) & 0x7F) << shift stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
if msglen < 0 { intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthExecution return ErrInvalidLengthExecution
} }
postIndex := iNdEx + msglen postIndex := iNdEx + intStringLen
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Container == nil { m.ContainerID = string(dAtA[iNdEx:postIndex])
m.Container = &Container{}
}
if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
@ -4418,40 +4372,7 @@ func (m *GetProcessRequest) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowExecution
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthExecution
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Container == nil {
m.Container = &Container{}
}
if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ProcessId", wireType)
} }
var stringLen uint64 var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -4476,7 +4397,36 @@ func (m *GetProcessRequest) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.ProcessId = string(dAtA[iNdEx:postIndex]) m.ContainerID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ProcessID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowExecution
}
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 ErrInvalidLengthExecution
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ProcessID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
@ -4613,9 +4563,9 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
} }
var msglen int var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowExecution return ErrIntOverflowExecution
@ -4625,30 +4575,26 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error {
} }
b := dAtA[iNdEx] b := dAtA[iNdEx]
iNdEx++ iNdEx++
msglen |= (int(b) & 0x7F) << shift stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
if msglen < 0 { intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthExecution return ErrInvalidLengthExecution
} }
postIndex := iNdEx + msglen postIndex := iNdEx + intStringLen
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Container == nil { m.ContainerID = string(dAtA[iNdEx:postIndex])
m.Container = &Container{}
}
if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ProcessID", wireType)
} }
var msglen int var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowExecution return ErrIntOverflowExecution
@ -4658,24 +4604,20 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error {
} }
b := dAtA[iNdEx] b := dAtA[iNdEx]
iNdEx++ iNdEx++
msglen |= (int(b) & 0x7F) << shift stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
if msglen < 0 { intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthExecution return ErrInvalidLengthExecution
} }
postIndex := iNdEx + msglen postIndex := iNdEx + intStringLen
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Process == nil { m.ProcessID = string(dAtA[iNdEx:postIndex])
m.Process = &Process{}
}
if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex iNdEx = postIndex
case 3: case 3:
if wireType != 0 { if wireType != 0 {
@ -4748,9 +4690,9 @@ func (m *DeleteProcessRequest) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
} }
var msglen int var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowExecution return ErrIntOverflowExecution
@ -4760,30 +4702,26 @@ func (m *DeleteProcessRequest) Unmarshal(dAtA []byte) error {
} }
b := dAtA[iNdEx] b := dAtA[iNdEx]
iNdEx++ iNdEx++
msglen |= (int(b) & 0x7F) << shift stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
if msglen < 0 { intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthExecution return ErrInvalidLengthExecution
} }
postIndex := iNdEx + msglen postIndex := iNdEx + intStringLen
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Container == nil { m.ContainerID = string(dAtA[iNdEx:postIndex])
m.Container = &Container{}
}
if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ProcessID", wireType)
} }
var msglen int var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowExecution return ErrIntOverflowExecution
@ -4793,24 +4731,20 @@ func (m *DeleteProcessRequest) Unmarshal(dAtA []byte) error {
} }
b := dAtA[iNdEx] b := dAtA[iNdEx]
iNdEx++ iNdEx++
msglen |= (int(b) & 0x7F) << shift stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
if msglen < 0 { intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthExecution return ErrInvalidLengthExecution
} }
postIndex := iNdEx + msglen postIndex := iNdEx + intStringLen
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Process == nil { m.ProcessID = string(dAtA[iNdEx:postIndex])
m.Process = &Process{}
}
if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
@ -4864,9 +4798,9 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
} }
var msglen int var stringLen uint64
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowExecution return ErrIntOverflowExecution
@ -4876,24 +4810,20 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error {
} }
b := dAtA[iNdEx] b := dAtA[iNdEx]
iNdEx++ iNdEx++
msglen |= (int(b) & 0x7F) << shift stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
if msglen < 0 { intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthExecution return ErrInvalidLengthExecution
} }
postIndex := iNdEx + msglen postIndex := iNdEx + intStringLen
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Container == nil { m.ID = string(dAtA[iNdEx:postIndex])
m.Container = &Container{}
}
if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
@ -5105,67 +5035,67 @@ var (
func init() { proto.RegisterFile("execution.proto", fileDescriptorExecution) } func init() { proto.RegisterFile("execution.proto", fileDescriptorExecution) }
var fileDescriptorExecution = []byte{ var fileDescriptorExecution = []byte{
// 980 bytes of a gzipped FileDescriptorProto // 992 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x6e, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 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, 0x1e, 0xd4, 0x39, 0x3d, 0x89, 0x79, 0x4b, 0x52, 0xa7, 0xca, 0xe3, 0xd5, 0x20, 0x11, 0xf7,
0xd5, 0xb5, 0x57, 0xd3, 0xba, 0xf6, 0x7a, 0x5a, 0xd7, 0x7e, 0x9d, 0xd6, 0xb5, 0x3f, 0xa7, 0x75, 0xc9, 0xfb, 0x6f, 0x6e, 0xab, 0x5b, 0x7f, 0xde, 0x56, 0xb7, 0xfe, 0xb9, 0xad, 0x2a, 0x3f, 0x4f,
0xed, 0xbc, 0x20, 0x98, 0x7c, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x07, 0xf1, 0x5d, 0xaa, 0xca, 0x9b, 0x49, 0x55, 0xf9, 0x7d, 0x52, 0x55, 0xfe, 0x9e, 0x54, 0x95, 0x8b, 0x1c, 0x67,
0x3d, 0x0d, 0x00, 0x00, 0xf2, 0xd9, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xf2, 0x89, 0x40, 0x24, 0x0d, 0x00, 0x00,
} }

View file

@ -53,7 +53,7 @@ message ListContainersResponse {
} }
message StartProcessRequest { message StartProcessRequest {
string container_id = 1; string container_id = 1 [(gogoproto.customname) = "ContainerID"];
Process process = 2; Process process = 2;
bool console = 3; bool console = 3;
string stdin = 4; string stdin = 4;
@ -104,7 +104,7 @@ message GetContainerResponse {
} }
message UpdateContainerRequest { message UpdateContainerRequest {
Container container = 1; string container_id = 1 [(gogoproto.customname) = "ContainerID"];
string bundle_path = 2; string bundle_path = 2;
} }
@ -117,8 +117,8 @@ message ResumeContainerRequest {
} }
message GetProcessRequest { message GetProcessRequest {
Container container = 1; string container_id = 1 [(gogoproto.customname) = "ContainerID"];
string process_id = 2; string process_id = 2 [(gogoproto.customname) = "ProcessID"];
} }
message GetProcessResponse { message GetProcessResponse {
@ -126,18 +126,18 @@ message GetProcessResponse {
} }
message SignalProcessRequest { message SignalProcessRequest {
Container container = 1; string container_id = 1 [(gogoproto.customname) = "ContainerID"];
Process process = 2; string process_id = 2 [(gogoproto.customname) = "ProcessID"];
uint32 signal = 3; uint32 signal = 3;
} }
message DeleteProcessRequest { message DeleteProcessRequest {
Container container = 1; string container_id = 1 [(gogoproto.customname) = "ContainerID"];
Process process = 2; string process_id = 2 [(gogoproto.customname) = "ProcessID"];
} }
message ListProcessesRequest { message ListProcessesRequest {
Container container = 1; string id = 1 [(gogoproto.customname) = "ID"];
} }
message ListProcessesResponse { message ListProcessesResponse {

View file

@ -46,7 +46,7 @@ var execCommand = cli.Command{
defer os.RemoveAll(tmpDir) defer os.RemoveAll(tmpDir)
sOpts := &execution.StartProcessRequest{ sOpts := &execution.StartProcessRequest{
ContainerId: id, ContainerID: id,
Process: &execution.Process{ Process: &execution.Process{
Cwd: context.String("cwd"), Cwd: context.String("cwd"),
Terminal: context.Bool("tty"), Terminal: context.Bool("tty"),
@ -70,10 +70,8 @@ var execCommand = cli.Command{
} }
_, err = executionService.DeleteProcess(gocontext.Background(), &execution.DeleteProcessRequest{ _, err = executionService.DeleteProcess(gocontext.Background(), &execution.DeleteProcessRequest{
Container: &execution.Container{ ContainerID: id,
ID: id, ProcessID: sr.Process.ID,
},
Process: sr.Process,
}) })
if err != nil { if err != nil {
return err return err

View file

@ -110,7 +110,7 @@ func (s *Service) Start(ctx context.Context, r *api.StartContainerRequest) (*goo
} }
func (s *Service) StartProcess(ctx context.Context, r *api.StartProcessRequest) (*api.StartProcessResponse, error) { func (s *Service) StartProcess(ctx context.Context, r *api.StartProcessRequest) (*api.StartProcessResponse, error) {
container, err := s.executor.Load(ctx, r.ContainerId) container, err := s.executor.Load(ctx, r.ContainerID)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -147,11 +147,11 @@ func (s *Service) StartProcess(ctx context.Context, r *api.StartProcessRequest)
// containerd managed execs + system pids forked in container // containerd managed execs + system pids forked in container
func (s *Service) GetProcess(ctx context.Context, r *api.GetProcessRequest) (*api.GetProcessResponse, error) { func (s *Service) GetProcess(ctx context.Context, r *api.GetProcessRequest) (*api.GetProcessResponse, error) {
container, err := s.executor.Load(ctx, r.Container.ID) container, err := s.executor.Load(ctx, r.ContainerID)
if err != nil { if err != nil {
return nil, err return nil, err
} }
process := container.GetProcess(r.ProcessId) process := container.GetProcess(r.ProcessID)
if process == nil { if process == nil {
return nil, ErrProcessNotFound return nil, ErrProcessNotFound
} }
@ -161,11 +161,11 @@ func (s *Service) GetProcess(ctx context.Context, r *api.GetProcessRequest) (*ap
} }
func (s *Service) SignalProcess(ctx context.Context, r *api.SignalProcessRequest) (*google_protobuf.Empty, error) { func (s *Service) SignalProcess(ctx context.Context, r *api.SignalProcessRequest) (*google_protobuf.Empty, error) {
container, err := s.executor.Load(ctx, r.Container.ID) container, err := s.executor.Load(ctx, r.ContainerID)
if err != nil { if err != nil {
return emptyResponse, err return emptyResponse, err
} }
process := container.GetProcess(r.Process.ID) process := container.GetProcess(r.ProcessID)
if process == nil { if process == nil {
return nil, fmt.Errorf("Make me a constant! Process not foumd!") return nil, fmt.Errorf("Make me a constant! Process not foumd!")
} }
@ -173,18 +173,18 @@ func (s *Service) SignalProcess(ctx context.Context, r *api.SignalProcessRequest
} }
func (s *Service) DeleteProcess(ctx context.Context, r *api.DeleteProcessRequest) (*google_protobuf.Empty, error) { func (s *Service) DeleteProcess(ctx context.Context, r *api.DeleteProcessRequest) (*google_protobuf.Empty, error) {
container, err := s.executor.Load(ctx, r.Container.ID) container, err := s.executor.Load(ctx, r.ContainerID)
if err != nil { if err != nil {
return emptyResponse, err return emptyResponse, err
} }
if err := s.executor.DeleteProcess(ctx, container, r.Process.ID); err != nil { if err := s.executor.DeleteProcess(ctx, container, r.ProcessID); err != nil {
return emptyResponse, err return emptyResponse, err
} }
return emptyResponse, nil return emptyResponse, nil
} }
func (s *Service) ListProcesses(ctx context.Context, r *api.ListProcessesRequest) (*api.ListProcessesResponse, error) { func (s *Service) ListProcesses(ctx context.Context, r *api.ListProcessesRequest) (*api.ListProcessesResponse, error) {
container, err := s.executor.Load(ctx, r.Container.ID) container, err := s.executor.Load(ctx, r.ID)
if err != nil { if err != nil {
return nil, err return nil, err
} }