Documentation
¶
Index ¶
- Variables
- func AddAccount(account *protos.AccountInfo) util.CraneCmdError
- func AddQos(qos *protos.QosInfo) util.CraneCmdError
- func AddUser(user *protos.UserInfo, partition []string, level string, coordinator bool) util.CraneCmdError
- func BlockAccountOrUser(name string, entityType protos.EntityType, account string) util.CraneCmdError
- func DeleteAccount(name string) util.CraneCmdError
- func DeleteQos(name string) util.CraneCmdError
- func DeleteUser(name string, account string) util.CraneCmdError
- func FindAccount(name string) util.CraneCmdError
- func ModifyAccount(modify_field protos.ModifyField, new_value string, name string, ...) util.CraneCmdError
- func ModifyQos(modify_field protos.ModifyField, new_value string, name string) util.CraneCmdError
- func ModifyUser(modify_field protos.ModifyField, new_value string, name string, account string, ...) util.CraneCmdError
- func ParseCmdArgs()
- func PrintAccountTable(accountList []*protos.AccountInfo)
- func PrintAccountTree(parentTreeRoot treeprint.Tree, account string, ...)
- func PrintAllAccount(accountList []*protos.AccountInfo)
- func PrintAllQos(qosList []*protos.QosInfo)
- func PrintAllUsers(userList []*protos.UserInfo)
- func ShowAccounts() util.CraneCmdError
- func ShowQos(name string) util.CraneCmdError
- func ShowUser(name string, account string) util.CraneCmdError
- func UnblockAccountOrUser(name string, entityType protos.EntityType, account string) util.CraneCmdError
- type ServerAddr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlagAccount protos.AccountInfo FlagUser protos.UserInfo FlagQos protos.QosInfo // FlagPartition and FlagSetPartition are different. // FlagPartition limits the operation to a specific partition, // while the other is the partition to be added or deleted. FlagPartition string FlagSetPartition string // FlagSetLevel and FlagLevel are different as // they have different default values. FlagLevel string FlagSetLevel string // UserInfo does not have these fields (while AccountInfo does), // so we use separate flags for them. FlagUserCoordinator bool FlagUserDefaultQos string FlagUserPartitions []string FlagUserQosList []string FlagForce bool FlagFull bool FlagJson bool FlagConfigFilePath string // These flags are implemented, // but not added to any cmd! FlagNoHeader bool FlagFormat string RootCmd = &cobra.Command{ Use: "cacctmgr", Short: "Manage account, user and QoS tables", Long: "", Version: util.Version(), PersistentPreRun: func(cmd *cobra.Command, args []string) { util.DetectNetworkProxy() config := util.ParseConfig(FlagConfigFilePath) stub = util.GetStubToCtldByConfig(config) userUid = uint32(os.Getuid()) }, } )
Functions ¶
func AddAccount ¶
func AddAccount(account *protos.AccountInfo) util.CraneCmdError
func BlockAccountOrUser ¶
func BlockAccountOrUser(name string, entityType protos.EntityType, account string) util.CraneCmdError
func DeleteAccount ¶
func DeleteAccount(name string) util.CraneCmdError
func DeleteQos ¶
func DeleteQos(name string) util.CraneCmdError
func DeleteUser ¶
func DeleteUser(name string, account string) util.CraneCmdError
func FindAccount ¶
func FindAccount(name string) util.CraneCmdError
func ModifyAccount ¶
func ModifyAccount(modify_field protos.ModifyField, new_value string, name string, requestType protos.OperationType) util.CraneCmdError
func ModifyQos ¶
func ModifyQos(modify_field protos.ModifyField, new_value string, name string) util.CraneCmdError
func ModifyUser ¶
func ModifyUser(modify_field protos.ModifyField, new_value string, name string, account string, partition string, requestType protos.OperationType) util.CraneCmdError
func ParseCmdArgs ¶
func ParseCmdArgs()
func PrintAccountTable ¶
func PrintAccountTable(accountList []*protos.AccountInfo)
func PrintAccountTree ¶
func PrintAllAccount ¶
func PrintAllAccount(accountList []*protos.AccountInfo)
func PrintAllQos ¶
func PrintAllUsers ¶
func ShowAccounts ¶
func ShowAccounts() util.CraneCmdError
func ShowQos ¶
func ShowQos(name string) util.CraneCmdError
func UnblockAccountOrUser ¶
func UnblockAccountOrUser(name string, entityType protos.EntityType, account string) util.CraneCmdError
Types ¶
type ServerAddr ¶
Click to show internal directories.
Click to hide internal directories.