Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feudalScripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
feudal
feudalScripts
Commits
7186b1a9
Commit
7186b1a9
authored
Aug 20, 2018
by
Lukas Burgey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add schemas for input and output
parent
5417d535
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
182 additions
and
1 deletion
+182
-1
README.md
README.md
+2
-1
schema-input.json
schema-input.json
+106
-0
schema-output.json
schema-output.json
+74
-0
No files found.
README.md
View file @
7186b1a9
...
...
@@ -5,6 +5,7 @@ FEUDAL scripts are executed by a FEUDAL client to facilitate the customized depl
of an arbitrary service.
They use the JSON encoding for input and output. The specific formats are outlined below.
Schema files for
[
input
](
schema-input.json
)
and
[
output
](
schema-output.json
)
are also available.
Input Format
...
...
@@ -70,4 +71,4 @@ Output Format
"key": "value"
}
}
```
\ No newline at end of file
```
schema-input.json
0 → 100644
View file @
7186b1a9
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"properties"
:
{
"state_target"
:
{
"type"
:
"string"
,
"enum"
:
[
"deployed"
,
"not_deployed"
]
},
"user"
:
{
"type"
:
"object"
,
"properties"
:
{
"userinfo"
:
{
"type"
:
"object"
,
"properties"
:
{
"eduPersonEntitlement"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"email"
:
{
"type"
:
"string"
},
"email_verified"
:
{
"type"
:
"string"
},
"groups"
:
{
"type"
:
"array"
,
"items"
:
[
{
"type"
:
"string"
}
]
},
"iss"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
},
"preferred_username"
:
{
"type"
:
"string"
},
"ssh_key"
:
{
"type"
:
"string"
},
"sub"
:
{
"type"
:
"string"
}
},
"required"
:
[
"email"
,
"email_verified"
,
"groups"
,
"iss"
,
"name"
,
"preferred_username"
,
"ssh_key"
,
"sub"
]
}
},
"required"
:
[
"userinfo"
]
},
"credentials"
:
{
"type"
:
"object"
,
"properties"
:
{
"ssh_key"
:
{
"type"
:
"array"
,
"items"
:
[
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"value"
:
{
"type"
:
"string"
}
},
"required"
:
[
"name"
,
"value"
]
}
]
}
},
"required"
:
[
]
},
"questionnaire"
:
{
"type"
:
"object"
}
},
"required"
:
[
"state_target"
,
"user"
,
"credentials"
]
}
schema-output.json
0 → 100644
View file @
7186b1a9
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"oneOf"
:
[
{
"properties"
:
{
"state"
:
{
"type"
:
"string"
,
"enum"
:
[
"deployed"
]
},
"message"
:
{
"type"
:
"string"
},
"credentials"
:
{
"type"
:
"object"
}
},
"required"
:
[
"state"
]
},
{
"properties"
:
{
"state"
:
{
"type"
:
"string"
,
"enum"
:
[
"not_deployed"
]
}
},
"required"
:
[
"state"
]
},
{
"properties"
:
{
"state"
:
{
"type"
:
"string"
,
"enum"
:
[
"failed"
,
"rejected"
]
},
"message"
:
{
"type"
:
"string"
}
},
"required"
:
[
"state"
,
"message"
]
},
{
"properties"
:
{
"state"
:
{
"type"
:
"string"
,
"enum"
:
[
"questionnaire"
]
},
"questionnaire"
:
{
"type"
:
"object"
}
},
"required"
:
[
"state"
,
"questionnaire"
]
}
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment