diff --git a/scripts.go b/scripts.go index e161c3fbd8e74d6971fbacf5c6f8b8b090ee7eab..5abe8f532cdc8ff8ce355cb6001e1a0bfa260a54 100644 --- a/scripts.go +++ b/scripts.go @@ -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