Remove sandox store and controller service type

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan 2023-01-25 21:46:40 -08:00
parent a788f6c799
commit 34314717b0
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB
2 changed files with 3 additions and 7 deletions

View File

@ -192,6 +192,9 @@ func WithInMemoryServices(ic *plugin.InitContext) ClientOpt {
plugin.SandboxStorePlugin: func(i interface{}) ServicesOpt {
return WithSandboxStore(i.(sandbox.Store))
},
plugin.SandboxControllerPlugin: func(i interface{}) ServicesOpt {
return WithSandboxController(i.(sandbox.Controller))
},
} {
i, err := ic.Get(t)
if err != nil {
@ -229,9 +232,6 @@ func WithInMemoryServices(ic *plugin.InitContext) ClientOpt {
srv.IntrospectionService: func(s interface{}) ServicesOpt {
return WithIntrospectionClient(s.(introspectionapi.IntrospectionClient))
},
srv.SandboxControllerService: func(s interface{}) ServicesOpt {
return WithSandboxController(s.(sandbox.Controller))
},
} {
p := plugins[s]
if p == nil {

View File

@ -33,10 +33,6 @@ const (
DiffService = "diff-service"
// IntrospectionService is the id of introspection service
IntrospectionService = "introspection-service"
// SandboxControllerService is the id of Sandbox's controller service
SandboxControllerService = "sandbox-controller-service"
// SandboxStoreService is the id of Sandbox's store service
SandboxStoreService = "sandbox-store-service"
// Streaming service is the id of the streaming service
StreamingService = "streaming-service"
)