info

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 9 Imported by: 0

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 genericclioptions.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 {
	genericclioptions.IOStreams
}

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

func NewInfoOptions

func NewInfoOptions(ioStreams genericclioptions.IOStreams) *InfoOptions

NewInfoOptions returns an initialized InfoOptions instance.

func (*InfoOptions) Run

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

Run executes a 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