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

info.go

Version
v1.7.18
Published
Jun 5, 2024
Platform
darwin/amd64
Imports
4 packages
Last checked
2 minutes ago

Tools for package owners.