info

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL