Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
feudal
feudalScripts
Commits
204b1223
Commit
204b1223
authored
Aug 15, 2018
by
Lukas Burgey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add credential
parent
53b1ad1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
scripts.go
scripts.go
+11
-0
No files found.
scripts.go
View file @
204b1223
...
...
@@ -12,6 +12,13 @@ type (
Key
string
`json:"key"`
}
// Credential is currently a ssh key, but may be a password hash in the future
Credential
struct
{
Type
string
`json:"type,omitempty"`
Name
string
`json:"name"`
Value
string
`json:"value"`
}
// Group a group of which User is a member of
Group
struct
{
Name
string
`json:"name"`
...
...
@@ -41,6 +48,10 @@ type (
// Key contains the ssh key of this deployment task
Key
SSHKey
`json:"key"`
// Credentials the credentials to deploy
// maps the credential type to the according credentials
Credentials
map
[
string
][]
Credential
`json:"credentials"`
// Questionnaire is an answered questionnaire
// Maps a question name to the answer of the user
// The keys (question names) *must* be identical to those of the Output.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