info

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT 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 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