Files
cloudpods/pkg/util/azure/shell/storage.go
T
2018-10-24 10:30:24 +08:00

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
})
}