Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update dependency and support new api #80

Merged
merged 19 commits into from
Aug 18, 2023

Conversation

flywukong
Copy link
Collaborator

@flywukong flywukong commented Aug 17, 2023

Description

  1. support group new API, including "group ls ", "group ls-member", "group ls-belong"
  2. update depenency
  3. support "policy ls" command

Rationale

meet new requirement

Example

 qa-test % ./gnfd-cmd group ls

create-time            group-name           id
2023-08-18 12:45:33    skkl1                12
2023-08-18 13:06:23    test-groupxj1        13
2023-08-18 13:07:09    test-groupxj2        14
2023-08-18 13:08:29    test-groupxj3        15
2023-08-18 13:08:36    test-groupxj4        16
2023-08-18 13:08:43    test-groupxj5        17

a-test % ./gnfd-cmd group ls-member skkl1
create-time         member                                     expire-time
2023-08-18 13:05:18 0x4eca7038852B11e27A8CAAAD30bB3609087D458b 10000-01-01 07:59:59
2023-08-18 13:13:40 0xADff5FF66bB6Cf77dcdd087ad54a0838f7C5e520 10000-01-01 07:59:59
2023-08-18 13:25:27 0xadFF5fF66Bb6Cf77dCDd087Ad54a0838f7C5e522 10000-01-01 07:59:59
2023-08-18 13:25:39 0xADff5fF66bb6cF77dCdd087ad54a0838f7c5e523 10000-01-01 07:59:59
2023-08-18 13:26:11 0xadfF5Ff66bB6CF77DcDD087aD54A0838f7C5e524 10000-01-01 07:59:59
2023-08-18 18:13:03 0xaDff5fF66BB6cF77DCdD087AD54A0838F7C5e525 2023-08-18 18:18:36

 qa-test % ./gnfd-cmd group ls-belong --address 
Please enter a passphrase now:
2023-08-18 13:05:18                          skkl1 id: 12
2023-08-18 13:14:43                  test-groupxj2 id: 14
2023-08-18 13:14:55                  test-groupxj3 id: 15

 qa-test % ./gnfd-cmd  policy ls --grantee 0xf95061C7cc0A2A0B52a6c6a7f6a192c824480423   grn:o::dskl1/testv1
principal                                            actions                                  effect     resource
grantee:0xf95061C7cc0A2A0B52a6c6a7f6a192c824480423   GET_OBJECT,DELETE_OBJECT                 ALLOW      gnfd://dskl1/testv1

qa-test % ./gnfd-cmd --passwordfile password.txt policy ls --grantee 0xf95061C7cc0A2A0B52a6c6a7f6a192c824480423 grn:g:klklll:skkl1
principal                                            actions                                  effect     resource
grantee:0xf95061C7cc0A2A0B52a6c6a7f6a192c824480423   UPDATE_GROUP_MEMBER                      ALLOW      group:skkl1

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@flywukong flywukong changed the title Feat support group api feat: update dependency and support new api Aug 17, 2023
cmd/cmd_group.go Outdated Show resolved Hide resolved
cmd/cmd_group.go Outdated Show resolved Hide resolved
cmd/cmd_group.go Outdated Show resolved Hide resolved
cmd/cmd_group.go Outdated Show resolved Hide resolved
@flywukong flywukong merged commit fe43ea7 into develop Aug 18, 2023
@flywukong flywukong deleted the feat-support-group-api branch October 13, 2023 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants