diff --git a/cmd/quota.go b/cmd/quota.go index bdf9e979..694ebe03 100644 --- a/cmd/quota.go +++ b/cmd/quota.go @@ -40,7 +40,9 @@ If you wish to use a custom format, the available fields are: * SecurityGroupRuleLimit * SecurityGroupRuleUsage * LoadBalancerCountLimit - * LoadBalancerCountUsage`, + * LoadBalancerCountUsage + * ObjectStoreGigabytesLimit + * ObjectStoreGigabytesUsage`, Run: func(cmd *cobra.Command, args []string) { client, err := config.CivoAPIClient() if err != nil { @@ -82,6 +84,8 @@ If you wish to use a custom format, the available fields are: ow.AppendDataWithLabel("security_group_rule_usage", strconv.Itoa(quota.SecurityGroupRuleUsage), "SecurityGroupRuleUsage") ow.AppendDataWithLabel("loadbalancer_count_limit", strconv.Itoa(quota.LoadBalancerCountLimit), "LoadBalancerCountLimit") ow.AppendDataWithLabel("loadbalancer_count_usage", strconv.Itoa(quota.LoadBalancerCountUsage), "LoadBalancerCountUsage") + ow.AppendDataWithLabel("objectstore_gb_limit", strconv.Itoa(quota.ObjectStoreGigabytesLimit), "ObjectStoreGigabytesLimit") + ow.AppendDataWithLabel("objectstore_gb_usage", strconv.Itoa(quota.ObjectStoreGigabytesUsage), "ObjectStoreGigabytesUsage") } else { ow.AppendData("Instance Count", utility.CheckQuotaPercent(quota.InstanceCountLimit, quota.InstanceCountUsage)) ow.AppendData("CPUCore", utility.CheckQuotaPercent(quota.CPUCoreLimit, quota.CPUCoreUsage)) @@ -95,6 +99,7 @@ If you wish to use a custom format, the available fields are: ow.AppendData("Security Group", utility.CheckQuotaPercent(quota.SecurityGroupLimit, quota.SecurityGroupUsage)) ow.AppendData("Security Group Rule", utility.CheckQuotaPercent(quota.SecurityGroupRuleLimit, quota.SecurityGroupRuleUsage)) ow.AppendData("LoadBalancer Count", utility.CheckQuotaPercent(quota.LoadBalancerCountLimit, quota.LoadBalancerCountUsage)) + ow.AppendData("ObjectStore Gigabytes", utility.CheckQuotaPercent(quota.ObjectStoreGigabytesLimit, quota.ObjectStoreGigabytesUsage)) } switch common.OutputFormat { diff --git a/go.mod b/go.mod index c33e70de..ee59e24d 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect github.com/briandowns/spinner v1.11.1 github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c // indirect - github.com/civo/civogo v0.2.97 + github.com/civo/civogo v0.2.98 github.com/dsnet/compress v0.0.1 // indirect github.com/fatih/color v1.13.0 // indirect github.com/google/go-cmp v0.5.6 // indirect diff --git a/go.sum b/go.sum index 1c637431..ccbf3f1f 100644 --- a/go.sum +++ b/go.sum @@ -55,8 +55,8 @@ github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghf github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/civo/civogo v0.2.97 h1:2rBKyeI1F6ZniPAryuEPdX6KHbDSyTQXfsBVDQ845YE= -github.com/civo/civogo v0.2.97/go.mod h1:7+GeeFwc4AYTULaEshpT2vIcl3Qq8HPoxA17viX3l6g= +github.com/civo/civogo v0.2.98 h1:ojaY2ckd6mvxf+yZlfLynGp0W+5+tfrZTh9bGC+CY5g= +github.com/civo/civogo v0.2.98/go.mod h1:7+GeeFwc4AYTULaEshpT2vIcl3Qq8HPoxA17viX3l6g= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=