forked from TrueCloudLab/frostfs-node
[#908] adm/frostfsid: Support subject/group management
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
0e3d144695
commit
6ebd61298e
3 changed files with 110 additions and 22 deletions
|
@ -41,20 +41,9 @@ func getFrostfsIDSubjectKey(cmd *cobra.Command) *keys.PublicKey {
|
|||
return subjKey
|
||||
}
|
||||
|
||||
//func decodeFrostfsIDNamespaces(resStack []stackitem.Item) ([]string, error) {
|
||||
// var res []string
|
||||
//
|
||||
// if len(resStack) == 0 {
|
||||
// return res, nil
|
||||
// }
|
||||
//
|
||||
// if len(resStack) > 0 {
|
||||
// nodes, err := decodeNodeList(resStack[0])
|
||||
// if err != nil {
|
||||
// return nil, err
|
||||
// }
|
||||
//
|
||||
// nm.SetNodes(nodes)
|
||||
// }
|
||||
//
|
||||
//}
|
||||
func getFrostfsIDSubjectAddress(cmd *cobra.Command) util.Uint160 {
|
||||
subjAddress, _ := cmd.Flags().GetString(subjectAddressFlag)
|
||||
subjAddr, err := address.StringToUint160(subjAddress)
|
||||
commonCmd.ExitOnErr(cmd, "invalid subject address: %w", err)
|
||||
return subjAddr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue