Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Verbose flag set to show detail message Verbose bool // Host is openstack serivce host Host string // Username is the name of user in openstack Username string // Password is the password of user in openstack Password string )
View Source
var ( // Name of server Name string // Project name or id Project string // Network name or id Network string // Flavor name Flavor string // Image name or id Image string )
View Source
var RootCmd = &cobra.Command{
Use: "zcloud",
Short: "a CLI app for openstack client",
Long: `zcloud is a CLI app for openstack client.
This application is created for speeding up the daily operation on cloud servers on openstack
`,
}
RootCmd the cobra root command
View Source
var ServerCmd = &cobra.Command{
Use: "server",
Short: "operation about server",
Long: `echo is for echoing anything back.
Echo echo’s.
`,
}
ServerCmd sub-command of zcloud about server
View Source
var ServerCreateCmd = &cobra.Command{
Use: "create [string to echo]",
Short: "Echo anything to the screen",
Long: `echo is for echoing anything back.
Echo echo’s.
`,
Run: serverCreate,
}
ServerCreateCmd create and boot server with given options
View Source
var ServerDeleteCmd = &cobra.Command{
Use: "delete",
Short: "delete a specific server",
Long: `echo is for echoing anything back.
Echo echo’s.
`,
Run: serverDelete,
}
ServerDeleteCmd delete the specific server
View Source
var ServerListCmd = &cobra.Command{
Use: "list [string to echo]",
Short: "Echo anything to the screen",
Long: `echo is for echoing anything back.
Echo echo’s.
`,
Run: serverList,
}
ServerListCmd list server in specific project(tenant)
View Source
var (
// VERSION is set during build
VERSION = "0.0.1"
)
View Source
var VersionCmd = &cobra.Command{
Use: "version",
Short: "show zcloud version",
Long: `
`,
Run: printVersion,
}
VersionCmd show version of zcloud tool
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.