mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-20 20:26:03 +08:00
29 lines
609 B
Go
29 lines
609 B
Go
package shell
|
|
|
|
import (
|
|
"github.com/yunionio/onecloud/pkg/mcclient"
|
|
"github.com/yunionio/onecloud/pkg/mcclient/modules"
|
|
)
|
|
|
|
func init() {
|
|
|
|
/**
|
|
* 列出所有监控指标
|
|
*/
|
|
type ProjectAdminListOptions struct {
|
|
BaseListOptions
|
|
}
|
|
R(&ProjectAdminListOptions{}, "projectadmin-list", "List all Project Admins", func(s *mcclient.ClientSession, args *ProjectAdminListOptions) error {
|
|
params := FetchPagingParams(args.BaseListOptions)
|
|
|
|
result, err := modules.ProjectAdmin.List(s, params)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
printList(result, modules.ProjectAdmin.GetColumns(s))
|
|
return nil
|
|
})
|
|
|
|
}
|