This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(permissions v2): add update and get functions (#53)
* feat(permissions v2): add update and get functions * fmt
- Loading branch information
1 parent
a0ff7fb
commit 17dbfca
Showing
7 changed files
with
286 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"status": 400, | ||
"message": "Permission target contains a reference to a non-existing repository 'foobarstar'." | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"errors" : [ { | ||
"status" : 404, | ||
"message" : "Not Found" | ||
} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "java-developers", | ||
"repo": { | ||
"include-patterns": ["**"], | ||
"exclude-patterns": [""], | ||
"repositories": ["local-rep1", "local-rep2", "remote-rep1", "virtual-rep2"], | ||
"actions": { | ||
"users": { | ||
"bob": ["read", "write", "manage"], | ||
"alice": ["write", "annotate", "read"] | ||
}, | ||
"groups": { | ||
"dev-leads": ["manage", "read", "annotate"], | ||
"readers": ["read"] | ||
} | ||
} | ||
}, | ||
"build": { | ||
"include-patterns": [""], | ||
"exclude-patterns": [""], | ||
"repositories": ["artifactory-build-info"], | ||
"actions": { | ||
"users": { | ||
"bob": ["read", "write", "manage"], | ||
"alice": ["write", "annotate", "read"] | ||
}, | ||
"groups": { | ||
"dev-leads": ["manage", "read", "annotate"], | ||
"readers": ["read"] | ||
} | ||
} | ||
}, | ||
"releaseBundle": { | ||
"include-patterns": ["**"], | ||
"exclude-patterns": [""], | ||
"repositories": ["release-bundles"], | ||
"actions": { | ||
"users": { | ||
"bob": ["read", "write", "manage"], | ||
"alice": ["write", "annotate", "read"] | ||
}, | ||
"groups": { | ||
"dev-leads": ["manage", "read", "annotate"], | ||
"readers": ["read"] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters