containerd/cmd/ctr/commands
Akihiro Suda 22d586e515
api/services/instrospection: add PluginInfo
The new `PlunginInfo()` call can be used for instrospecting the details
of the runtime plugin.

```console
$ ctr plugins inspect-runtime --runtime=io.containerd.runc.v2 --runc-binary=runc
{
    "Name": "io.containerd.runc.v2",
    "Version": {
        "Version": "v2.0.0-beta.0-XX-gXXXXXXXXX.m",
        "Revision": "v2.0.0-beta.0-XX-gXXXXXXXXX.m"
    },
    "Options": {
        "binary_name": "runc"
    },
    "Features": {
        "ociVersionMin": "1.0.0",
        "ociVersionMax": "1.1.0-rc.2",
        ...,
    },
    "Annotations": null
}
```

The shim binary has to support `-info` flag, see `runtime/v2/README.md`

Replaces PR 8509 (`api/services/task: add RuntimeInfo()`)

Co-authored-by: Derek McGowan <derek@mcg.dev>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-01-25 10:00:30 +09:00
..
containers api/services/instrospection: add PluginInfo 2024-01-25 10:00:30 +09:00
content Remove deprecated platforms package 2024-01-23 09:14:03 -08:00
deprecations Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
events Move events to pkg/events 2024-01-17 09:54:36 -08:00
images Remove deprecated platforms package 2024-01-23 09:14:03 -08:00
info Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
install Move client to subpackage 2023-11-01 10:37:00 -07:00
leases Move leases to core/leases 2024-01-17 09:51:45 -08:00
namespaces Move runtime to core/runtime 2024-01-17 09:58:04 -08:00
oci Remove deprecated platforms package 2024-01-23 09:14:03 -08:00
plugins api/services/instrospection: add PluginInfo 2024-01-25 10:00:30 +09:00
pprof Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
run api/services/instrospection: add PluginInfo 2024-01-25 10:00:30 +09:00
sandboxes Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
shim Move runtime to core/runtime 2024-01-17 09:58:04 -08:00
snapshots Move rootfs to pkg/rootfs 2024-01-17 09:56:07 -08:00
tasks Move runtime to core/runtime 2024-01-17 09:58:04 -08:00
version Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
client.go Move namespaces to pkg/namespaces 2024-01-17 09:55:39 -08:00
cni.go Move namespaces to pkg/namespaces 2024-01-17 09:55:39 -08:00
commands_unix.go api/services/instrospection: add PluginInfo 2024-01-25 10:00:30 +09:00
commands_windows.go api/services/instrospection: add PluginInfo 2024-01-25 10:00:30 +09:00
commands.go api/services/instrospection: add PluginInfo 2024-01-25 10:00:30 +09:00
resolver.go Move remotes to core/remotes 2024-01-17 09:52:21 -08:00
signals_linux.go Ignore SIGURG signals in signal forwarder 2020-09-04 16:19:31 -07:00
signals_notlinux.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
signals.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00