-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
14 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
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,10 @@ | ||
package models | ||
|
||
import "go.mongodb.org/mongo-driver/bson/primitive" | ||
|
||
type DependencyLogV2 struct { | ||
any `collection:"dependency_logs"` | ||
BaseModelV2[DependencyLogV2] `bson:",inline"` | ||
TaskId primitive.ObjectID `json:"task_id" bson:"task_id"` | ||
Content string `json:"content" bson:"content"` | ||
} |
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,15 @@ | ||
package models | ||
|
||
import "go.mongodb.org/mongo-driver/bson/primitive" | ||
|
||
type DependencyTaskV2 struct { | ||
any `collection:"dependency_tasks"` | ||
BaseModelV2[DependencyTaskV2] `bson:",inline"` | ||
Status string `json:"status" bson:"status"` | ||
Error string `json:"error" bson:"error"` | ||
SettingId primitive.ObjectID `json:"setting_id" bson:"setting_id"` | ||
Type string `json:"type" bson:"type"` | ||
NodeId primitive.ObjectID `json:"node_id" bson:"node_id"` | ||
Action string `json:"action" bson:"action"` | ||
DepNames []string `json:"dep_names" bson:"dep_names"` | ||
} |
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,14 @@ | ||
package models | ||
|
||
import "go.mongodb.org/mongo-driver/bson/primitive" | ||
|
||
type DependencyV2 struct { | ||
any `collection:"dependencies"` | ||
BaseModelV2[DependencyV2] `bson:",inline"` | ||
Name string `json:"name" bson:"name"` | ||
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"` | ||
} |