-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: remove useless data * feat: comment provider.Run * feat: projectID * feat: hepa openapi * feat: permission * feat: runtime cli * feat: fatal * feat: typo * feat: more info * feat: do clearing async * fix: NotFoundError Co-authored-by: 悟空 <rainchan365@163.com>
- Loading branch information
Showing
23 changed files
with
1,402 additions
and
33 deletions.
There are no files selected for viewing
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,10 @@ | ||
syntax = "proto3"; | ||
|
||
package erda.common; | ||
|
||
option go_package = "github.com/erda-project/erda-proto-go/common/pb"; | ||
|
||
enum StatusEnum { | ||
unknown_status = 0; | ||
not_found = 404; | ||
} |
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,78 @@ | ||
syntax = "proto3"; | ||
|
||
package erda.core.project; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "common/status.proto"; | ||
|
||
option go_package = "github.com/erda-project/erda-proto-go/core/project/pb"; | ||
|
||
service Project { | ||
rpc CheckProjectExist(CheckProjectExistReq)returns(CheckProjectExistResp){} | ||
rpc GetProjectByID(GetProjectByIDReq)returns(ProjectDto){} | ||
} | ||
|
||
message CheckProjectExistReq { | ||
uint64 id = 1; | ||
} | ||
|
||
message CheckProjectExistResp { | ||
bool ok = 1; | ||
} | ||
|
||
message GetProjectByIDReq { | ||
uint64 id = 1; | ||
optional string userID = 2; | ||
} | ||
|
||
message ProjectDto { | ||
// project primary key | ||
uint64 id = 1; | ||
// project identifies | ||
string name = 2; | ||
// project display name | ||
string displayName = 3; | ||
// for string ddHook | ||
reserved 4; | ||
// org primary key | ||
uint64 orgID = 5; | ||
// the project creator userID | ||
string creatorID = 6; | ||
// the project logo url | ||
string logo = 7; | ||
// the project description | ||
string desc = 8; | ||
// the owners' userIDs of the project | ||
// for owners | ||
reserved 9; | ||
// project active time | ||
google.protobuf.Timestamp activeTime = 10; | ||
// for string joined | ||
reserved 11; | ||
// for bool canUnblock | ||
reserved 12; | ||
// for string blockStatus | ||
reserved 13; | ||
// for bool CanManage | ||
reserved 14; | ||
// is the project public | ||
bool isPublic = 15; | ||
// for ProjectStats stats | ||
reserved 16; | ||
// for ProjectResourceUsage | ||
reserved 17, 18, 19, 20; | ||
// for clusterConfig | ||
reserved 21; | ||
// for ResourceConfigsInfo resourceConfig | ||
reserved 22; | ||
// for map<string, int> RollbackConfig | ||
reserved 23; | ||
// for float64 cpuQuota | ||
reserved 24; | ||
// for float64 memQuota | ||
reserved 25; | ||
google.protobuf.Timestamp createdTime = 26; | ||
google.protobuf.Timestamp updatedTime = 27; | ||
// project type | ||
string type = 28; | ||
} |
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
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,39 @@ | ||
// Copyright (c) 2021 Terminus, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package main | ||
|
||
import ( | ||
_ "embed" | ||
|
||
// providers | ||
_ "github.com/erda-project/erda-infra/providers/grpcclient" | ||
_ "github.com/erda-project/erda-infra/providers/pprof" | ||
_ "github.com/erda-project/erda-infra/providers/redis" | ||
_ "github.com/erda-project/erda-proto-go/core/pipeline/cms/client" | ||
_ "github.com/erda-project/erda/internal/core/legacy" | ||
_ "github.com/erda-project/erda/internal/core/legacy/providers/token" | ||
_ "github.com/erda-project/erda/internal/core/legacy/services/dingtalk/api" | ||
_ "github.com/erda-project/erda/internal/core/messenger/eventbox" | ||
_ "github.com/erda-project/erda/internal/core/messenger/notify" | ||
_ "github.com/erda-project/erda/internal/core/messenger/notify-channel" | ||
_ "github.com/erda-project/erda/internal/core/messenger/notifygroup" | ||
_ "github.com/erda-project/erda/internal/core/project" | ||
|
||
// infra | ||
_ "github.com/erda-project/erda-infra/providers/grpcserver" | ||
_ "github.com/erda-project/erda-infra/providers/httpserver" | ||
_ "github.com/erda-project/erda-infra/providers/mysql" | ||
_ "github.com/erda-project/erda-infra/providers/serviceregister" | ||
) |
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
Oops, something went wrong.