Add support for shim plugins

Refactor shim v2 to load and register plugins.
Update init shim interface to not require task service implementation on
returned service, but register as plugin if it is.

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2021-08-17 11:05:07 -07:00
parent fda782a7b9
commit 8d135d2842
4 changed files with 161 additions and 91 deletions

View File

@@ -65,7 +65,7 @@ type CRIService interface {
Run() error
// io.Closer is used by containerd to gracefully stop cri service.
io.Closer
plugin.Service
Register(*grpc.Server) error
grpcServices
}