Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Server *api.ServerResponse `json:"server"`
}
Click to show internal directories.
Click to hide internal directories.