Skip to content

Commit

Permalink
Show pipeline connection status
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Jun 23, 2023
1 parent 043063a commit 3b1ca67
Show file tree
Hide file tree
Showing 23 changed files with 820 additions and 657 deletions.
4 changes: 4 additions & 0 deletions internal/api/design/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ var _ = Service("pipeline", func() {
Description("List all known pipelines")
Payload(func() {
Attribute("name", String)
Attribute("status", Boolean, func() { Default(false) })
})
Result(ArrayOf(StoredPipeline))
HTTP(func() {
GET("/")
Response(StatusOK)
Params(func() {
Param("name")
Param("status")
})
})
})
Expand Down Expand Up @@ -70,12 +72,14 @@ var StoredPipeline = ResultType("application/vnd.enduro.stored-pipeline", func()
Attribute("name")
Attribute("capacity")
Attribute("current")
Attribute("status")
})
View("default", func() {
Attribute("id")
Attribute("name")
Attribute("capacity")
Attribute("current")
Attribute("status")
})
Required("name")
})
Expand Down
2 changes: 1 addition & 1 deletion internal/api/gen/http/batch/client/cli.go

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

60 changes: 31 additions & 29 deletions internal/api/gen/http/cli/enduro/cli.go

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

4 changes: 2 additions & 2 deletions internal/api/gen/http/collection/client/cli.go

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

2 changes: 1 addition & 1 deletion internal/api/gen/http/openapi.json

Large diffs are not rendered by default.

Loading

0 comments on commit 3b1ca67

Please sign in to comment.