mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
feat: optimizing dependency services including grpc, api
This commit is contained in:
@@ -75,6 +75,7 @@ func GetModelInstances() []any {
|
||||
*new(DependencyLogV2),
|
||||
*new(DependencySettingV2),
|
||||
*new(DependencyTaskV2),
|
||||
*new(DependencyRepoV2),
|
||||
*new(EnvironmentV2),
|
||||
*new(GitV2),
|
||||
*new(MetricV2),
|
||||
|
||||
10
core/models/models/v2/dependency_repo.go
Normal file
10
core/models/models/v2/dependency_repo.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
type DependencyRepoV2 struct {
|
||||
any `collection:"dependency_repos"`
|
||||
BaseModelV2[DependencyRepoV2] `bson:",inline"`
|
||||
Name string `json:"name" bson:"name"`
|
||||
Type string `json:"type" bson:"type"`
|
||||
LatestVersion string `json:"latest_version" bson:"latest_version"`
|
||||
AllVersions []string `json:"all_versions" bson:"all_versions"`
|
||||
}
|
||||
@@ -11,8 +11,10 @@ type DependencyV2 struct {
|
||||
Description string `json:"description" bson:"description"`
|
||||
NodeId primitive.ObjectID `json:"node_id" bson:"node_id"`
|
||||
Type string `json:"type" bson:"type"`
|
||||
LatestVersion string `json:"latest_version" bson:"latest_version"`
|
||||
Version string `json:"version" bson:"version"`
|
||||
Status string `json:"status" bson:"status"`
|
||||
Error string `json:"error,omitempty" bson:"error,omitempty"`
|
||||
Logs []string `json:"logs,omitempty" bson:"logs,omitempty"`
|
||||
NodeIds []primitive.ObjectID `json:"node_ids,omitempty" bson:"-"`
|
||||
Versions []string `json:"versions,omitempty" bson:"-"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user