cmd

package
v0.0.0-...-815c261 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   libs.BINARY,
	Short: fmt.Sprintf("%s - %s", libs.BINARY, libs.DESC),
	Long:  core.Banner(),
}

Functions

func CloudHelp

func CloudHelp(cmd *cobra.Command, _ []string)

CloudHelp scan help message

func CloudUsage

func CloudUsage() string

func ConfigHelp

func ConfigHelp(cmd *cobra.Command, _ []string)

ConfigHelp config help message

func ConfigUsage

func ConfigUsage() string

func CreateRunner

func CreateRunner(j interface{})

func Execute

func Execute()

Execute main function

func HandleChunksInputs

func HandleChunksInputs(target string) []string

HandleChunksInputs split the inputs to multiple file first

func PrintStat

func PrintStat() string

PrintStat print status

func QueueHelp

func QueueHelp(cmd *cobra.Command, _ []string)

func QueueUsage

func QueueUsage() string

func ReportHelp

func ReportHelp(cmd *cobra.Command, _ []string)

ReportHelp utils help message

func ReportUsage

func ReportUsage() string

func RootHelp

func RootHelp(cmd *cobra.Command, _ []string)

RootHelp print help message

func RootUsage

func RootUsage()

RootUsage base help

func ScanExmaples

func ScanExmaples() string

func ScanHelp

func ScanHelp(cmd *cobra.Command, _ []string)

ScanHelp scan help message

func ScanUsage

func ScanUsage() string

func ServerHelp

func ServerHelp(cmd *cobra.Command, _ []string)

ServerHelp scan help message

func ServerUsage

func ServerUsage() string

func UtilsHelp

func UtilsHelp(cmd *cobra.Command, _ []string)

UtilsHelp utils help message

func UtilsUsage

func UtilsUsage() string

Types

type ServerStatData

type ServerStatData struct {
	CPU struct {
		System float64
		User   float64
		Idle   float64
	}
	Mem struct {
		Total  float64
		Used   float64
		Free   float64
		Cached float64
	}
}

func GetStat

func GetStat() ServerStatData

GetStat gets stat data

type StatData

type StatData struct {
	CPU     string `json:"cpu"`
	Mem     string `json:"mem"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

StatData overview struct

Jump to

Keyboard shortcuts

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