Exemplo n.º 1
0
func init() {
	if config.Admin() {
		templateCmd.AddCommand(templateUpdateCmd)
		templateUpdateCmd.Flags().StringVarP(&templateUpdateID, "id", "", "", "ID of the template; lowercase, hyphen separated")
		templateUpdateCmd.Flags().StringVarP(&templateUpdateName, "name", "n", "", "A nice name to be used for the template")
		templateUpdateCmd.Flags().StringVarP(&templateUpdateImageId, "image-id", "i", "", "The glance ID of the base filesystem image")
		templateUpdateCmd.Flags().StringVarP(&templateUpdateDescription, "description", "d", "", "A full/long multiline description")
		templateUpdateCmd.Flags().StringVarP(&templateUpdateShortDescription, "short-description", "s", "", "A one line short summary of the template")
		templateUpdateCmd.Flags().StringVarP(&templateUpdateCloudInitFile, "cloud-init-file", "c", "", "The filename of a file to be used as user-data/cloud-init")
	}
}
Exemplo n.º 2
0
func init() {
	RootCmd.AddCommand(quotaCmd)
	if config.Admin() {
		quotaCmd.Flags().StringVarP(&quota.Account, "account", "", "", "The account to update the quota for")
		quotaCmd.Flags().StringVarP(&quota.InstanceCount, "instance-count", "i", "", "The limit to the number of instances available")
		quotaCmd.Flags().StringVarP(&quota.CpuCore, "cpu-core", "c", "", "The limit to the number of CPU cores available")
		quotaCmd.Flags().StringVarP(&quota.RamMB, "ram-mb", "r", "", "The limit to the amount of RAM (in MB) available")
		quotaCmd.Flags().StringVarP(&quota.DiskGB, "disk-gb", "d", "", "The limit to the of disk space (in GB) available")
		quotaCmd.Flags().StringVarP(&quota.DiskVolumeCount, "disk-volume-count", "v", "", "The limit to the number of disk volumes available")
		quotaCmd.Flags().StringVarP(&quota.DiskSnapshotCount, "disk-snapshot-count", "s", "", "The limit to the number of disk snapshots available")
		quotaCmd.Flags().StringVarP(&quota.PublicIPAddress, "public-ip-address", "a", "", "The limit to the number of public IP addresses available")
		quotaCmd.Flags().StringVarP(&quota.SubnetCount, "subnet-count", "u", "", "The limit to the number of subnets available")
		quotaCmd.Flags().StringVarP(&quota.NetworkCount, "network-count", "w", "", "The limit to the number of networks available")
		quotaCmd.Flags().StringVarP(&quota.SecurityGroup, "security-group", "g", "", "The limit to the number of security groups available")
		quotaCmd.Flags().StringVarP(&quota.SecurityGroupRule, "security-group-rule", "l", "", "The limit to the number of security group rules available")
		quotaCmd.Flags().StringVarP(&quota.PortCount, "port-count", "p", "", "The limit to the number of ports (network connections) available")
	}
}
Exemplo n.º 3
0
func init() {
	if config.Admin() {
		RootCmd.AddCommand(accountCmd)
	}
}
Exemplo n.º 4
0
func init() {
	if config.Admin() {
		templateCmd.AddCommand(templateDetailsCmd)
		templateDetailsCmd.Flags().StringVarP(&templateDetailsID, "id", "", "", "ID of the template to show")
	}
}
Exemplo n.º 5
0
func init() {
	if config.Admin() {
		accountCmd.AddCommand(accountResetCmd)
		accountResetCmd.Flags().StringVarP(&accountResetName, "name", "n", "", "Name of the account; lowercase, hyphen separated")
	}
}
Exemplo n.º 6
0
func init() {
	if config.Admin() {
		RootCmd.AddCommand(urlCmd)
		urlCmd.Flags().StringVarP(&urlValue, "url", "u", "", "The URL of the API server to connect to")
	}
}
Exemplo n.º 7
0
func init() {
	if config.Admin() {
		accountCmd.AddCommand(accountDeleteCmd)
		accountDeleteCmd.Flags().StringVarP(&accountDeleteName, "name", "n", "", "Name of the account to delete")
	}
}