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:
@@ -33,6 +33,7 @@ import (
|
||||
"github.com/containerd/containerd/namespaces"
|
||||
"github.com/containerd/containerd/plugin"
|
||||
"github.com/containerd/containerd/sandbox"
|
||||
"github.com/containerd/containerd/sandbox/proxy"
|
||||
srv "github.com/containerd/containerd/services"
|
||||
"github.com/containerd/containerd/services/introspection"
|
||||
"github.com/containerd/containerd/snapshots"
|
||||
@@ -167,14 +168,14 @@ func WithIntrospectionService(in introspection.Service) ServicesOpt {
|
||||
// WithSandboxStore sets the sandbox store.
|
||||
func WithSandboxStore(client sandboxapi.StoreClient) ServicesOpt {
|
||||
return func(s *services) {
|
||||
s.sandboxStore = NewRemoteSandboxStore(client)
|
||||
s.sandboxStore = proxy.NewSandboxStore(client)
|
||||
}
|
||||
}
|
||||
|
||||
// WithSandboxController sets the sandbox controller.
|
||||
func WithSandboxController(client sandboxapi.ControllerClient) ServicesOpt {
|
||||
return func(s *services) {
|
||||
s.sandboxController = NewSandboxRemoteController(client)
|
||||
s.sandboxController = proxy.NewSandboxController(client)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user