in main/handlersettings.go [49:71]
func (h handlerSettings) validate() error {
if h.commandToExecute() == "" && h.script() == "" {
return errCmdMissing
}
if h.publicSettings.CommandToExecute != "" && h.protectedSettings.CommandToExecute != "" {
return errCmdTooMany
}
if h.publicSettings.Script != "" && h.protectedSettings.Script != "" {
return errScriptTooMany
}
if h.commandToExecute() != "" && h.script() != "" {
return errCmdAndScript
}
if (h.protectedSettings.StorageAccountName != "") !=
(h.protectedSettings.StorageAccountKey != "") {
return errStoragePartialCredentials
}
return nil
}