this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

permission set template

+40
+6
cmd/glot/lex_new.go
··· 28 28 //go:embed lexicon-templates/procedure.json 29 29 var tmplProcedure string 30 30 31 + //go:embed lexicon-templates/permission-set.json 32 + var tmplPermissionSet string 33 + 31 34 var cmdLexNew = &cli.Command{ 32 35 Name: "new", 33 36 Usage: "create new lexicon schema from template", ··· 67 70 fmt.Println(" query-view") 68 71 fmt.Println(" query-list") 69 72 fmt.Println(" procedure") 73 + fmt.Println(" permission-set") 70 74 fmt.Println("") 71 75 return nil 72 76 } ··· 94 98 orig = []byte(tmplQueryList) 95 99 case "procedure": 96 100 orig = []byte(tmplProcedure) 101 + case "permission-set": 102 + orig = []byte(tmplPermissionSet) 97 103 default: 98 104 return fmt.Errorf("unknown schema template: %s", schemaType) 99 105 }
+34
cmd/glot/lexicon-templates/permission-set.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.example.authBasic", 4 + "defs": { 5 + "main": { 6 + "type": "permission-set", 7 + "title": "TODO: user-facing short name of permission set", 8 + "title:langs": { 9 + "pt-BR": "TODO: brazilian portugese translation", 10 + "ja": "TODO: japanese translation" 11 + }, 12 + "detail": "TODO: user-facing short description of scope of permissions", 13 + "detail:langs": { 14 + "pt-BR": "TODO: brazilian portugese translation", 15 + "ja": "TODO: japanese translation" 16 + }, 17 + "permissions": [ 18 + { 19 + "type": "permission", 20 + "resource": "repo", 21 + "collection": ["com.example.post"] 22 + }, 23 + { 24 + "type": "permission", 25 + "resource": "rpc", 26 + "inheritAud": true, 27 + "lxm": [ 28 + "app.example.getPreferences" 29 + ] 30 + } 31 + ] 32 + } 33 + } 34 + }