Cleanup introspection interface
Split service proxy from service plugin. Make introspection service easier for clients to use. Update service proxy to support grpc and ttrpc. Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
@@ -19,7 +19,6 @@ package info
|
||||
import (
|
||||
api "github.com/containerd/containerd/v2/api/services/introspection/v1"
|
||||
"github.com/containerd/containerd/v2/cmd/ctr/commands"
|
||||
ptypes "github.com/containerd/containerd/v2/protobuf/types"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
@@ -38,7 +37,7 @@ var Command = &cli.Command{
|
||||
}
|
||||
defer cancel()
|
||||
var info Info
|
||||
info.Server, err = client.IntrospectionService().Server(ctx, &ptypes.Empty{})
|
||||
info.Server, err = client.IntrospectionService().Server(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user