Documentation ¶
Overview ¶
Package info print the host information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdInfo ¶
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.
Click to show internal directories.
Click to hide internal directories.