コード例 #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")
	}
}
コード例 #2
0
ファイル: quota.go プロジェクト: absolutedevops/civo
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")
	}
}
コード例 #3
0
ファイル: account.go プロジェクト: absolutedevops/civo
func init() {
	if config.Admin() {
		RootCmd.AddCommand(accountCmd)
	}
}
コード例 #4
0
func init() {
	if config.Admin() {
		templateCmd.AddCommand(templateDetailsCmd)
		templateDetailsCmd.Flags().StringVarP(&templateDetailsID, "id", "", "", "ID of the template to show")
	}
}
コード例 #5
0
ファイル: account_reset.go プロジェクト: absolutedevops/civo
func init() {
	if config.Admin() {
		accountCmd.AddCommand(accountResetCmd)
		accountResetCmd.Flags().StringVarP(&accountResetName, "name", "n", "", "Name of the account; lowercase, hyphen separated")
	}
}
コード例 #6
0
ファイル: url.go プロジェクト: absolutedevops/civo
func init() {
	if config.Admin() {
		RootCmd.AddCommand(urlCmd)
		urlCmd.Flags().StringVarP(&urlValue, "url", "u", "", "The URL of the API server to connect to")
	}
}
コード例 #7
0
ファイル: account_delete.go プロジェクト: absolutedevops/civo
func init() {
	if config.Admin() {
		accountCmd.AddCommand(accountDeleteCmd)
		accountDeleteCmd.Flags().StringVarP(&accountDeleteName, "name", "n", "", "Name of the account to delete")
	}
}