Skip to content

Commit

Permalink
chore: opeanpi
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcStdt committed Jul 21, 2024
1 parent 4e1c000 commit cda71a4
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 63 deletions.
46 changes: 26 additions & 20 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,6 @@ const docTemplate = `{
"wait": {}
}
},
"ProcessCommand": {
"type": "object",
"properties": {
"commands": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/CommandInstructionSet"
}
}
}
},
"ProcessMonitorMetrics": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -494,6 +483,18 @@ const docTemplate = `{
"description": "don't make this a semver, it's not allways",
"type": "string"
},
"commands": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/CommandInstructionSet"
}
},
"cronjobs": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.Cronjob"
}
},
"desc": {
"type": "string"
},
Expand All @@ -512,12 +513,6 @@ const docTemplate = `{
}
}
},
"processes": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/ProcessCommand"
}
},
"version": {
"type": "string"
}
Expand Down Expand Up @@ -565,6 +560,20 @@ const docTemplate = `{
"ConsoleTypePlugin"
]
},
"domain.Cronjob": {
"type": "object",
"properties": {
"command": {
"type": "string"
},
"name": {
"type": "string"
},
"schedule": {
"type": "string"
}
}
},
"domain.Process": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -626,9 +635,6 @@ const docTemplate = `{
"command": {
"type": "string"
},
"process": {
"type": "string"
},
"sync": {
"type": "boolean"
}
Expand Down
46 changes: 26 additions & 20 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,6 @@
"wait": {}
}
},
"ProcessCommand": {
"type": "object",
"properties": {
"commands": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/CommandInstructionSet"
}
}
}
},
"ProcessMonitorMetrics": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -483,6 +472,18 @@
"description": "don't make this a semver, it's not allways",
"type": "string"
},
"commands": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/CommandInstructionSet"
}
},
"cronjobs": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.Cronjob"
}
},
"desc": {
"type": "string"
},
Expand All @@ -501,12 +502,6 @@
}
}
},
"processes": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/ProcessCommand"
}
},
"version": {
"type": "string"
}
Expand Down Expand Up @@ -554,6 +549,20 @@
"ConsoleTypePlugin"
]
},
"domain.Cronjob": {
"type": "object",
"properties": {
"command": {
"type": "string"
},
"name": {
"type": "string"
},
"schedule": {
"type": "string"
}
}
},
"domain.Process": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -615,9 +624,6 @@
"command": {
"type": "string"
},
"process": {
"type": "string"
},
"sync": {
"type": "boolean"
}
Expand Down
30 changes: 17 additions & 13 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ definitions:
type: string
wait: {}
type: object
ProcessCommand:
properties:
commands:
additionalProperties:
$ref: '#/definitions/CommandInstructionSet'
type: object
type: object
ProcessMonitorMetrics:
properties:
connections:
Expand Down Expand Up @@ -119,6 +112,14 @@ definitions:
app_version:
description: don't make this a semver, it's not allways
type: string
commands:
additionalProperties:
$ref: '#/definitions/CommandInstructionSet'
type: object
cronjobs:
items:
$ref: '#/definitions/domain.Cronjob'
type: array
desc:
type: string
init:
Expand All @@ -131,10 +132,6 @@ definitions:
type: string
type: object
type: object
processes:
additionalProperties:
$ref: '#/definitions/ProcessCommand'
type: object
version:
type: string
type: object
Expand Down Expand Up @@ -167,6 +164,15 @@ definitions:
- ConsoleTypeTTY
- ConsoleTypeProcess
- ConsoleTypePlugin
domain.Cronjob:
properties:
command:
type: string
name:
type: string
schedule:
type: string
type: object
domain.Process:
properties:
name:
Expand Down Expand Up @@ -208,8 +214,6 @@ definitions:
properties:
command:
type: string
process:
type: string
sync:
type: boolean
type: object
Expand Down
2 changes: 1 addition & 1 deletion examples/htop/.scroll/scroll-lock.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"statuses":{"main.start":"running"},"scroll_version":"0.0.1","scroll_name":"registry-1.docker.io/highcard/scroll-htop"}
{"statuses":{},"scroll_version":"0.0.1","scroll_name":"registry-1.docker.io/highcard/scroll-htop"}
16 changes: 7 additions & 9 deletions examples/htop/.scroll/scroll.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ name: registry-1.docker.io/highcard/scroll-htop
desc: Nginx server
version: 0.0.1
app_version: latest
init: "main.start"
init: start"
processes:
main:
commands:
start:
run: restart
procedures:
- mode: exec-tty
data:
- htop
start:
run: restart
procedures:
- mode: exec-tty
data:
- htop

0 comments on commit cda71a4

Please sign in to comment.