mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
vc: drop container SetPid API
It is not used by anyone. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
ff5f1b4273
commit
f886c0bf35
@ -368,16 +368,6 @@ func (c *Container) GetPid() int {
|
|||||||
return c.process.Pid
|
return c.process.Pid
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetPid sets and stores the given pid as the pid of container's process.
|
|
||||||
func (c *Container) SetPid(pid int) error {
|
|
||||||
c.process.Pid = pid
|
|
||||||
|
|
||||||
if !c.sandbox.supportNewStore() {
|
|
||||||
return c.storeProcess()
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Container) setStateFstype(fstype string) error {
|
func (c *Container) setStateFstype(fstype string) error {
|
||||||
c.state.Fstype = fstype
|
c.state.Fstype = fstype
|
||||||
|
|
||||||
|
@ -773,7 +773,6 @@ type VCContainer interface {
|
|||||||
ID() string
|
ID() string
|
||||||
Sandbox() VCSandbox
|
Sandbox() VCSandbox
|
||||||
Process() Process
|
Process() Process
|
||||||
SetPid(pid int) error
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -110,5 +110,4 @@ type VCContainer interface {
|
|||||||
ID() string
|
ID() string
|
||||||
Sandbox() VCSandbox
|
Sandbox() VCSandbox
|
||||||
Process() Process
|
Process() Process
|
||||||
SetPid(pid int) error
|
|
||||||
}
|
}
|
||||||
|
@ -38,12 +38,6 @@ func (c *Container) GetPid() int {
|
|||||||
return c.MockPid
|
return c.MockPid
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetPid implements the VCContainer function of the same name.
|
|
||||||
func (c *Container) SetPid(pid int) error {
|
|
||||||
c.MockPid = pid
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetAnnotations implements the VCContainer function of the same name.
|
// GetAnnotations implements the VCContainer function of the same name.
|
||||||
func (c *Container) GetAnnotations() map[string]string {
|
func (c *Container) GetAnnotations() map[string]string {
|
||||||
return c.MockAnnotations
|
return c.MockAnnotations
|
||||||
|
Loading…
Reference in New Issue
Block a user