Documentation ¶
Index ¶
- Variables
- func InvalidUpdateError() error
- func R(options interface{}, command string, desc string, callback interface{})
- type ActionListOptions
- type BaseActionListOptions
- type BaseEventListOptions
- type CMD
- type DNSRecordOptions
- type EventListOptions
- type GeneralUsageOptions
- type ImageOptionalOptions
- type QuotaBaseOptions
- type TypeActionListOptions
- type TypeEventListOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandTable []CMD = make([]CMD, 0)
Functions ¶
func InvalidUpdateError ¶
func InvalidUpdateError() error
Types ¶
type ActionListOptions ¶
type ActionListOptions struct { BaseActionListOptions Id string `help:"" metavar:"OBJ_ID"` Type []string `help:"Type of relevant object" metavar:"OBJ_TYPE"` }
type BaseActionListOptions ¶
type BaseActionListOptions struct { Since string `help:"Show logs since specific date" metavar:"DATETIME"` Until string `help:"Show logs until specific date" metavar:"DATETIME"` Limit int64 `help:"Limit number of logs" default:"20"` Offset int64 `help:"Offset"` Ascending bool `help:"Ascending order"` Descending bool `help:"Descending order"` Action []string `help:"Log action"` Search string `help:"Filter action logs by obj_name, using 'like' syntax."` }
type BaseEventListOptions ¶
type BaseEventListOptions struct { Since string `help:"Show logs since specific date" metavar:"DATETIME"` Until string `help:"Show logs until specific date" metavar:"DATETIME"` Limit int64 `help:"Limit number of logs" default:"20"` Offset int64 `help:"Offset"` Ascending bool `help:"Ascending order"` Descending bool `help:"Descending order"` Action []string `help:"Log action"` }
type DNSRecordOptions ¶
type DNSRecordOptions struct { A []string `help:"DNS A record" metavar:"A_RECORD" positional:"false"` AAAA []string `help:"DNS AAAA record" metavar:"AAAA_RECORD" positional:"false"` CNAME string `help:"DNS CNAME record" metavar:"CNAME_RECORD" positional:"false"` SRVHost string `help:"DNS SRV record, server of service" metavar:"SRV_RECORD_HOST" positional:"false"` SRVPort int64 `help:"DNS SRV record, port of service" metavar:"SRV_RECORD_PORT" positional:"false"` PTR string `help:"DNS PTR record" metavar:"PTR_RECORD" positional:"false"` }
type EventListOptions ¶
type EventListOptions struct { BaseEventListOptions Id string `help:"" metavar:"OBJ_ID"` Type []string `help:"Type of relevant object" metavar:"OBJ_TYPE"` }
type GeneralUsageOptions ¶
type ImageOptionalOptions ¶
type ImageOptionalOptions struct { Public bool `help:"Make image public"` Private bool `help:"Make image private"` Format string `help:"Image format" choices:"raw|qcow2|iso|vmdk|docker|vhd"` Protected bool `help:"Prevent image from being deleted"` Unprotected bool `help:"Allow image to be deleted"` MinDisk int64 `help:"Disk size after expanded, in MB" metavar:"MIN_DISK_SIZE_MB"` MinRam int64 `help:"Minimal memory size required" metavar:"MIN_RAM_MB"` VirtualSize int64 `help:"Disk size after expanded, in MB"` Size int64 `help:"Disk size, in MB"` Location string `help:"Image location"` Status string `help:"Image status" choices:"killed|active|queued"` OwnerProject string `help:"Owner project Id or Name"` OwnerProjectDomain string `help:"Owner project Domain"` OsType string `help:"Type of OS" choices:"Windows|Linux|Freebsd|Android|macOS|VMWare"` OsDist string `help:"Distribution name of OS" metavar:"OS_DISTRIBUTION"` OsVersion string `help:"Version of OS"` OsCodename string `help:"Codename of OS"` OsArch string `help:"Os hardware architecture" choices:"x86|x86_64"` OsLang string `help:"OS Language" choices:"zh_CN|en_US"` Preference int64 `help:"Disk preferences"` Notes string `help:"Notes about the image"` Hypervisor []string `help:"Prefer hypervisor type" choices:"kvm|esxi|baremetal|container"` DiskDriver string `help:"Perfer disk driver" choices:"virtio|scsi|pvscsi|ide|sata"` NetDriver string `help:"Preferred network driver" choices:"virtio|e1000|vmxnet3"` }
type QuotaBaseOptions ¶
type QuotaBaseOptions struct { Cpu int64 `help:"CPU count"` Memory int64 `help:"Memory size in MB"` Storage int64 `help:"Storage size in MB"` Port int64 `help:"Internal NIC count"` Eport int64 `help:"External NIC count"` Eip int64 `help:"Elastic IP count"` Bw int64 `help:"Internal bandwidth in Mbps"` Ebw int64 `help:"External bandwidth in Mbps"` Image int64 `help:"Template count"` IsolatedDevice int64 `help:"Isolated device count"` }
type TypeActionListOptions ¶
type TypeActionListOptions struct { BaseActionListOptions ID string `help:"" metavar:"OBJ_ID"` }
type TypeEventListOptions ¶
type TypeEventListOptions struct { BaseEventListOptions ID string `help:"" metavar:"OBJ_ID"` }
Source Files ¶
- actions.go
- alarmevents.go
- alarmlogs.go
- alarms.go
- alarmtemplates.go
- baremetalagents.go
- baremetalnetworks.go
- baremetalstorages.go
- cachedimages.go
- capabilities.go
- cloudproviders.go
- cloudregions.go
- contactgroups.go
- contacts.go
- current.go
- disks.go
- dnsrecords.go
- doc.go
- domains.go
- elasticips.go
- email_config.go
- endpoints.go
- events.go
- groups.go
- hostcachedimages.go
- hosts.go
- hoststorages.go
- hostwires.go
- images.go
- instances.go
- isolatedevices.go
- keypairs.go
- keystoneutils.go
- labels.go
- metric_types.go
- metrics.go
- monitor_metrics.go
- monitor_types.go
- monitorinputs.go
- monitortemplates.go
- networks.go
- nodes.go
- notification.go
- operations.go
- performances.go
- processes.go
- processlogs.go
- project_admin.go
- project_admin_candidates.go
- project_hosts.go
- projects.go
- quotas.go
- rates.go
- recipient.go
- regions.go
- reservedips.go
- resource_details.go
- resource_fees.go
- role_assignments.go
- roles.go
- schedtaghosts.go
- schedtags.go
- schedulers.go
- secgrouprules.go
- secgroups.go
- serverdisks.go
- serverisolatedevices.go
- servernetworks.go
- servers.go
- service_hosts.go
- service_name_suggestions.go
- services.go
- servicetrees.go
- shell.go
- sms_configs.go
- specs.go
- storagecachedimages.go
- storagecaches.go
- storages.go
- tasks.go
- tenants.go
- treenodes.go
- usages.go
- users.go
- utils.go
- vcenters.go
- verification.go
- version.go
- vncproxy.go
- vpcs.go
- webconsole.go
- wires.go
- zones.go
Click to show internal directories.
Click to hide internal directories.