Sandbox API: Move remote impls to /sandbox/proxy
Following how some of the other stores/services are returned in the client package, it makes sense to me to move the remoteFooBars in the sandbox API to a proxy sub-package under /sandbox. Given this has only been in a 1.7 beta, I hope this is fine to move around still. Signed-off-by: Danny Canter <danny@dcantah.dev>
This commit is contained in:
@@ -57,6 +57,7 @@ import (
|
||||
"github.com/containerd/containerd/remotes"
|
||||
"github.com/containerd/containerd/remotes/docker"
|
||||
"github.com/containerd/containerd/sandbox"
|
||||
sandboxproxy "github.com/containerd/containerd/sandbox/proxy"
|
||||
"github.com/containerd/containerd/services/introspection"
|
||||
"github.com/containerd/containerd/snapshots"
|
||||
snproxy "github.com/containerd/containerd/snapshots/proxy"
|
||||
@@ -704,7 +705,7 @@ func (c *Client) SandboxStore() sandbox.Store {
|
||||
}
|
||||
c.connMu.Lock()
|
||||
defer c.connMu.Unlock()
|
||||
return NewRemoteSandboxStore(sandboxsapi.NewStoreClient(c.conn))
|
||||
return sandboxproxy.NewSandboxStore(sandboxsapi.NewStoreClient(c.conn))
|
||||
}
|
||||
|
||||
// SandboxController returns the underlying sandbox controller client
|
||||
@@ -714,7 +715,7 @@ func (c *Client) SandboxController() sandbox.Controller {
|
||||
}
|
||||
c.connMu.Lock()
|
||||
defer c.connMu.Unlock()
|
||||
return NewSandboxRemoteController(sandboxsapi.NewControllerClient(c.conn))
|
||||
return sandboxproxy.NewSandboxController(sandboxsapi.NewControllerClient(c.conn))
|
||||
}
|
||||
|
||||
// VersionService returns the underlying VersionClient
|
||||
|
||||
Reference in New Issue
Block a user