package info
import "github.com/containerd/containerd/cmd/ctr/commands/info"
Index ¶
Variables ¶
var Command = cli.Command{ Name: "info", Usage: "Print the server info", Action: func(context *cli.Context) error { client, ctx, cancel, err := commands.NewClient(context) if err != nil { return err } defer cancel() var info Info info.Server, err = client.IntrospectionService().Server(ctx, &ptypes.Empty{}) if err != nil { return err } commands.PrintAsJSON(info) return nil }, }
Command is a cli command to output the containerd server info
Types ¶
type Info ¶
type Info struct { Server *api.ServerResponse `json:"server"` }
Source Files ¶
- Version
- v1.7.0-rc.0
- Published
- Feb 27, 2023
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 8 minutes ago –
Tools for package owners.