quota

package
v0.3.9-2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	R = shell.R

	InvalidUpdateError = shell.InvalidUpdateError
)

Functions

This section is empty.

Types

type ComputeQuotaKeys

type ComputeQuotaKeys struct {
	ZoneQuotaKeys

	Hypervisor string `help:"hypervisor" choices:"kvm|baremetal"`
}

type ComputeQuotaOptions

type ComputeQuotaOptions struct {
	ComputeQuotaKeys

	Count          int64 `help:"server count" json:"count,omitzero"`
	Cpu            int64 `help:"CPU count" json:"cpu,omitzero"`
	Memory         int64 `help:"Memory size in MB" json:"memory,omitzero"`
	Storage        int64 `help:"Storage size in MB" json:"storage,omitzero"`
	IsolatedDevice int64 `help:"Isolated device count" json:"isolated_device,omitzero"`
}

type DomainQuotaOptions

type DomainQuotaOptions struct {
	Cloudaccount int64 `help:"cloudaccount count" json:"cloudaccount,omitzero"`
}

type IdentityQuotaOptions

type IdentityQuotaOptions struct {
	User    int64 `help:"user count" json:"user,omitzero"`
	Group   int64 `help:"group count" json:"group,omitzero"`
	Project int64 `help:"project count" json:"project,omitzero"`
	Role    int64 `help:"role count" json:"role,omitzero"`
	Policy  int64 `help:"policy count" json:"policy,omitzero"`
}

type ImageQuotaKeys

type ImageQuotaKeys struct {
	Type string `help:"image type, either iso or image" choices:"iso|image" json:"type,omitempty"`
}

type ImageQuotaOptions

type ImageQuotaOptions struct {
	ImageQuotaKeys

	Image int64 `help:"Template count" json:"image,omitzero"`
}

type InfrasQuotaOptions

type InfrasQuotaOptions struct {
	RegionQuotaKeys

	Host int64 `help:"host count" json:"host,omitzero"`
	Vpc  int64 `help:"vpc count" json:"vpc,omitzero"`
}

type ProjectQuotaOptions

type ProjectQuotaOptions struct {
	Secgroup int64 `help:"Secgroup count" json:"secgroup,omitzero"`
}

type QuotaSetBaseOptions

type QuotaSetBaseOptions struct {
	Project string `help:"Tenant name or ID to set quota" json:"tenant,omitempty"`
	Domain  string `help:"Domain name or ID to set quota" json:"domain,omitempty"`
	Action  string `help:"quota set action" choices:"add|sub|reset|replace|delete|update"`
}

type RegionQuotaKeys

type RegionQuotaKeys struct {
	Provider  string `help:"cloud provider" json:"provider,omitempty"`
	Brand     string `help:"cloud brand" json:"brand,omitempty"`
	CloudEnv  string `help:"cloud environment" json:"cloud_env,omitempty" choices:"onpremise|private|public"`
	AccountId string `help:"cloud account id" json:"account_id,omitempty"`
	ManagerId string `help:"cloud provider id" json:"manager_id,omitempty"`
	RegionId  string `help:"region id" json:"region_id,omitempty"`
}

type RegionQuotaOptions

type RegionQuotaOptions struct {
	RegionQuotaKeys

	Port  int64 `help:"Internal NIC count" json:"port,omitzero"`
	Eport int64 `help:"External NIC count" json:"eport,omitzero"`

	Eip int64 `help:"Elastic IP count" json:"eip,omitzero"`

	Snapshot         int64 `help:"Snapshot count" json:"snapshot,omitzero"`
	InstanceSnapshot int64 `help:"Instance snapshot count" json:"instance_snapshot,omitzero"`

	Bucket    int64 `help:"bucket count" json:"bucket,omitzero"`
	ObjectGB  int64 `help:"object size in GB" json:"object_gb,omitzero"`
	ObjectCnt int64 `help:"object count" json:"object_cnt,omitzero"`

	Rds   int64 `help:"Rds count" json:"rds,omitzero"`
	Cache int64 `help:"redis count" json:"cache,omitzero"`

	Loadbalancer int64 `help:"loadbalancer instance count" json:"loadbalancer,omitzero"`
}

type ZoneQuotaKeys

type ZoneQuotaKeys struct {
	RegionQuotaKeys

	ZoneId string `help:"zone id" json:"zone_id,omitempty"`
}

type ZoneQuotaOptions

type ZoneQuotaOptions struct {
	ZoneQuotaKeys
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL