Commit 204b1223 authored by Lukas Burgey's avatar Lukas Burgey

Add credential

parent 53b1ad1b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment