Skip to content

Commit

Permalink
feat: prepare for dependency lang install/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Dec 14, 2024
1 parent 298420b commit 25580b4
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 36 deletions.
7 changes: 5 additions & 2 deletions core/constants/dependency.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package constants

const (
DependencyTypePython = "python"
DependencyTypeNode = "node"
DependencyTypePython = "python"
DependencyTypeNode = "node"
DependencyTypeGo = "go"
DependencyTypeJava = "java"
DependencyTypeBrowser = "browser"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/models/models/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func GetModelInstances() []any {
*new(DatabaseMetric),
*new(Dependency),
*new(DependencyLog),
*new(DependencySetting),
*new(DependencyConfig),
*new(DependencyRepo),
*new(Environment),
*new(Git),
Expand Down
12 changes: 12 additions & 0 deletions core/models/models/dependency_config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package models

type DependencyConfig struct {
any `collection:"dependency_configs"`
BaseModel[DependencyConfig] `bson:",inline"`
Key string `json:"key" bson:"key"`
Name string `json:"name" bson:"name"`
Cmd string `json:"cmd" bson:"cmd"`
Proxy string `json:"proxy" bson:"proxy"`
SetupNodeIds []string `json:"setup_node_ids" bson:"setup_node_ids"`
SetupScriptPath string `json:"setup_script_path" bson:"setup_script_path"`
}
12 changes: 0 additions & 12 deletions core/models/models/dependency_setting.go

This file was deleted.

36 changes: 15 additions & 21 deletions grpc/dependency_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions grpc/proto/services/dependency_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ enum DependencyServiceCode {
SYNC = 0;
INSTALL = 1;
UNINSTALL = 2;
SETUP = 3;
}

message DependencyServiceConnectResponse {
Expand Down

0 comments on commit 25580b4

Please sign in to comment.