Documentation ¶
Index ¶
- Variables
- func InvalidUpdateError() error
- func R(options interface{}, command string, desc string, callback interface{})
- type ActionListOptions
- type AnsibleHostsOptions
- type BaseActionListOptions
- type BaseEventListOptions
- type CMD
- 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)
View Source
var ErrEmtptyUpdate = errors.New("No valid update data")
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 AnsibleHostsOptions ¶
type AnsibleHostsOptions struct { List bool `help:"List all ansible inventory"` Host string `help:"List of a host"` PrivateKey string `help:"path to private key to use for ansible"` Port int `help:"optional port, if port is not 22"` User string `help:"username to try"` UserBecome string `help:"username to sudo"` }
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 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"` Snapshot int64 `help:"Snapshot 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 ¶
- account_balances.go
- actions.go
- alarmevents.go
- alarmlogs.go
- alarms.go
- alarmtemplates.go
- ansible.go
- baremetalagents.go
- baremetalnetworks.go
- baremetalstorages.go
- cachedimages.go
- capabilities.go
- cloudaccounts.go
- cloudproviders.go
- cloudregions.go
- contactgroups.go
- contacts.go
- current.go
- disks.go
- dnsrecords.go
- doc.go
- domains.go
- dynamicschedtags.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
- licenses.go
- loadbalanceracls.go
- loadbalanceragents.go
- loadbalancerbackendgroups.go
- loadbalancerbackends.go
- loadbalancercertificates.go
- loadbalancerlistenerrules.go
- loadbalancerlisteners.go
- loadbalancers.go
- metric_types.go
- metrics.go
- monitor_metrics.go
- monitor_types.go
- monitorinputs.go
- monitortemplates.go
- networks.go
- nodes.go
- notices.go
- notification.go
- operations.go
- parameters.go
- performances.go
- policies.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
- res_results.go
- reservedips.go
- resource_details.go
- resource_fees.go
- role_assignments.go
- roles.go
- schedpolicies.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
- snapshots.go
- specs.go
- sshkeypairs.go
- storagecachedimages.go
- storagecaches.go
- storages.go
- tasks.go
- tenants.go
- treenodes.go
- updates.go
- usages.go
- users.go
- utils.go
- vcenters.go
- verification.go
- version.go
- vncproxy.go
- vpcs.go
- webconsole.go
- websockets.go
- wires.go
- zones.go
Click to show internal directories.
Click to hide internal directories.