mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-16 06:57:44 +08:00
22 lines
540 B
Go
22 lines
540 B
Go
package shell
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/util/azure"
|
|
"yunion.io/x/onecloud/pkg/util/shellutils"
|
|
)
|
|
|
|
func init() {
|
|
type StorageListOptions struct {
|
|
Limit int `help:"page size"`
|
|
Offset int `help:"page offset"`
|
|
}
|
|
shellutils.R(&StorageListOptions{}, "storage-list", "List storage types", func(cli *azure.SRegion, args *StorageListOptions) error {
|
|
storageType, err := cli.GetStorageTypes()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
printList(storageType, len(storageType), args.Offset, args.Limit, []string{})
|
|
return nil
|
|
})
|
|
}
|