cmd

package
v1.77.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 73 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Daytime of the night
	Daytime port = 13
	// FTP protocol port number
	FTP port = 21
	// SSH protocol port number
	SSH port = 22
	// Telnet protocol port number
	Telnet port = 23
	// SMTP protocol port number
	SMTP port = 25
	// Time protocol port number
	Time port = 37
	// Whois protocol port number
	Whois port = 43
	// DNS protocol port number
	DNS port = 53
	// TFTP protocol port number
	TFTP port = 69
	// Gopher protocol port number
	Gopher port = 70
	// HTTP protocol port number
	HTTP port = 80
	// Kerberos protocol port number
	Kerberos port = 88
	// Nic protocol port number
	Nic port = 101
	// SFTP protocol port number
	SFTP port = 115
	// NTP protocol port number
	NTP port = 123
	// IMAP protocol port number
	IMAP port = 143
	// SNMP protocol port number
	SNMP port = 161
	// IRC protocol port number
	IRC port = 194
	// HTTPS protocol port number
	HTTPS port = 443
	// Docker protocol port number
	Docker port = 2376
	// RDP protocol port number
	RDP port = 3389
	// Minecraft protocol port number
	Minecraft port = 25565
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "exo",
	Short:         "Manage your Exoscale infrastructure easily",
	SilenceUsage:  true,
	SilenceErrors: true,
}

Functions

func CORSRuleFromCmdFlags added in v1.68.0

func CORSRuleFromCmdFlags(flags *pflag.FlagSet) *sos.CORSRule

CORSRuleFromCmdFlags returns a non-nil pointer to a sos.CORSRule struct if at least one of the CORS-related command flags is set.

func DatePtrFormatOutput added in v1.58.0

func DatePtrFormatOutput(t *time.Time) string

func Execute

func Execute(version, commit string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

func Int64PtrFormatOutput added in v1.55.0

func Int64PtrFormatOutput(n *int64) string

func StrPtrFormatOutput added in v1.58.0

func StrPtrFormatOutput(s *string) string

Types

type LimitsItemOutput

type LimitsItemOutput struct {
	Resource string `json:"resource"`
	Used     int64  `json:"used"`
	Max      int64  `json:"max"`
}

type LimitsOutput

type LimitsOutput []LimitsItemOutput

func (*LimitsOutput) ToJSON added in v1.68.0

func (o *LimitsOutput) ToJSON()

func (*LimitsOutput) ToTable added in v1.68.0

func (o *LimitsOutput) ToTable()

func (*LimitsOutput) ToText added in v1.68.0

func (o *LimitsOutput) ToText()

Source Files

Directories

Path Synopsis
internal
x

Jump to

Keyboard shortcuts

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