Adding Groups API endpoint and SDK (#122)

* feat: Add group grpc handler.

* feat: Add group sdk hooks.

* fix:  Adding forgotten generated group sdk file.

* fix:  Fix a copy/paste error in test msg.

* fix:  Correct assert error msg.

* fix: Remove unused proto imports.
This commit is contained in:
Todd Knight authored and GitHub committed 2020-06-15 15:22:41 -07:00
1 parent ffddf24f86
commit 6ea448a7f3
23 files changed
+3834 -2

No files matched your search

+5
View File
@@ -34,6 +34,11 @@ var createFuncs = map[string][]*createInfo{
targetType: "Project",
path: `"projects"`,
},
{
baseType: "Organization",
targetType: "groups.Group",
path: `"groups"`,
},
{
baseType: "Organization",
targetType: "users.User",
+5
View File
@@ -22,6 +22,11 @@ var deleteFuncs = map[string][]*deleteInfo{
"Project",
"projects",
},
{
"Organization",
"groups.Group",
"groups",
},
{
"Organization",
"users.User",
+11
View File
@@ -114,6 +114,17 @@ var inputStructs = []*structInfo{
"",
templateTypeResource,
},
{
os.Getenv("GEN_BASEPATH") + "/internal/gen/controller/api/resources/groups/group.pb.go",
"Group",
os.Getenv("GEN_BASEPATH") + "/api/groups/group.gen.go",
"Group",
"groups",
"",
"",
"",
templateTypeResource,
},
{
os.Getenv("GEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host_catalog.pb.go",
"StaticHostCatalogDetails",
+5
View File
@@ -22,6 +22,11 @@ var readFuncs = map[string][]*readInfo{
targetType: "Project",
path: "projects",
},
{
baseType: "Organization",
targetType: "groups.Group",
path: "groups",
},
{
baseType: "Organization",
targetType: "users.User",
+5
View File
@@ -22,6 +22,11 @@ var updateFuncs = map[string][]*updateInfo{
targetType: "Project",
path: "projects",
},
{
baseType: "Organization",
targetType: "groups.Group",
path: "groups",
},
{
baseType: "Organization",
targetType: "users.User",