info

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package info print the host information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInfo

func NewCmdInfo(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdInfo returns new initialized instance of 'info' sub command.

Types

type Info

type Info struct {
	HostName  string
	IPAddress string
	OSRelease string
	CPUCore   uint64
	MemTotal  string
	MemFree   string
}

Info defines the host information struct.

type InfoOptions

type InfoOptions struct {
	genericiooptions.IOStreams
}

InfoOptions is an options struct to support 'info' sub command.

func NewInfoOptions

func NewInfoOptions(ioStreams genericiooptions.IOStreams) *InfoOptions

NewInfoOptions returns an initialized InfoOptions instance.

func (*InfoOptions) Run

func (o *InfoOptions) Run(args []string) error

Run executes an info sub command using the specified options.

Jump to

Keyboard shortcuts

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