func()

in main/handlersettings.go [49:68]


func (s handlerSettings) validate() error {
	if s.publicSettings.CommandToExecute != "" && s.protectedSettings.CommandToExecute != "" {
		return errCmdTooMany
	}

	if s.publicSettings.Script != "" && s.protectedSettings.Script != "" {
		return errScriptTooMany
	}

	if s.commandToExecute() != "" && s.script() != "" {
		return errCmdAndScript
	}

	if (s.protectedSettings.StorageAccountName != "") !=
		(s.protectedSettings.StorageAccountKey != "") {
		return errStoragePartialCredentials
	}

	return nil
}