Refactor server sandbox
Make sandbox struct and it methods public, and add accessor methods for the struct fields Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
parent
a82cc428a9
commit
3ddf2efae2
6 changed files with 198 additions and 33 deletions
|
@ -60,7 +60,7 @@ func (s *Server) StopPodSandbox(ctx context.Context, req *pb.StopPodSandboxReque
|
|||
}
|
||||
|
||||
// Close the sandbox networking namespace.
|
||||
if err := sb.netNsRemove(); err != nil {
|
||||
if err := sb.NetNsRemove(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue